[PATCH 1/2] nvmet-tcp: Fix a kernel panic when host sends an invalid H2C PDU length

Maurizio Lombardi mlombard at redhat.com
Fri Dec 22 00:41:27 PST 2023


čt 21. 12. 2023 v 18:42 odesílatel Keith Busch <kbusch at kernel.org> napsal:
>
> On Thu, Dec 21, 2023 at 05:31:53PM +0100, Maurizio Lombardi wrote:
> Please add the 'pdu_len' to the pr_err since that info sounds useful to
> knowing which type of target error we're dealing with.
>
> Otherwise looks good!
>
> Reviewed-by: Keith Busch <kbusch at kernel.org>
>

Thanks,

I realized that there is still a possible problem, the data_length
sent by the host
could be inside the allowed range, but still higher than the real size
of the packet.
This could make the kernel crash.

Today I will send a V2 and add more fixes to this patchset.

Maurizio




More information about the Linux-nvme mailing list