mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
net: Fix a data-race around sysctl_tstamp_allow_data.
[ Upstream commitd2154b0afa] While reading sysctl_tstamp_allow_data, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader. Fixes:b245be1f4d("net-timestamp: no-payload only sysctl") 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>
This commit is contained in:
parent
764352456e
commit
6fc89f9907
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue