linux-stable/drivers/nvme/target
Daniel Wagner cd0c1b8e04 nvmet: always initialize cqe.result
The spec doesn't mandate that the first two double words (aka results)
for the command queue entry need to be set to 0 when they are not
used (not specified). Though, the target implemention returns 0 for TCP
and FC but not for RDMA.

Let's make RDMA behave the same and thus explicitly initializing the
result field. This prevents leaking any data from the stack.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
2024-06-12 11:00:08 -07:00
..
admin-cmd.c nvmet: set maxcmd to be per controller 2024-03-02 15:18:08 -08:00
auth.c nvme updates for Linux 6.10 2024-05-14 09:14:49 -06:00
configfs.c nvmet: fix ns enable/disable possible hang 2024-05-23 13:44:42 -07:00
core.c nvmet: always initialize cqe.result 2024-06-12 11:00:08 -07:00
discovery.c nvmet: set maxcmd to be per controller 2024-03-02 15:18:08 -08:00
fabrics-cmd-auth.c nvmet: always initialize cqe.result 2024-06-12 11:00:08 -07:00
fabrics-cmd.c nvmet: always initialize cqe.result 2024-06-12 11:00:08 -07:00
fc.c nvmet-fc: move RCU read lock to nvmet_fc_assoc_exists 2024-04-04 08:47:56 -07:00
fcloop.c nvme: fcloop: make fcloop_class constant 2024-03-05 07:56:21 -08:00
io-cmd-bdev.c nvme: port block device access to file 2024-02-25 12:05:24 +01:00
io-cmd-file.c nvmet: use bvec_set_page to initialize bvecs 2023-02-03 08:20:55 -07:00
Kconfig nvme: improve NVME_HOST_AUTH and NVME_TARGET_AUTH config descriptions 2023-12-04 08:39:03 -08:00
loop.c nvme: use ctrl state accessor 2024-01-29 07:02:50 -08:00
Makefile nvmet: implement basic In-Band Authentication 2022-08-02 17:14:49 -06:00
nvmet.h nvme updates for Linux 6.10 2024-05-14 09:14:49 -06:00
passthru.c nvmet-passthru: propagate status from id override functions 2024-06-12 11:00:08 -07:00
rdma.c nvme updates for Linux 6.10 2024-05-14 09:14:49 -06:00
tcp.c nvmet-tcp: fix possible memory leak when tearing down a controller 2024-05-01 02:58:42 -07:00
trace.c nvmet: add tracing of zns commands 2024-03-08 06:58:20 -08:00
trace.h nvme: trace: avoid memcpy overflow warning 2024-01-05 13:16:18 -08:00
zns.c nvmet: zns: Do not reference the gendisk conv_zones_bitmap 2024-04-17 08:44:03 -06:00