[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150921.163250.2246841376620160899.davem@davemloft.net>
Date: Mon, 21 Sep 2015 16:32:50 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org, ycai@...gle.com
Subject: Re: [PATCH net] inet: fix races in reqsk_queue_hash_req()
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Sat, 19 Sep 2015 09:48:04 -0700
> From: Eric Dumazet <edumazet@...gle.com>
>
> 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@...gle.com>
> Cc: Ying Cai <ycai@...gle.com>
Applied and queued up for -stable.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists