]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:10:56 +0000 (16:10 -0500)
commitbd9fed146ee8c0212a42154108ec7ee8ad3561db
tree218467c5b410a8af391d109b27b9c4787c6ec23b
parent64d53a6d07366e26ae0c750b2eabb857b72e627a
netlink: fix races after skb queueing

commit 4a7e7c2ad540e54c75489a70137bf0ec15d3a127 upstream.

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: Paul Gortmaker <paul.gortmaker@windriver.com>
net/netlink/af_netlink.c