diff options
author | Eric Dumazet <edumazet@google.com> | 2015-09-19 09:48:04 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-27 09:51:49 +0900 |
commit | 31b8abd140ad0be5f63bae0e4e6beb9d52b16f85 (patch) | |
tree | 3562dc6ce58daa709a8634feab8b0cb7fcda042d /net/unix/af_unix.c | |
parent | 9bdfdea4cc4617aaa3a4f291904fe85e6ca2c9a6 (diff) |
inet: fix races in reqsk_queue_hash_req()
[ Upstream commit 29c6852602e259d2c1882f320b29d5c3fec0de04 ]
Before allowing lockless LISTEN processing, we need to make
sure to arm the SYN_RECV timer before the req socket is visible
in hash tables.
Also, req->rsk_hash should be written before we set rsk_refcnt
to a non zero value.
Fixes: fa76ce7328b2 ("inet: get rid of central tcp/dccp listener timer")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ying Cai <ycai@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions