summaryrefslogtreecommitdiffstats
path: root/net/hsr/hsr_slave.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-08-10 18:09:13 +0200
committerDavid S. Miller <davem@davemloft.net>2015-08-11 06:17:29 +0200
commit2235f2ac75fd2501c251b0b699a9632e80239a6d (patch)
tree1d332db260b2a933ac42386c254d0d14163a1d84 /net/hsr/hsr_slave.h
parentmkiss: Fix error handling in mkiss_open() (diff)
downloadlinux-2235f2ac75fd2501c251b0b699a9632e80239a6d.tar.xz
linux-2235f2ac75fd2501c251b0b699a9632e80239a6d.zip
inet: fix races with reqsk timers
reqsk_queue_destroy() and reqsk_queue_unlink() should use del_timer_sync() instead of del_timer() before calling reqsk_put(), otherwise we could free a req still used by another cpu. But before doing so, reqsk_queue_destroy() must release syn_wait_lock spinlock or risk a dead lock, as reqsk_timer_handler() might need to take this same spinlock from reqsk_queue_unlink() (called from inet_csk_reqsk_queue_drop()) Fixes: fa76ce7328b2 ("inet: get rid of central tcp/dccp listener timer") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/hsr/hsr_slave.h')
0 files changed, 0 insertions, 0 deletions