linux-stable/drivers/nvme/target
min15.li 5e6898b854 nvme: fix miss command type check
commit 31a5978243 upstream.

In the function nvme_passthru_end(), only the value of the command
opcode is checked, without checking the command type (IO command or
Admin command). When we send a Dataset Management command (The opcode
of the Dataset Management command is the same as the Set Feature
command), kernel thinks it is a set feature command, then sets the
controller's keep alive interval, and calls nvme_keep_alive_work().

Signed-off-by: min15.li <min15.li@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Fixes: b58da2d270 ("nvme: update keep alive interval when kato is modified")
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:28:35 +02:00
..
admin-cmd.c nvmet: fix I/O Command Set specific Identify Controller 2023-05-11 23:03:22 +09:00
auth.c
configfs.c nvme: prevent potential spectre v1 gadget 2024-01-20 11:50:06 +01:00
core.c nvmet: avoid potential UAF in nvmet_req_complete() 2023-03-22 13:33:47 +01:00
discovery.c
fabrics-cmd-auth.c nvmet-auth: complete a request only after freeing the dhchap pointers 2023-10-25 12:03:14 +02:00
fabrics-cmd.c nvmet: nul-terminate the NQNs passed in the connect command 2023-12-03 07:32:09 +01:00
fc.c nvmet-fc: take ref count on tgtport before delete assoc 2024-03-01 13:26:28 +01:00
fcloop.c nvmet-fcloop: swap the list_add_tail arguments 2024-03-01 13:26:27 +01:00
io-cmd-bdev.c
io-cmd-file.c nvmet: use bvec_set_page to initialize bvecs 2023-09-23 11:11:08 +02:00
Kconfig
loop.c
Makefile
nvmet.h nvmet: fix I/O Command Set specific Identify Controller 2023-05-11 23:03:22 +09:00
passthru.c nvme: fix miss command type check 2024-04-10 16:28:35 +02:00
rdma.c
tcp.c nvmet-tcp: fix nvme tcp ida memory leak 2024-03-01 13:26:27 +01:00
trace.c
trace.h nvme: trace: avoid memcpy overflow warning 2024-01-25 15:27:48 -08:00
zns.c nvmet: fix I/O Command Set specific Identify Controller 2023-05-11 23:03:22 +09:00