net: initialize skb->peeked when cloning
authorEric Dumazet <edumazet@google.com>
Sat, 7 Apr 2018 20:42:39 +0000 (13:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Apr 2018 02:32:31 +0000 (22:32 -0400)
commitb13dda9f9aa7caceeee61c080c2e544d5f5d85e5
tree9a5d1163611e1f95613f9f9ef43355c74357d884
parentb1993a2de12c9e75c35729e2ffbc3a92d50c0d31
net: initialize skb->peeked when cloning

syzbot reported __skb_try_recv_from_queue() was using skb->peeked
while it was potentially unitialized.

We need to clear it in __skb_clone()

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c