commit | 2455e61b85e9c99af38cd889a7101f1d48b33cb4 | [log] [tgz] |
---|---|---|
author | Kuniyuki Iwashima <kuniyu@amazon.com> | Wed Jul 20 09:50:23 2022 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Jul 22 12:06:17 2022 +0100 |
tree | 443f16d5217aca317b8ccf5035d62a76d27459d0 | |
parent | e0bb4ab9dfddd872622239f49fb2bd403b70853b [diff] |
tcp: Fix a data-race around sysctl_tcp_tso_rtt_log. While reading sysctl_tcp_tso_rtt_log, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader. Fixes: 65466904b015 ("tcp: adjust TSO packet sizes based on min_rtt") Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>