kernel-ark/net/core
Herbert Xu 49636bb128 [NEIGH] Fix timer leak in neigh_changeaddr
neigh_changeaddr attempts to delete neighbour timers without setting
nud_state.  This doesn't work because the timer may have already fired
when we acquire the write lock in neigh_changeaddr.  The result is that
the timer may keep firing for quite a while until the entry reaches
NEIGH_FAILED.

It should be setting the nud_state straight away so that if the timer
has already fired it can simply exit once we relinquish the lock.

In fact, this whole function is simply duplicating the logic in
neigh_ifdown which in turn is already doing the right thing when
it comes to deleting timers and setting nud_state.

So all we have to do is take that code out and put it into a common
function and make both neigh_changeaddr and neigh_ifdown call it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2005-10-23 17:18:00 +10:00
..
datagram.c
dev_mcast.c
dev.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
dst.c
dv.c
ethtool.c
filter.c
flow.c
gen_estimator.c
gen_stats.c
iovec.c
link_watch.c
Makefile
neighbour.c [NEIGH] Fix timer leak in neigh_changeaddr 2005-10-23 17:18:00 +10:00
net-sysfs.c
netpoll.c [IPV4]: Replace __in_dev_get with __in_dev_get_rcu/rtnl 2005-10-03 14:35:55 -07:00
pktgen.c [IPV4]: Get rid of bogus __in_put_dev in pktgen 2005-10-03 14:36:32 -07:00
request_sock.c
rtnetlink.c
scm.c
skbuff.c [SK_BUFF]: ipvs_property field must be copied 2005-10-22 17:06:01 -02:00
sock.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
stream.c
sysctl_net_core.c
utils.c
wireless.c