Re: [PATCH net] inet: fix races in reqsk_queue_hash_req()

2015-09-21 Thread David Miller
From: Eric Dumazet Date: Sat, 19 Sep 2015 09:48:04 -0700 > From: Eric Dumazet > > 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,

[PATCH net] inet: fix races in reqsk_queue_hash_req()

2015-09-19 Thread Eric Dumazet
From: Eric Dumazet 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: