android_kernel_xiaomi_sm8350/net
Neil Horman fb3d89498d [IPVS]: Close race conditions on ip_vs_conn_tab list modification
In an smp system, it is possible for an connection timer to expire, calling
ip_vs_conn_expire while the connection table is being flushed, before
ct_write_lock_bh is acquired.

Since the list iterator loop in ip_vs_con_flush releases and re-acquires the
spinlock (even though it doesn't re-enable softirqs), it is possible for the
expiration function to modify the connection list, while it is being traversed
in ip_vs_conn_flush.

The result is that the next pointer gets set to NULL, and subsequently
dereferenced, resulting in an oops.

Signed-off-by: Neil Horman <nhorman@redhat.com>
Acked-by: JulianAnastasov
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-06-28 15:40:02 -07:00
..
802 [TOKENRING]: net/802/tr.c: s/struct rif_cache_s/struct rif_cache/ 2005-05-26 12:59:42 -07:00
8021q
appletalk [ATALK] aarp: replace schedule_timeout() with msleep() 2005-06-22 22:11:44 -07:00
atm
ax25
bluetooth
bridge [EBTABLES]: Fix thinkos in ebt_log.c 2005-06-28 12:39:40 -07:00
core [NETLINK]: Missing initializations in dumped data 2005-06-28 12:55:30 -07:00
decnet [DECNET]: Remove unnecessary initilization of unused variable entries 2005-06-18 22:55:02 -07:00
econet
ethernet [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
ipv4 [IPVS]: Close race conditions on ip_vs_conn_tab list modification 2005-06-28 15:40:02 -07:00
ipv6 [IPV6]: Don't dump temporary addresses twice 2005-06-28 13:00:30 -07:00
ipx
irda [PATCH] ISA DMA Kconfig fixes - part 4 (irda) 2005-05-04 07:33:14 -07:00
key [IPSEC]: Add XFRM_STATE_NOPMTUDISC flag 2005-06-20 13:21:43 -07:00
lapb
llc
netlink [NETLINK]: Fix two socket hashing bugs. 2005-06-26 15:31:51 -07:00
netrom
packet [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
rose
rxrpc [PATCH] Cleanup patch for process freezing 2005-06-25 17:10:13 -07:00
sched [NETLINK]: Missing padding fields in dumped structures 2005-06-28 12:56:45 -07:00
sctp [SCTP] Make init & delayed sack timeouts configurable by user. 2005-06-28 13:24:23 -07:00
sunrpc Merge Christoph's freeze cleanup patch 2005-06-25 17:16:53 -07:00
unix [AF_UNIX]: Use lookup_create(). 2005-05-19 12:26:43 -07:00
wanrouter
x25 [X25]: Fast select with no restriction on response 2005-06-22 22:16:17 -07:00
xfrm [IPSEC]: Add xfrm_state_afinfo->init_flags 2005-06-20 13:19:41 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c [NET]: dont use strlen() but the result from a prior sprintf() 2005-06-22 14:32:51 -07:00
sysctl_net.c
TUNABLE