mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Allow userspace to trigger a reauth (REPLACETLSPSK) from sysfs. This can be done by writing a zero to the sysfs file. echo 0 > /sys/devices/virtual/nvme-fabrics/ctl/nvme0/tls_configured_key In order to use the new keys for the admin queue we call controller reset. This isn't ideal, but I can't find a simpler way to reset the admin queue TLS connection. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
14 lines
542 B
Plaintext
14 lines
542 B
Plaintext
What: /sys/devices/virtual/nvme-fabrics/ctl/.../tls_configured_key
|
|
Date: November 2025
|
|
KernelVersion: 6.19
|
|
Contact: Linux NVMe mailing list <linux-nvme@lists.infradead.org>
|
|
Description:
|
|
The file is avaliable when using a secure concatanation
|
|
connection to a NVMe target. Reading the file will return
|
|
the serial of the currently negotiated key.
|
|
|
|
Writing 0 to the file will trigger a PSK reauthentication
|
|
(REPLACETLSPSK) with the target. After a reauthentication
|
|
the value returned by tls_configured_key will be the new
|
|
serial.
|