net: initialize skb->peeked when cloning
authorEric Dumazet <edumazet@google.com>
Sat, 7 Apr 2018 20:42:39 +0000 (13:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 May 2018 08:08:41 +0000 (10:08 +0200)
commitec98618c20d0ba798798ec93fb366681f18347de
tree4f35a24ff3a21915b7f17e13d907bc10822ce1d8
parenta3cac7e26bbd944cc8bfc96c81d6784fbde594ec
net: initialize skb->peeked when cloning

commit b13dda9f9aa7caceeee61c080c2e544d5f5d85e5 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/skbuff.c