commit | 13207f9485b5de68decf296ceb0046f5eabb2485 | [log] [tgz] |
---|---|---|
author | Kuniyuki Iwashima <kuniyu@amazon.com> | Wed Jul 13 13:51:58 2022 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jul 29 17:05:45 2022 +0200 |
tree | 591b2c12c63b95b6fadb55f72cbd95f5878d2f14 | |
parent | fc92e3b4bebfdd986ef1d2c5019f236837b0b982 [diff] |
tcp/dccp: Fix a data-race around sysctl_tcp_fwmark_accept. [ Upstream commit 1a0008f9df59451d0a17806c1ee1a19857032fa8 ] While reading sysctl_tcp_fwmark_accept, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader. Fixes: 84f39b08d786 ("net: support marking accepting TCP sockets") 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>