[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20151115.183703.577812988592183622.davem@davemloft.net>
Date: Sun, 15 Nov 2015 18:37:03 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net] tcp: ensure proper barriers in lockless contexts
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Thu, 12 Nov 2015 08:43:18 -0800
> From: Eric Dumazet <edumazet@...gle.com>
>
> Some functions access TCP sockets without holding a lock and
> might output non consistent data, depending on compiler and or
> architecture.
>
> tcp_diag_get_info(), tcp_get_info(), tcp_poll(), get_tcp4_sock() ...
>
> Introduce sk_state_load() and sk_state_store() to fix the issues,
> and more clearly document where this lack of locking is happening.
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Applied, thanks.
--
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