public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] Support PSK reauthentication (REPLACETLSPSK)
@ 2025-12-02  5:17 alistair23
  2025-12-02  5:17 ` [PATCH v4 1/4] nvmet-tcp: Don't error if TLS is enabed on a reset alistair23
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: alistair23 @ 2025-12-02  5:17 UTC (permalink / raw)
  To: kbusch, axboe, hch, sagi, hare, kch, linux-nvme
  Cc: linux-kernel, alistair23, Alistair Francis

From: Alistair Francis <alistair.francis@wdc.com>

Allow userspace on the host to trigger a reauth (REPLACETLSPSK) from
sysfs. This will replace the PSK for the admin queue when using
a secure concat connection.

This can be done by writing 0 to the `tls_configured_key` sysfs file,
for example something like this

```shell
echo 0 > /sys/devices/virtual/nvme-fabrics/ctl/nvme0/tls_configured_key
```

`tls_configured_key` will only appear for concat connections as that is
all that is supported.

Reading `tls_configured_key` will return the current configured key, which
changes after each REPLACETLSPSK operation.

This series also include some fixes for the NVMe target code to ensure
this works against a Linux NVMe target.

v4:
 - Forcefully reset the connection after updating the keys
v3:
 - Only trigger if a 0 is written to `tls_configured_key`
 - Add documentation

Alistair Francis (4):
  nvmet-tcp: Don't error if TLS is enabed on a reset
  nvmet-tcp: Don't free SQ on authentication success
  nvme: Expose the tls_configured sysfs for secure concat connections
  nvme: Allow reauth from sysfs

 Documentation/ABI/testing/sysfs-nvme   | 13 ++++++++
 drivers/nvme/host/sysfs.c              | 46 ++++++++++++++++++++++++--
 drivers/nvme/target/auth.c             |  4 +--
 drivers/nvme/target/core.c             |  2 +-
 drivers/nvme/target/fabrics-cmd-auth.c | 12 +++----
 drivers/nvme/target/nvmet.h            |  4 +--
 6 files changed, 68 insertions(+), 13 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-nvme

-- 
2.51.1



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-03-02 20:09 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-02  5:17 [PATCH v4 0/4] Support PSK reauthentication (REPLACETLSPSK) alistair23
2025-12-02  5:17 ` [PATCH v4 1/4] nvmet-tcp: Don't error if TLS is enabed on a reset alistair23
2025-12-12 13:48   ` Sagi Grimberg
2025-12-02  5:17 ` [PATCH v4 2/4] nvmet-tcp: Don't free SQ on authentication success alistair23
2025-12-12 13:49   ` Sagi Grimberg
2025-12-02  5:17 ` [PATCH v4 3/4] nvme: Expose the tls_configured sysfs for secure concat connections alistair23
2025-12-12 13:50   ` Sagi Grimberg
2025-12-02  5:17 ` [PATCH v4 4/4] nvme: Allow reauth from sysfs alistair23
2025-12-02  6:03   ` Christoph Hellwig
2025-12-02 15:30   ` Hannes Reinecke
2025-12-12 13:52   ` Sagi Grimberg
2025-12-13  3:33   ` Wilfred Mallawa
2026-03-02  3:42 ` [PATCH v4 0/4] Support PSK reauthentication (REPLACETLSPSK) Alistair Francis
2026-03-02 20:09   ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox