commit | 29e01227e3fcbb82443c04060fc37e7831a7774c | [log] [tgz] |
---|---|---|
author | Kuniyuki Iwashima <kuniyu@amazon.com> | Tue Aug 23 10:47:00 2022 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Sep 05 10:23:55 2022 +0200 |
tree | d19573c7909bd6fa514b5b89dcc0766d60232329 | |
parent | add7c2af16bb55c241e114c83ed9baee62f3374b [diff] |
net: Fix a data-race around sysctl_somaxconn. [ Upstream commit 3c9ba81d72047f2e81bb535d42856517b613aba7 ] While reading sysctl_somaxconn, it can be changed concurrently. Thus, we need to add READ_ONCE() to its reader. 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>