kernel_samsung_a53x/drivers/nvme/target
Maurizio Lombardi 6014f08664 nvmet-tcp: Fix the H2C expected PDU len calculation
[ Upstream commit 9a1abc24850eb759e36a2f8869161c3b7254c904 ]

The nvmet_tcp_handle_h2c_data_pdu() function should take into
consideration the possibility that the header digest and/or the data
digests are enabled when calculating the expected PDU length, before
comparing it to the value stored in cmd->pdu_len.

Fixes: efa56305908b ("nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length")
Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:50 +01:00
..
admin-cmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
configfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c nvmet: remove unnecessary ctrl parameter 2024-11-18 12:10:55 +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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fcloop.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03: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 the H2C expected PDU len calculation 2024-11-18 12:12:50 +01:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00