commit | 2764f82bbc158d106693ae3ced3675cf4b963b35 | [log] [tgz] |
---|---|---|
author | Kuniyuki Iwashima <kuniyu@amazon.com> | Wed Jul 06 16:40:01 2022 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jul 21 20:40:31 2022 +0200 |
tree | 457e21c1cfce2b39246ad2df5bbbcb4c379ae00c | |
parent | 93231fe7dc03604b3d40fdd44a608fec24fdf6d9 [diff] |
cipso: Fix data-races around sysctl. [ Upstream commit dd44f04b9214adb68ef5684ae87a81ba03632250 ] While reading cipso sysctl variables, they can be changed concurrently. So, we need to add READ_ONCE() to avoid data-races. Fixes: 446fda4f2682 ("[NetLabel]: CIPSOv4 engine") Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Acked-by: Paul Moore <paul@paul-moore.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>