Commit e1b28db
Guillaume Nault
tcp: Fix a data-race around sysctl_tcp_comp_sack_nr.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2160073
Upstream Status: linux.git
commit 79f5547
Author: Kuniyuki Iwashima <kuniyu@amazon.com>
Date: Fri Jul 22 11:22:03 2022 -0700
tcp: Fix a data-race around sysctl_tcp_comp_sack_nr.
While reading sysctl_tcp_comp_sack_nr, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its reader.
Fixes: 9c21d2f ("tcp: add tcp_comp_sack_nr sysctl")
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 ba3a173 commit e1b28db
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5478 | 5478 | | |
5479 | 5479 | | |
5480 | 5480 | | |
5481 | | - | |
| 5481 | + | |
5482 | 5482 | | |
5483 | 5483 | | |
5484 | 5484 | | |
| |||
0 commit comments