]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Fri, 28 Jan 2022 10:03:31 +0000 (11:03 +0100)
commit9198de9ee58494aef10bbcb82c79054002146812
tree5b36993dc4921bc0fea7328ec4639f16cd84ceaf
parentf2a66c13dba278721f6a7c560062952c45e04097
inet: frags: annotate races around fqdir->dead and fqdir->high_thresh

BugLink: https://bugs.launchpad.net/bugs/1959376
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
include/net/inet_frag.h
include/net/ipv6_frag.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c