]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: annotate data-race around challenge_timestamp
authorEric Dumazet <edumazet@google.com>
Tue, 30 Aug 2022 18:56:55 +0000 (11:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 1 Sep 2022 02:56:48 +0000 (19:56 -0700)
commitcfb642efb8478a64499231cc1d79b80e29cfe766
tree3da2f1ce9a4300c7be768683ae8297bd8d342e7b
parent1686ebd7989a61f43b84b0328f94d14deeba3896
tcp: annotate data-race around challenge_timestamp

challenge_timestamp can be read an written by concurrent threads.

This was expected, but we need to annotate the race to avoid potential issues.

Following patch moves challenge_timestamp and challenge_count
to per-netns storage to provide better isolation.

Fixes: a2e9ee9d0bec ("tcp: RFC 5961 5.2 Blind Data Injection Attack Mitigation")
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_input.c