Files
twx-linux/include/net
Eric Dumazet 47598ed4ad net: prevent load/store tearing on sk->sk_stamp
[ Upstream commit f75359f3ac ]

Add a couple of READ_ONCE() and WRITE_ONCE() to prevent
load-tearing and store-tearing in sock_read_timestamp()
and sock_write_timestamp()

This might prevent another KCSAN report.

Fixes: 3a0ed3e961 ("sock: Make sock->sk_stamp thread-safe")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Deepa Dinamani <deepa.kernel@gmail.com>
Acked-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-12 19:18:47 +01:00
..
…
2019-05-08 07:20:45 +02:00
…
2019-06-17 19:52:44 +02:00
2019-03-23 14:35:16 +01:00
…
…
…
…
2019-02-23 09:06:44 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-11-10 11:25:37 +01:00
…
…
…
…
…
…
2019-03-13 14:03:09 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-09-16 08:20:44 +02:00