Re: [PATCH v2 1/1] net: gro: fix misuse of CB in udp socket lookup

From: Gal Pressman
Date: Sun Jul 23 2023 - 08:07:41 EST


On 20/07/2023 19:26, Richard Gobert wrote:
> This patch fixes a misuse of IP{6}CB(skb) in GRO, while calling to
> `udp6_lib_lookup2` when handling udp tunnels. `udp6_lib_lookup2` fetch the
> device from CB. The fix changes it to fetch the device from `skb->dev`.
> l3mdev case requires special attention since it has a master and a slave
> device.
>
> Fixes: a6024562ffd7 ("udp: Add GRO functions to UDP socket")
> Reported-by: Gal Pressman <gal@xxxxxxxxxx>
> Signed-off-by: Richard Gobert <richardbgobert@xxxxxxxxx>

Thanks Richard!
Tested-by: Nimrod Oren <noren@xxxxxxxxxx>