Commit 8498a1c2 authored by Kuniyuki Iwashima's avatar Kuniyuki Iwashima Committed by Zhengchao Shao
Browse files

ip: Fix data-races around sysctl_ip_no_pmtu_disc.

mainline inclusion
from mainline-v5.19-rc8
commit 0968d2a4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8P5HO
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0968d2a441bf6afb551fd99e60fa65ed67068963



--------------------------------

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

Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

Conflicts:
	net/ipv4/icmp.c
	net/ipv6/af_inet6.c
	net/xfrm/xfrm_state.c

Signed-off-by: default avatarZhengchao Shao <shaozhengchao@huawei.com>
parent 18bfaaff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment