Commit 18bfaaff authored by Kuniyuki Iwashima's avatar Kuniyuki Iwashima Committed by Zhengchao Shao
Browse files

ip: Fix data-races around sysctl_ip_fwd_update_priority.

mainline inclusion
from mainline-v5.19-rc8
commit 7bf9e18d
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=7bf9e18d9a5e99e3c83482973557e9f047b051e7



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

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

Fixes: 432e05d3 ("net: ipv4: Control SKB reprioritization after forwarding")
Signed-off-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

Conflicts:
	drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c

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