kernel-ark/net/ipv4/ipvs
Pavel Emelyanov 4ac63ad6c5 [IPVS]: Fix sched registration race when checking for name collision.
The register_ip_vs_scheduler() checks for the scheduler with the
same name under the read-locked __ip_vs_sched_lock, then drops,
takes it for writing and puts the scheduler in list.

This is racy, since we can have a race window between the lock
being re-locked for writing.

The fix is to search the scheduler with the given name right under
the write-locked __ip_vs_sched_lock.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-12-05 05:37:27 -08:00
..
ip_vs_app.c [NETFILTER]: Replace sk_buff ** with sk_buff * 2007-10-15 12:26:29 -07:00
ip_vs_conn.c [IPVS]: Remove unused exports. 2007-11-12 21:25:24 -08:00
ip_vs_core.c [IPV4]: Add missing "space" 2007-11-19 23:46:29 -08:00
ip_vs_ctl.c [IPVS]: Move remaining sysctl handlers over to CTL_UNNUMBERED 2007-11-19 21:51:13 -08:00
ip_vs_dh.c
ip_vs_est.c
ip_vs_ftp.c [NETFILTER]: Replace sk_buff ** with sk_buff * 2007-10-15 12:26:29 -07:00
ip_vs_lblc.c [IPVS]: Don't leak sysctl tables if the scheduler registration fails. 2007-12-05 05:37:26 -08:00
ip_vs_lblcr.c [IPVS]: Don't leak sysctl tables if the scheduler registration fails. 2007-12-05 05:37:26 -08:00
ip_vs_lc.c
ip_vs_nq.c
ip_vs_proto_ah.c
ip_vs_proto_esp.c
ip_vs_proto_tcp.c [NETFILTER]: Replace sk_buff ** with sk_buff * 2007-10-15 12:26:29 -07:00
ip_vs_proto_udp.c [NETFILTER]: Replace sk_buff ** with sk_buff * 2007-10-15 12:26:29 -07:00
ip_vs_proto.c [IPVS]: Fix compiler warning about unused register_ip_vs_protocol 2007-11-20 17:44:01 -08:00
ip_vs_rr.c
ip_vs_sched.c [IPVS]: Fix sched registration race when checking for name collision. 2007-12-05 05:37:27 -08:00
ip_vs_sed.c
ip_vs_sh.c
ip_vs_sync.c [IPVS]: Synchronize closing of Connections 2007-11-07 04:15:10 -08:00
ip_vs_wlc.c
ip_vs_wrr.c
ip_vs_xmit.c [NET]: Treat the sign of the result of skb_headroom() consistently 2007-10-23 21:27:55 -07:00
Kconfig
Makefile