mirror_ubuntu-kernels/net/core
Kuniyuki Iwashima ab3bb82243 tcp: Fix data-races around sysctl knobs related to SYN option.
BugLink: https://bugs.launchpad.net/bugs/1988479

[ Upstream commit 3666f666e9 ]

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: 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:25 +02:00
..
bpf_sk_storage.c bpf: Introduce MEM_RDONLY flag 2022-06-22 14:22:28 +02:00
datagram.c
datagram.h
dev_addr_lists.c
dev_ioctl.c
dev.c net: skb: introduce kfree_skb_reason() 2022-09-16 10:53:15 +02:00
devlink.c
drop_monitor.c net: skb: introduce kfree_skb_reason() 2022-09-16 10:53:15 +02:00
dst_cache.c
dst.c
failover.c
fib_notifier.c
fib_rules.c
filter.c tcp: Fix data-races around sysctl_tcp_syncookies. 2022-09-16 10:53:20 +02:00
flow_dissector.c
flow_offload.c netfilter: nf_tables: bail out early if hardware offload is not supported 2022-08-26 10:52:57 +02:00
gen_estimator.c
gen_stats.c
gro_cells.c
hwbm.c
link_watch.c net: Write lock dev_base_lock without disabling bottom halves. 2022-08-26 10:53:48 +02:00
lwt_bpf.c bpf, lwt: Fix crash when using bpf_skb_set_tunnel_key() from bpf_xmit lwt hook 2022-06-22 14:22:48 +02:00
lwtunnel.c
Makefile
neighbour.c
net_namespace.c
net-procfs.c
net-sysfs.c net: fix data-race in dev_isalive() 2022-08-26 10:53:48 +02:00
net-sysfs.h
net-traces.c
netclassid_cgroup.c
netevent.c
netpoll.c
netprio_cgroup.c
of_net.c
page_pool.c
pktgen.c
ptp_classifier.c
request_sock.c
rtnetlink.c net: Write lock dev_base_lock without disabling bottom halves. 2022-08-26 10:53:48 +02:00
scm.c
secure_seq.c tcp: Fix data-races around sysctl knobs related to SYN option. 2022-09-16 10:53:25 +02:00
selftests.c
skbuff.c net: skb: introduce kfree_skb_reason() 2022-09-16 10:53:15 +02:00
skmsg.c sock: redo the psock vs ULP protection check 2022-08-26 10:53:52 +02:00
sock_destructor.h
sock_diag.c
sock_map.c bpf: Introduce MEM_RDONLY flag 2022-06-22 14:22:28 +02:00
sock_reuseport.c tcp: Fix data-races around sysctl_tcp_migrate_req. 2022-09-16 10:53:20 +02:00
sock.c
stream.c
sysctl_net_core.c
timestamping.c
tso.c
utils.c
xdp.c