Skip to content
Snippets Groups Projects
Commit 66d0cf7d authored by Phillip Potter's avatar Phillip Potter Committed by Greg Kroah-Hartman
Browse files

net: geneve: check skb is large enough for IPv4/IPv6 header

[ Upstream commit 6628ddfe ]

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: default avatarEric Dumazet <edumazet@google.com>
Reported-by: default avatar <syzbot+2e406a9ac75bb71d4b7a@syzkaller.appspotmail.com>
Signed-off-by: default avatarPhillip Potter <phil@philpotter.co.uk>
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 6ce64437
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment