nvmet-auth: authenticate on admin queue only
authorHannes Reinecke <hare@kernel.org>
Tue, 22 Apr 2025 09:15:55 +0000 (11:15 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 May 2025 03:34:25 +0000 (05:34 +0200)
commitc91a20129185d5153cd845c857b4f9fce61e28d1
tree282dc014c4714932989565f8648d8b5359d6e905
parentf791252b649653fe0477da79aa40c82d5bc407de
nvmet-auth: authenticate on admin queue only

Do not start authentication on I/O queues as it doesn't really add value,
and secure concatenation disallows it anyway.  Authentication commands on
I/O queues are not aborted, so the host may still run the authentication
protocol on I/O queues.

Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/auth.c
drivers/nvme/target/fabrics-cmd.c