linux/drivers/nvme
Maurizio Lombardi 547ee6039f nvmet-tcp: Fix the H2C expected PDU len calculation
[ Upstream commit 9a1abc2485 ]

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: efa5630590 ("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>
History 2024-01-25 15:45:25 -08:00
..
common nvme: keyring: fix conditional compilation 2023-11-08 08:07:08 -08:00
host nvme-pci: fix sleeping function called from interrupt context 2023-12-19 12:41:05 -08:00
target nvmet-tcp: Fix the H2C expected PDU len calculation 2024-01-25 15:45:25 -08:00
Kconfig nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
Makefile nvme: common: make keyring and auth separate modules 2023-11-07 10:05:15 -08:00