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
..
9p
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
802
8021q
net: Remove unnecessary semicolons after switch statements
2010-05-17 17:44:35 -07:00
appletalk
atm
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
ax25
bluetooth
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
bridge
bridge: fix build for CONFIG_SYSFS disabled
2010-05-18 12:26:27 -07:00
caif
caif: unlock on error path in cfserl_receive()
2010-05-29 00:18:50 -07:00
can
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
core
net: fix sk_forward_alloc corruptions
2010-05-29 00:20:48 -07:00
dcb
dccp
net/dccp: expansion of error code size
2010-05-24 18:37:02 -07:00
decnet
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
dsa
econet
ethernet
net: Inline skb_pull() in eth_type_trans().
2010-05-02 02:21:44 -07:00
ieee802154
ieee802154: Fix possible NULL pointer dereference in wpan_phy_alloc
2010-05-23 23:11:07 -07:00
ipv4
net: fix sk_forward_alloc corruptions
2010-05-29 00:20:48 -07:00
ipv6
net: fix sk_forward_alloc corruptions
2010-05-29 00:20:48 -07:00
ipx
irda
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
iucv
net/iucv: Add missing spin_unlock
2010-05-26 21:09:51 -07:00
key
pfkey: add severity to printk
2010-05-17 23:23:13 -07:00
l2tp
lapb
llc
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
2010-05-12 00:05:35 -07:00
mac80211
mac80211: make a function static
2010-05-28 13:41:27 -04:00
netfilter
xt_tee: use skb_dst_drop()
2010-05-28 03:41:17 -07:00
netlabel
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
netlink
netrom
packet
phonet
Phonet: listening socket lock protects the connected socket list
2010-05-29 00:18:50 -07:00
rds
net/rds: Add missing mutex_unlock
2010-05-29 00:18:48 -07:00
rfkill
rose
rxrpc
net: sock_def_readable() and friends RCU conversion
2010-05-01 15:00:15 -07:00
sched
cls_cgroup: Store classid in struct sock
2010-05-24 00:12:34 -07:00
sctp
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
sunrpc
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
2010-05-20 21:04:44 -07:00
tipc
tipc: Reduce footprint by un-inlining tipc_msg_* routines
2010-05-12 23:02:29 -07:00
unix
unix/garbage: kill copy of the skb queue walker
2010-05-03 15:39:58 -07:00
wanrouter
wimax
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
2010-05-20 21:04:44 -07:00
wireless
cfg80211: add missing braces
2010-05-21 14:40:01 -04:00
x25
X25: Remove bkl in sockopts
2010-05-17 17:39:28 -07:00
xfrm
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
cls_cgroup: Store classid in struct sock
2010-05-24 00:12:34 -07:00
sysctl_net.c
net: Remove unnecessary returns from void function()s
2010-05-17 23:23:14 -07:00
TUNABLE