]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jan 2022 13:06:05 +0000 (13:06 +0000)
commita1f8a070be4b5d3da7ba5e99f96b3905eaf2a451
tree9a7ae534e177de1206e62ae6b9f61afdc45a40b5
parent0146d59451897dbd3f2a1896b6740a53f16c6340
inet: frags: annotate races around fqdir->dead and fqdir->high_thresh

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

Fixes: 959c0482abde ("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>
include/net/inet_frag.h
include/net/ipv6_frag.h
net/ipv4/inet_fragment.c
net/ipv4/ip_fragment.c