From: Eric Dumazet Date: Sat, 29 May 2010 07:20:48 +0000 (-0700) Subject: net: fix sk_forward_alloc corruptions X-Git-Tag: v2.6.35-rc2~64^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2903037400a26e7c0cc93ab75a7d62abfacdf485;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed