On Sun, Feb 27, 2022 at 10:01:41AM -0800, Eric Dumazet wrote: > From: Eric Dumazet <edumazet@xxxxxxxxxx> > > We must not dereference @new_hooks after nf_hook_mutex has been released, > because other threads might have freed our allocated hooks already. > > BUG: KASAN: use-after-free in nf_hook_entries_get_hook_ops include/linux/netfilter.h:130 [inline] > BUG: KASAN: use-after-free in hooks_validate net/netfilter/core.c:171 [inline] > BUG: KASAN: use-after-free in __nf_register_net_hook+0x77a/0x820 net/netfilter/core.c:438 > Read of size 2 at addr ffff88801c1a8000 by task syz-executor237/4430 Applied, thanks.