diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2022-07-15 10:17:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-18 12:21:54 +0100 |
commit | cbfc6495586a3f09f6f07d9fb3c7cafe807e3c55 (patch) | |
tree | 4090ac359212a03c401ae2bebb077e91bf0ecec5 /net/ipv4/tcp_input.c | |
parent | tcp: Fix a data-race around sysctl_tcp_notsent_lowat. (diff) | |
download | linux-dev-cbfc6495586a3f09f6f07d9fb3c7cafe807e3c55.tar.xz linux-dev-cbfc6495586a3f09f6f07d9fb3c7cafe807e3c55.zip |
tcp: Fix a data-race around sysctl_tcp_tw_reuse.
While reading sysctl_tcp_tw_reuse, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its reader.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions