tcp: annotate data-race around tcp_md5sig_pool_populated
stable inclusion from stable-v5.10.150 commit 0958e487e81bdb5ca658a3b6e72c8252d6e163f9 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=0958e487e81bdb5ca658a3b6e72c8252d6e163f9 -------------------------------- [ Upstream commit aacd467c ] tcp_md5sig_pool_populated can be read while another thread changes its value. The race has no consequence because allocations are protected with tcp_md5sig_mutex. This patch adds READ_ONCE() and WRITE_ONCE() to document the race and silence KCSAN. Reported-by:Abhishek Shah <abhishek.shah@columbia.edu> Signed-off-by:
Eric Dumazet <edumazet@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com>
Loading
Please sign in to comment