]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: Fix data-races around sysctl_max_syn_backlog.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 15 Jul 2022 17:17:53 +0000 (10:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jul 2022 11:21:54 +0000 (12:21 +0100)
commit961be9f7358009b3eea91748cc9cc2b5ec0fc13a
tree32fd7af252832721da464324247a540c9dbb79c0
parentd2f851e5fa4428c3498fca823bb93a56ea2c3f42
tcp: Fix data-races around sysctl_max_syn_backlog.

While reading sysctl_max_syn_backlog, it can be changed concurrently.
Thus, we need to add READ_ONCE() to its readers.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c