mirror_ubuntu-kernels/net/mptcp
Kuniyuki Iwashima 77d66f560c net: Fix data-races around sysctl_[rw]mem(_offset)?.
BugLink: https://bugs.launchpad.net/bugs/1989218

[ Upstream commit 0273954595 ]

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

  - .sysctl_rmem
  - .sysctl_rwmem
  - .sysctl_rmem_offset
  - .sysctl_wmem_offset
  - sysctl_tcp_rmem[1, 2]
  - sysctl_tcp_wmem[1, 2]
  - sysctl_decnet_rmem[1]
  - sysctl_decnet_wmem[1]
  - sysctl_tipc_rmem[1]

Fixes: 1da177e4c3 ("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>
2022-09-16 10:53:45 +02:00
..
crypto_test.c
crypto.c
ctrl.c
diag.c
Kconfig
Makefile
mib.c
mib.h
mptcp_diag.c
options.c
pm_netlink.c
pm.c
protocol.c
protocol.h
sockopt.c
subflow.c
syncookies.c
token_test.c
token.c