sock: sock_dequeue_err_skb() needs hard irq safety
authorEric Dumazet <edumazet@google.com>
Wed, 18 Feb 2015 13:47:55 +0000 (05:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 20:52:21 +0000 (15:52 -0500)
commit997d5c3f4427f38562cbe207ce05bb25fdcb993b
treef4ebf7541e6ef91e3deb54434c0c3c523af5bbd3
parent846cd66788b11105a62785078360c8854aa98310
sock: sock_dequeue_err_skb() needs hard irq safety

Non NAPI drivers can call skb_tstamp_tx() and then sock_queue_err_skb()
from hard IRQ context.

Therefore, sock_dequeue_err_skb() needs to block hard irq or
corruptions or hangs can happen.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Fixes: 364a9e93243d1 ("sock: deduplicate errqueue dequeue")
Fixes: cb820f8e4b7f7 ("net: Provide a generic socket error queue delivery method for Tx time stamps.")
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c