Skip to content

nvme: fixup crash in device_add_disk()

Hannes Reinecke linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nvme: return error from nvme_alloc_ns()drivers/nvme/host/core.c+21 -102 replies
2/2nvme: protect against race condition in nvme_validate_ns()drivers/nvme/host/core.c+17 -32 replies
2/2nvme: protect against race condition in nvme_validate_ns()+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] nvme: fixup crash in device_add_disk()

Hi all,

during testing we've ran into an issue where the system would crash in device_add_disk(); analysis showed that there is a race condition in nvme_validate_ns() if called simultaneously for the same controller. This patchset tries to fix it up.

As usual, comments and reviews are appreciated.

Hannes Reinecke (2):
nvme: return error from nvme_alloc_ns()
nvme: protect against race condition in nvme_validate_ns()

 drivers/nvme/host/core.c | 51 ++++++++++++++++++++++++++++++++++++------------
 1 file changed, 38 insertions(+), 13 deletions(-)
Signature · 1 line
2.16.4