summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGang Yan <yangang@kylinos.cn>2024-10-21 17:14:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 20:03:52 +0100
commit477aa7116a76a8e0e266d9af066568dce4e99489 (patch)
tree24abce10fa359a7a5f21f963ad28bd68b5467e35 /kernel
parentcc97e79832fba780f15d687e91acf166fe872423 (diff)
downloadlinux-477aa7116a76a8e0e266d9af066568dce4e99489.tar.gz
linux-477aa7116a76a8e0e266d9af066568dce4e99489.tar.bz2
linux-477aa7116a76a8e0e266d9af066568dce4e99489.zip
mptcp: annotate data-races around subflow->fully_established
[ Upstream commit 581c8cbfa934aaa555daa4e843242fcecc160f05 ] We introduce the same handling for potential data races with the 'fully_established' flag in subflow as previously done for msk->fully_established. Additionally, we make a crucial change: convert the subflow's 'fully_established' from 'bit_field' to 'bool' type. This is necessary because methods for avoiding data races don't work well with 'bit_field'. Specifically, the 'READ_ONCE' needs to know the size of the variable being accessed, which is not supported in 'bit_field'. Also, 'test_bit' expect the address of 'bit_field'. Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/516 Signed-off-by: Gang Yan <yangang@kylinos.cn> Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20241021-net-next-mptcp-misc-6-13-v1-2-1ef02746504a@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions