[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEA6p_C1_3LRMPy7yaBiGf0YSsTZMfC3L4TLixyiGVyn_W1s=w@mail.gmail.com>
Date: Wed, 26 Apr 2017 10:24:06 -0700
From: Wei Wang <weiwan@...gle.com>
To: Davide Caratti <dcaratti@...hat.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
James Morris <jmorris@...ei.org>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Patrick McHardy <kaber@...sh.net>,
Linux Kernel Network Developers <netdev@...r.kernel.org>
Subject: Re: [PATCH net] tcp: fix access to sk->sk_state in tcp_poll()
On Wed, Apr 26, 2017 at 10:07 AM, Davide Caratti <dcaratti@...hat.com> wrote:
> avoid direct access to sk->sk_state when tcp_poll() is called on a socket
> using active TCP fastopen with deferred connect. Use local variable
> 'state', which stores the result of sk_state_load(), like it was done in
> commit 00fd38d938db ("tcp: ensure proper barriers in lockless contexts").
>
> Fixes: 19f6d3f3c842 ("net/tcp-fastopen: Add new API support")
> Signed-off-by: Davide Caratti <dcaratti@...hat.com>
Acked-by: Wei Wang <weiwan@...gle.com>
Thanks for the fix.
Powered by blists - more mailing lists