1. 28 2月, 2022 7 次提交
  2. 23 12月, 2021 3 次提交
  3. 08 12月, 2021 1 次提交
    • R
      nvme: fix use after free when disconnecting a reconnecting ctrl · 8b77fa6f
      Ruozhu Li 提交于
      A crash happens when trying to disconnect a reconnecting ctrl:
      
       1) The network was cut off when the connection was just established,
          scan work hang there waiting for some IOs complete.  Those I/Os were
          retried because we return BLK_STS_RESOURCE to blk in reconnecting.
       2) After a while, I tried to disconnect this connection.  This
          procedure also hangs because it tried to obtain ctrl->scan_lock.
          It should be noted that now we have switched the controller state
          to NVME_CTRL_DELETING.
       3) In nvme_check_ready(), we always return true when ctrl->state is
          NVME_CTRL_DELETING, so those retrying I/Os were issued to the bottom
          device which was already freed.
      
      To fix this, when ctrl->state is NVME_CTRL_DELETING, issue cmd to bottom
      device only when queue state is live.  If not, return host path error to
      the block layer
      Signed-off-by: NRuozhu Li <liruozhu@huawei.com>
      Reviewed-by: NSagi Grimberg <sagi@grimberg.me>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      8b77fa6f
  4. 06 12月, 2021 2 次提交
  5. 29 11月, 2021 1 次提交
  6. 24 11月, 2021 2 次提交
  7. 09 11月, 2021 1 次提交
  8. 21 10月, 2021 3 次提交
  9. 20 10月, 2021 6 次提交
  10. 19 10月, 2021 1 次提交
  11. 18 10月, 2021 2 次提交
  12. 14 10月, 2021 1 次提交
  13. 28 9月, 2021 1 次提交
  14. 21 9月, 2021 1 次提交
  15. 15 9月, 2021 1 次提交
  16. 13 9月, 2021 1 次提交
  17. 06 9月, 2021 5 次提交
  18. 24 8月, 2021 1 次提交