android_kernel_asus_sm8350/drivers/nvme/target
Maurizio Lombardi 40d171ef23 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-01-25 14:34:32 -08:00
..
admin-cmd.c nvmet: fix a wrong error status returned in error log page 2019-09-12 08:50:46 -07:00
configfs.c nvmet: fix use-after-free when a port is removed 2021-11-17 09:48:31 +01:00
core.c nvmet: remove unnecessary ctrl parameter 2023-12-08 08:44:24 +01:00
discovery.c nvmet: Use PTR_ERR_OR_ZERO() in nvmet_init_discovery() 2019-09-12 08:50:46 -07:00
fabrics-cmd.c nvmet: nul-terminate the NQNs passed in the connect command 2023-12-08 08:44:24 +01:00
fc.c nvme-fc: fix a missing queue put in nvmet_fc_ls_create_association 2023-02-22 12:50:35 +01:00
fcloop.c nvme-fcloop: fix "inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage" 2023-05-17 11:35:43 +02:00
io-cmd-bdev.c nvmet: change ppl to lpp 2019-09-23 13:59:49 -07:00
io-cmd-file.c nvmet: use IOCB_NOWAIT only if the filesystem supports it 2021-12-01 09:23:33 +01:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
loop.c nvme-loop: check for NVME_LOOP_Q_LIVE in nvme_loop_destroy_admin_queue() 2021-06-18 09:58:59 +02:00
Makefile nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00
nvmet.h nvmet: remove unnecessary ctrl parameter 2023-12-08 08:44:24 +01:00
rdma.c nvmet-rdma: Fix list_del corruption on queue establishment failure 2021-01-19 18:26:15 +01:00
tcp.c nvmet-tcp: Fix the H2C expected PDU len calculation 2024-01-25 14:34:32 -08:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: fix a NULL pointer dereference when tracing the flush command 2020-11-10 12:37:30 +01:00