]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netlink: fix races after skb queueing
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 5 Apr 2012 22:17:46 +0000 (22:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 17:16:55 +0000 (10:16 -0700)
commit567d1cca5d81446e452c0f4aa6751a8612a31817
treed6b95da113327fc70a641906683cd14652e388c3
parent8087d1a115874141742ffecd54953bb691a5940e
netlink: fix races after skb queueing

[ Upstream commit 4a7e7c2ad540e54c75489a70137bf0ec15d3a127 ]

As soon as an skb is queued into socket receive_queue, another thread
can consume it, so we are not allowed to reference skb anymore, or risk
use after free.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netlink/af_netlink.c