kernel-ark/net
Herbert Xu 6151b31c96 [NET]: Fix race condition in sk_stream_wait_connect
When sk_stream_wait_connect detects a state transition to ESTABLISHED
or CLOSE_WAIT prior to it going to sleep, it will return without
calling finish_wait and decrementing sk_write_pending.

This may result in crashes and other unintended behaviour.

The fix is to always call finish_wait and update sk_write_pending since
it is safe to do so even if the wait entry is no longer on the queue.

This bug was tracked down with the help of Alex Sidorenko and the
fix is also based on his suggestion.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
2005-11-05 21:05:20 -02:00
..
802 [TR]: Preserve RIF flag even for 2 byte RIF fields. 2005-10-25 21:31:38 -02:00
8021q
appletalk
atm
ax25
bluetooth [PATCH] bluetooth hidp is broken on s390 2005-10-29 10:35:08 -07:00
bridge [BRIDGE]: Use ether_compare 2005-10-31 16:34:10 -02:00
core [NET]: Fix race condition in sk_stream_wait_connect 2005-11-05 21:05:20 -02:00
dccp [DCCP]: Set socket owner iff packet is not data 2005-10-31 22:30:02 -02:00
decnet [DECNET]: Remove some redundant ifdeffed code 2005-10-25 23:49:29 -02:00
econet
ethernet [ETH]: ether address compare 2005-10-29 02:23:58 -02:00
ieee80211 [PATCH] ieee80211 build fix 2005-10-26 00:54:23 -04:00
ipv4 [NETFILTER]: CONNMARK target needs ip_conntrack 2005-11-05 16:39:20 -02:00
ipv6 [IPV6]: inet6_ifinfo_notify should use RTM_DELLINK in addrconf_ifdown 2005-11-03 01:03:05 -02:00
ipx
irda
key
lapb
llc
netfilter [NETFILTER] nf_queue: Fix Ooops when no queue handler registered 2005-11-05 16:43:29 -02:00
netlink Merge master.kernel.org:/pub/scm/linux/kernel/git/acme/net-2.6.15 2005-10-28 08:50:37 -07:00
netrom
packet
rose [ROSE]: rose_heartbeat_expiry() locking fix 2005-10-31 16:41:45 -02:00
rxrpc
sched [NETEM]: Add version string 2005-11-05 20:59:21 -02:00
sctp Merge master.kernel.org:/pub/scm/linux/kernel/git/sridhar/lksctp-2.6 2005-10-28 23:35:02 -02:00
sunrpc NFS,SUNRPC,NLM: fix unused variable warnings when CONFIG_SYSCTL is disabled 2005-11-04 15:39:48 -05:00
unix
wanrouter
x25
xfrm [IPSEC]: Kill obsolete get_mss function 2005-10-26 00:48:45 -02:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE