Re: [syzbot] [netfilter?] WARNING: ODEBUG bug in hash_netiface4_destroy

From: Hillf Danton
Date: Sat Feb 03 2024 - 00:11:27 EST


On Fri, 02 Feb 2024 19:12:25 -0800
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 6897cea71837 Merge tag 'for-6.8/dm-fixes' of git://git.ker..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16fcf5b0180000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

--- x/net/netfilter/ipset/ip_set_hash_gen.h
+++ y/net/netfilter/ipset/ip_set_hash_gen.h
@@ -452,6 +452,7 @@ mtype_destroy(struct ip_set *set)
struct htype *h = set->data;
struct list_head *l, *lt;

+ cancel_delayed_work_sync(&h->gc.dwork);
mtype_ahash_destroy(set, ipset_dereference_nfnl(h->table), true);
list_for_each_safe(l, lt, &h->ad) {
list_del(l);
--