llc: Fix race condition in llc_ui_recvmsg
authorRadu Iliescu <radui@bricsys.com>
Thu, 19 Jan 2012 03:57:57 +0000 (03:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Jan 2012 20:33:19 +0000 (15:33 -0500)
commit56ac11cf2f21366ad48b356f7a0d1af8cff3588e
treedd4471a9df32ddda044718d6d88cbb78cf941bea
parent90b9a5454fd2e626aa1614fe9ece6b63a0dc37af
llc: Fix race condition in llc_ui_recvmsg

There is a race on sk_receive_queue between llc_ui_recvmsg and
sock_queue_rcv_skb.

Our current solution is to protect skb_eat in llc_ui_recvmsg
with the queue spinlock.

Signed-off-by: Radu Iliescu <riliescu@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/llc/af_llc.c