]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: annotate data-races on tp->segs_in and tp->data_segs_in
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:42 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:34 +0000 (13:10 +0000)
commit6f4fba504116c4e7dd5e3b0f60a3bc297290ea35
tree31f6f571d6c135b02a5dc6cf9f63dc5b860a36e0
parent4a1c04800ea1b8b978039de81f44c089e1951fa7
tcp: annotate data-races on tp->segs_in and tp->data_segs_in

tcp_segs_in() can be called from BH, while socket spinlock
is held but socket owned by user, eventually reading these
fields from tcp_get_info()

Found by code inspection, no need to backport this patch
to older kernels.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c