commit | fc92e3b4bebfdd986ef1d2c5019f236837b0b982 | [log] [tgz] |
---|---|---|
author | Kuniyuki Iwashima <kuniyu@amazon.com> | Wed Jul 13 13:51:57 2022 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jul 29 17:05:45 2022 +0200 |
tree | 69080727bd7ef1c5ee347a10a5a623d377e03150 | |
parent | 3bbd868099287ff9027db59029b502fcfa2202a0 [diff] |
ip: Fix a data-race around sysctl_fwmark_reflect. [ Upstream commit 85d0b4dbd74b95cc492b1f4e34497d3f894f5d9a ] While reading sysctl_fwmark_reflect, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader. Fixes: e110861f8609 ("net: add a sysctl to reflect the fwmark on replies") 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>