diff options
| author | Eric Dumazet <edumazet@google.com> | 2019-11-05 08:38:43 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-11-06 05:22:30 +0300 |
| commit | f75359f3ac855940c5718af10ba089b8977bf339 (patch) | |
| tree | b41cebe578c5b17b8bb50e837008c3b92e504885 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
| parent | e7a86c687e64ab24f88330ad24ecc9442ce40c5a (diff) | |
| download | linux-f75359f3ac855940c5718af10ba089b8977bf339.tar.xz | |
net: prevent load/store tearing on sk->sk_stamp
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: 3a0ed3e96197 ("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>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions
