Eric Dumazet 2903037400 net: fix sk_forward_alloc corruptions
As David found out, sock_queue_err_skb() should be called with socket
lock hold, or we risk sk_forward_alloc corruption, since we use non
atomic operations to update this field.

This patch adds bh_lock_sock()/bh_unlock_sock() pair to three spots.
(BH already disabled)

1) skb_tstamp_tx() 
2) Before calling ip_icmp_error(), in __udp4_lib_err() 
3) Before calling ipv6_icmp_error(), in __udp6_lib_err()

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-29 00:20:48 -07:00
..
2009-10-18 18:52:53 -07:00
2010-02-22 16:20:22 -08:00
2010-05-17 17:18:50 -07:00
2009-11-13 20:46:58 -08:00
2010-04-28 15:31:51 -07:00
2010-02-22 16:20:22 -08:00
2010-05-17 22:36:55 -07:00
2008-10-07 08:38:24 +11:00
2010-05-17 17:18:50 -07:00
2010-03-21 18:31:35 -07:00
2009-09-14 17:03:01 -07:00
2010-05-17 17:18:51 -07:00
2009-03-02 03:00:15 -08:00
2009-03-02 03:00:15 -08:00
2010-05-16 00:36:33 -07:00
2010-05-17 22:35:36 -07:00
2009-05-25 22:44:59 -07:00
2010-05-29 00:20:48 -07:00
2010-01-17 19:16:02 -08:00