diff options
author | Kuniyuki Iwashima <kuniyu@amazon.com> | 2022-07-06 16:40:00 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-07-21 21:24:21 +0200 |
commit | a5796154b56fcc8f442a499fd3b7a17bf3d82fb1 (patch) | |
tree | 2d02fde55954a678b1d5b36af660798c1e0f83cf /Documentation/networking/ip-sysctl.rst | |
parent | 82d07170290d743819072d99c7bd42e466011244 (diff) |
net: Fix data-races around sysctl_mem.
[ Upstream commit 310731e2f1611d1d13aae237abcf8e66d33345d5 ]
While reading .sysctl_mem, it can be changed concurrently.
So, we need to add READ_ONCE() to avoid data-races.
Fixes: 1da177e4c3f4 ("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>
Diffstat (limited to 'Documentation/networking/ip-sysctl.rst')
0 files changed, 0 insertions, 0 deletions