Re: [PATCH net] tcp: fix access to sk->sk_state in tcp_poll()

2017-04-30 Thread David Miller
From: Davide Caratti Date: Wed, 26 Apr 2017 19:07:35 +0200 > 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

Re: [PATCH net] tcp: fix access to sk->sk_state in tcp_poll()

2017-04-26 Thread Wei Wang
On Wed, Apr 26, 2017 at 10:07 AM, Davide Caratti 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

[PATCH net] tcp: fix access to sk->sk_state in tcp_poll()

2017-04-26 Thread Davide Caratti
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: