]> git.infradead.org Git - users/hch/misc.git/commit
nvme-tcp: check for invalidated or revoked key
authorHannes Reinecke <hare@kernel.org>
Mon, 22 Jul 2024 12:02:20 +0000 (14:02 +0200)
committerKeith Busch <kbusch@kernel.org>
Thu, 22 Aug 2024 20:25:07 +0000 (13:25 -0700)
commit5bc46b49c828a6dfaab80b71ecb63fe76a1096d2
tree44332206668acf252198d641f849573cfb3cae0a
parent363895767fbfa05891b0b4d9e06ebde7a10c6a07
nvme-tcp: check for invalidated or revoked key

key_lookup() will always return a key, even if that key is revoked
or invalidated. So check for invalid keys before continuing.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/common/keyring.c
drivers/nvme/host/Kconfig
drivers/nvme/host/fabrics.c
drivers/nvme/host/tcp.c
include/linux/nvme-keyring.h