Commit ba3a173
Guillaume Nault
tcp: Fix a data-race around sysctl_tcp_comp_sack_slack_ns.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2160073
Upstream Status: linux.git
commit 2239694
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date: Fri Jul 22 11:22:02 2022 -0700
tcp: Fix a data-race around sysctl_tcp_comp_sack_slack_ns.
While reading sysctl_tcp_comp_sack_slack_ns, it can be changed
concurrently. Thus, we need to add READ_ONCE() to its reader.
Fixes: a70437c ("tcp: add hrtimer slack to sack compression")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Guillaume Nault <gnault@redhat.com>1 parent 864f6cb commit ba3a173
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5504 | 5504 | | |
5505 | 5505 | | |
5506 | 5506 | | |
5507 | | - | |
| 5507 | + | |
5508 | 5508 | | |
5509 | 5509 | | |
5510 | 5510 | | |
| |||
0 commit comments