diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2022-07-22 11:22:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-07-25 12:42:10 +0100 |
commit | 870e3a634b6a6cb1543b359007aca73fe6a03ac5 (patch) | |
tree | 10515d0f8ef7795e20f52550afb617b148a55e14 /net/ipv6/esp6_offload.c | |
parent | 79f55473bfc8ac51bd6572929a679eeb4da22251 (diff) |
tcp: Fix data-races around sysctl_tcp_reflect_tos.
While reading sysctl_tcp_reflect_tos, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.
Fixes: ac8f1710c12b ("tcp: reflect tos value received in SYN to the socket")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Acked-by: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/esp6_offload.c')
0 files changed, 0 insertions, 0 deletions