diff options
| author | Eric Dumazet <[email protected]> | 2019-11-05 22:11:51 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-11-07 00:14:48 +0000 |
| commit | 25c7a6d1f90e208ec27ca854b1381ed39842ec57 (patch) | |
| tree | a645c406ef309589a1c6f851ca1ba761575a00b4 /net/ipv6/tcp_ipv6.c | |
| parent | inet_diag: use jiffies_delta_to_msecs() (diff) | |
| download | kernel-25c7a6d1f90e208ec27ca854b1381ed39842ec57.tar.gz kernel-25c7a6d1f90e208ec27ca854b1381ed39842ec57.zip | |
net: avoid potential false sharing in neighbor related code
There are common instances of the following construct :
if (n->confirmed != now)
n->confirmed = now;
A C compiler could legally remove the conditional.
Use READ_ONCE()/WRITE_ONCE() to avoid this problem.
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
