]> git.hungrycats.org Git - linux/commit
ipv4: Missing sk_nulls_node_init() in ping_unhash().
authorDavid S. Miller <davem@davemloft.net>
Sat, 2 May 2015 02:02:47 +0000 (22:02 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2015 12:14:18 +0000 (05:14 -0700)
commit77a23cb5bdb54f462341045248a7672009050fc0
tree503a4397d3253c41ef1b58971112cbbe87fda945
parentc603b10f503c66e72453c02143cc9f21b55a9c3b
ipv4: Missing sk_nulls_node_init() in ping_unhash().

[ Upstream commit a134f083e79fb4c3d0a925691e732c56911b4326 ]

If we don't do that, then the poison value is left in the ->pprev
backlink.

This can cause crashes if we do a disconnect, followed by a connect().

Tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Wen Xu <hotdog3645@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/ping.c