alistair23-linux/net
Herbert Xu 905db44087 packet: Avoid lock_sock in mmap handler
As the mmap handler gets called under mmap_sem, and we may grab
mmap_sem elsewhere under the socket lock to access user data, we
should avoid grabbing the socket lock in the mmap handler.

Since the only thing we care about in the mmap handler is for
pg_vec* to be invariant, i.e., to exclude packet_set_ring, we
can achieve this by simply using a new mutex.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Martin MOKREJŠ <mmokrejs@ribosome.natur.cuni.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-01-30 14:13:49 -08:00
..
9p net/9p: fid->fid is used uninitialized 2009-01-19 16:20:15 -08:00
802
8021q vlan: Export symbols as non GPL symbols. 2009-01-26 12:37:53 -08:00
appletalk appletalk: convert aarp to net_device_ops 2009-01-07 17:21:44 -08:00
atm
ax25
bluetooth bluetooth: driver API update 2009-01-07 17:23:17 -08:00
bridge netfilter 05/09: ebtables: fix inversion in match code 2009-01-12 21:18:35 -08:00
can can: fix slowpath issue in hrtimer callback function 2009-01-14 21:06:55 -08:00
core net: Fix OOPS in skb_seq_read(). 2009-01-29 16:12:42 -08:00
dcb
dccp dccp ccid-3: Fix RFC reference 2009-01-11 00:17:22 -08:00
decnet
dsa dsa: convert to net_device_ops (v2) 2009-01-06 16:45:26 -08:00
econet
ethernet
ipv4 ipv4: fix infinite retry loop in IP-Config 2009-01-29 16:19:13 -08:00
ipv6 ipv6: Make mc_forwarding sysctl read-only. 2009-01-27 22:41:03 -08:00
ipx
irda
iucv s390: remove s390_root_dev_*() 2009-01-06 10:44:34 -08:00
key af_key: initialize xfrm encap_oa 2009-01-25 20:49:14 -08:00
lapb
llc
mac80211 mac80211: fix slot time debug message 2009-01-22 13:55:01 -05:00
netfilter netfilter: ctnetlink: fix scheduling while atomic 2009-01-21 12:19:49 -08:00
netlabel
netlink genetlink: export genl_unregister_mc_group() 2009-01-07 10:00:17 -08:00
netrom
packet packet: Avoid lock_sock in mmap handler 2009-01-30 14:13:49 -08:00
phonet phonet: update to net_device_ops 2009-01-07 17:24:34 -08:00
rfkill
rose
rxrpc
sched pkt_sched: sch_htb: Break all htb_do_events() after 2 jiffies 2009-01-12 21:54:40 -08:00
sctp sctp: Fix another socket race during accept/peeloff 2009-01-22 14:53:23 -08:00
sunrpc fs/Kconfig: move sunrpc out 2009-01-22 13:16:00 +03:00
tipc net/tipc/bcast.h: use ARRAY_SIZE 2009-01-11 00:06:33 -08:00
unix
wanrouter
wimax wimax: fix build issue when debugfs is disabled 2009-01-29 17:18:31 -08:00
wireless cfg80211: print correct intersected regulatory domain 2009-01-29 15:46:43 -05:00
x25
xfrm Revert "xfrm: For 32/64 compatability wrt. xfrm_usersa_info" 2009-01-20 09:49:51 -08:00
compat.c
Kconfig net: Move config NET_NS to from net/Kconfig to init/Kconfig 2009-01-26 12:25:55 -08:00
Makefile wimax: Makefile, Kconfig and docbook linkage for the stack 2009-01-07 10:00:17 -08:00
nonet.c
socket.c [CVE-2009-0029] System call wrappers part 22 2009-01-14 14:15:27 +01:00
sysctl_net.c
TUNABLE