[PATCH 0/4] nvme: fixes for authentication errors

Hannes Reinecke hare at kernel.org
Fri Mar 1 03:28:19 PST 2024


Hi all,

here's a set of fixes we've encountered during blktest runs.
Turns out that any authentication error we're generating
internally a in fact non-retryable, so we should map them
onto the appropriate NVMe status.
That caused some fallout on the target side, which gets
fixed with the remainder of this patchset.

As usual, comments and reviews are welcome.

Hannes Reinecke (4):
  nvme: authentication error are always non-retryable
  nvmet: lock config semaphore when accessing DH-HMAC-CHAP key
  nvmet: return DHCHAP status codes from nvmet_setup_auth()
  nvmet-loop: do not call nvme_ctrl_put() after nvme_ctrl_uninit()

 drivers/nvme/host/core.c               |  6 +++---
 drivers/nvme/host/fabrics.c            | 29 +++++++++++++++-----------
 drivers/nvme/host/nvme.h               |  2 +-
 drivers/nvme/target/auth.c             | 19 ++++++++---------
 drivers/nvme/target/configfs.c         | 22 ++++++++++++++-----
 drivers/nvme/target/fabrics-cmd-auth.c | 11 +++++-----
 drivers/nvme/target/loop.c             |  1 -
 7 files changed, 53 insertions(+), 37 deletions(-)

-- 
2.35.3




More information about the Linux-nvme mailing list