Net: ethernet: ti: netcp: Fix inbound ping crash if MTU size is greater than 1500
Subsystems (2)
Chang, Rex
AppliedPATCH 1/1 Net: ethernet: ti: netcp: Fix inbound ping crash if MTU size is greater than 1500
I am requesting to merge this patch to the stable releases:
commit 5a717843177c96ca3fe4565187de395afdb28092
Kernel crashes if MTU is greater than 1500. This code was working in Kernel v 3.14, but got broken when migrating from Kernel v3.14 to v 4.1.
Stable versions to apply: v4.1 and v4.4.
Thanks!
Rex
-----Original Message-----
From: David Miller [mailto:[email protected]]
Sent: Wednesday, January 17, 2018 4:20 PM
To: Chang, Rex
Cc: Kwok, WingMan; Karicheri, Muralidharan; [email protected]; [email protected]
Subject: [EXTERNAL] Re: [PATCH] Net: ethernet: ti: netcp: Fix inbound ping crash if MTU size is greater than 1500
From: Rex Chang <[email protected]>
Date: Tue, 16 Jan 2018 15:16:01 -0500
Quoted 7 lines
In the receive queue for 4096 bytes fragments, the page address set in the SW data0 field of the descriptor is not the one we got when doing the reassembly in receive. The page structure was retrieved from the wrong descriptor into SW data0 which is then causing a page fault when UDP checksum is accessing data above 1500.
Signed-off-by Rex Chang <[email protected]>
Applied, thank you.