]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tcp: Fix data-races around sysctl knobs related to SYN option.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 18 Jul 2022 17:26:44 +0000 (10:26 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:53:25 +0000 (10:53 +0200)
commitab3bb82243869c7921e3b6e57c3960f1d31d02df
tree5d287344a8c007d113f54a4978e994f388349a0b
parent3442e4e30d404415a7fb80eca5bf5103d308436b
tcp: Fix data-races around sysctl knobs related to SYN option.

BugLink: https://bugs.launchpad.net/bugs/1988479
[ Upstream commit 3666f666e99600518ab20982af04a078bbdad277 ]

While reading these knobs, they can be changed concurrently.
Thus, we need to add READ_ONCE() to their readers.

  - tcp_sack
  - tcp_window_scaling
  - tcp_timestamps

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_cm.c
net/core/secure_seq.c
net/ipv4/syncookies.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c