ip: Fix data-races around sysctl_ip_default_ttl.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Wed, 13 Jul 2022 20:51:51 +0000 (13:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jul 2022 10:49:55 +0000 (11:49 +0100)
commit8281b7ec5c56b71cb2cc5a1728b41607be66959c
tree1c9563f175e6e4528ca2f2d33256c18efca097bb
parentdb886979683a8360ced9b24ab1125ad0c4d2cf76
ip: Fix data-races around sysctl_ip_default_ttl.

While reading sysctl_ip_default_ttl, 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>
drivers/net/ethernet/netronome/nfp/flower/action.c
include/net/route.h
net/ipv4/ip_sockglue.c
net/ipv4/netfilter/nf_reject_ipv4.c
net/ipv4/proc.c
net/netfilter/nf_synproxy_core.c