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)
commit0307a0b74b3af6ecb1c8b7f727376130b15bbf44
tree31f6f571d6c135b02a5dc6cf9f63dc5b860a36e0
parentd2489c7b6d7d5ed4b32b56703c57c47bfbfe7fa5
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