Re: [PATCH net] net: fix possible out-of-bound read in skb_network_protocol()

2018-03-27 Thread Pravin Shelar
On Mon, Mar 26, 2018 at 8:08 AM, Eric Dumazet wrote: > skb mac header is not necessarily set at the time skb_network_protocol() > is called. Use skb->data instead. > > BUG: KASAN: slab-out-of-bounds in skb_network_protocol+0x46b/0x4b0 > net/core/dev.c:2739 > Read of size 2 at addr 8801b3097a0

Re: [PATCH net] net: fix possible out-of-bound read in skb_network_protocol()

2018-03-27 Thread David Miller
From: Eric Dumazet Date: Mon, 26 Mar 2018 08:08:07 -0700 > skb mac header is not necessarily set at the time skb_network_protocol() > is called. Use skb->data instead. > > BUG: KASAN: slab-out-of-bounds in skb_network_protocol+0x46b/0x4b0 > net/core/dev.c:2739 > Read of size 2 at addr 8801b

[PATCH net] net: fix possible out-of-bound read in skb_network_protocol()

2018-03-26 Thread Eric Dumazet
skb mac header is not necessarily set at the time skb_network_protocol() is called. Use skb->data instead. BUG: KASAN: slab-out-of-bounds in skb_network_protocol+0x46b/0x4b0 net/core/dev.c:2739 Read of size 2 at addr 8801b3097a0b by task syz-executor5/14242 CPU: 1 PID: 14242 Comm: syz-execut