kernel_samsung_a53x/drivers/nvme/target
Daniel Wagner 70d09f422c nvmet-trace: avoid dereferencing pointer too early
[ Upstream commit 0e716cec6fb11a14c220ee17c404b67962e902f7 ]

The first command issued from the host to the target is the fabrics
connect command. At this point, neither the target queue nor the
controller have been allocated. But we already try to trace this command
in nvmet_req_init.

Reported by KASAN.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:45 +01:00
..
admin-cmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.c nvmet: fix ns enable/disable possible hang 2024-11-19 12:27:10 +01:00
core.c nvmet: fix a possible leak when destroy a ctrl during qp establishment 2024-11-19 14:19:43 +01:00
discovery.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fabrics-cmd.c nvmet: nul-terminate the NQNs passed in the connect command 2024-11-18 12:10:55 +01:00
fc.c nvmet-fc: abort command when there is no binding 2024-11-18 22:25:33 +01:00
fcloop.c nvmet-fcloop: swap the list_add_tail arguments 2024-11-18 22:25:33 +01:00
io-cmd-bdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io-cmd-file.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
loop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nvmet.h nvmet: remove unnecessary ctrl parameter 2024-11-18 12:10:55 +01:00
passthru.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tcp.c nvmet-tcp: fix nvme tcp ida memory leak 2024-11-18 22:25:33 +01:00
trace.c nvmet-trace: avoid dereferencing pointer too early 2024-11-23 23:20:45 +01:00
trace.h nvmet-trace: avoid dereferencing pointer too early 2024-11-23 23:20:45 +01:00