Re: [PATCH] net: geneve: check skb is large enough for IPv4/IPv6 header

From: Eric Dumazet
Date: Sun Apr 11 2021 - 11:21:41 EST


On Sun, Apr 11, 2021 at 1:28 PM Phillip Potter <phil@xxxxxxxxxxxxxxxx> wrote:
>
> Check within geneve_xmit_skb/geneve6_xmit_skb that sk_buff structure
> is large enough to include IPv4 or IPv6 header, and reject if not. The
> geneve_xmit_skb portion and overall idea was contributed by Eric Dumazet.
> Fixes a KMSAN-found uninit-value bug reported by syzbot at:
> https://syzkaller.appspot.com/bug?id=abe95dc3e3e9667fc23b8d81f29ecad95c6f106f
>
> Suggested-by: Eric Dumazet <edumazet@xxxxxxxxxx>
> Reported-by: syzbot+2e406a9ac75bb71d4b7a@xxxxxxxxxxxxxxxxxxxxxxxxx
> Signed-off-by: Phillip Potter <phil@xxxxxxxxxxxxxxxx>

Signed-off-by: Eric Dumazet <edumazet@xxxxxxxxxx>

Thanks !