https://github.com/torvalds/linux
Revision 6fb9974f49f7a6032118c5b6caa6e08e7097913e authored by Herbert Xu on 23 October 2005, 06:37:48 UTC, committed by Herbert Xu on 23 October 2005, 06:37:48 UTC
neigh_add_timer cannot use add_timer unconditionally.  The reason is that
by the time it has obtained the write lock someone else (e.g., neigh_update)
could have already added a new timer.

So it should only use mod_timer and deal with its return value accordingly.

This bug would have led to rare neighbour cache entry leaks.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 2037550
History
Tip revision: 6fb9974f49f7a6032118c5b6caa6e08e7097913e authored by Herbert Xu on 23 October 2005, 06:37:48 UTC
[NEIGH] Fix add_timer race in neigh_add_timer
Tip revision: 6fb9974
File Mode Size
Documentation
arch
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 391 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.1 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 59.6 KB
Makefile -rw-r--r-- 42.5 KB
README -rw-r--r-- 14.4 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top