inet: frags: annotate races around fqdir->dead and fqdir->high_thresh
authorEric Dumazet <edumazet@google.com>
Thu, 13 Jan 2022 09:22:29 +0000 (01:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:35 +0000 (11:05 +0100)
commit958cbb139ec4a58cc2a9652e72e9c54882da0682
tree8b50a16d0a87a8e02b46c99123b73d17b3b97914
parent0288b85d750e9466c0ab295c25e1c903f21d924f
inet: frags: annotate races around fqdir->dead and fqdir->high_thresh

commit 91341fa0003befd097e190ec2a4bf63ad957c49a upstream.

Both fields can be read/written without synchronization,
add proper accessors and documentation.

Fixes: d5dd88794a13 ("inet: fix various use-after-free in defrags units")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/inet_frag.h
include/net/ipv6_frag.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c