syzbot


upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets

Status: fixed on 2024/07/09 19:14
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+b62c37cdd58103293a5a@syzkaller.appspotmail.com
Fix commit: 8ecd06277a76 netfilter: ipset: Fix suspicious rcu_dereference_protected()
First crash: 172d, last: 166d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH net 1/5] netfilter: ipset: Fix suspicious rcu_dereference_protected() 1 (1) 2024/06/19 17:05
[PATCH 1/1] netfilter: ipset: Fix suspicious rcu_dereference_protected() 1 (1) 2024/06/17 09:18
[syzbot] [netfilter?] upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets 0 (1) 2024/06/14 08:20

Sample crash report:
=============================
WARNING: suspicious RCU usage
6.10.0-rc4-syzkaller-00052-ge5b3efbe1ab1 #0 Not tainted
-----------------------------
net/netfilter/ipset/ip_set_core.c:1200 suspicious rcu_dereference_protected() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
3 locks held by kworker/u8:0/11:
 #0: ffff8880162d3148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x12bf/0x1b60 kernel/workqueue.c:3206
 #1: ffffc90000107d80 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x957/0x1b60 kernel/workqueue.c:3207
 #2: ffffffff8f733210 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xbb/0xbf0 net/core/net_namespace.c:594

stack backtrace:
CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.10.0-rc4-syzkaller-00052-ge5b3efbe1ab1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:114
 lockdep_rcu_suspicious+0x20b/0x3b0 kernel/locking/lockdep.c:6712
 _destroy_all_sets+0x261/0x6d0 net/netfilter/ipset/ip_set_core.c:1200
 ip_set_net_exit+0x26/0x60 net/netfilter/ipset/ip_set_core.c:2396
 ops_exit_list+0xb0/0x180 net/core/net_namespace.c:173
 cleanup_net+0x5b7/0xbf0 net/core/net_namespace.c:640
 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

=============================
WARNING: suspicious RCU usage
6.10.0-rc4-syzkaller-00052-ge5b3efbe1ab1 #0 Not tainted
-----------------------------
net/netfilter/ipset/ip_set_core.c:1211 suspicious rcu_dereference_protected() usage!

other info that might help us debug this:


rcu_scheduler_active = 2, debug_locks = 1
3 locks held by kworker/u8:0/11:
 #0: ffff8880162d3148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x12bf/0x1b60 kernel/workqueue.c:3206
 #1: ffffc90000107d80 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x957/0x1b60 kernel/workqueue.c:3207
 #2: ffffffff8f733210 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xbb/0xbf0 net/core/net_namespace.c:594

stack backtrace:
CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.10.0-rc4-syzkaller-00052-ge5b3efbe1ab1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
Workqueue: netns cleanup_net
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x16c/0x1f0 lib/dump_stack.c:114
 lockdep_rcu_suspicious+0x20b/0x3b0 kernel/locking/lockdep.c:6712
 _destroy_all_sets+0x4e6/0x6d0 net/netfilter/ipset/ip_set_core.c:1211
 ip_set_net_exit+0x26/0x60 net/netfilter/ipset/ip_set_core.c:2396
 ops_exit_list+0xb0/0x180 net/core/net_namespace.c:173
 cleanup_net+0x5b7/0xbf0 net/core/net_namespace.c:640
 process_one_work+0x9fb/0x1b60 kernel/workqueue.c:3231
 process_scheduled_works kernel/workqueue.c:3312 [inline]
 worker_thread+0x6c8/0xf70 kernel/workqueue.c:3393
 kthread+0x2c1/0x3a0 kernel/kthread.c:389
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (293):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/20 15:46 upstream e5b3efbe1ab1 dac2aa43 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/20 14:04 upstream e5b3efbe1ab1 dac2aa43 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/20 12:38 upstream e5b3efbe1ab1 dac2aa43 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/20 11:37 upstream e5b3efbe1ab1 dac2aa43 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 21:43 upstream e5b3efbe1ab1 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 20:13 upstream e5b3efbe1ab1 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 19:01 upstream e5b3efbe1ab1 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 11:37 upstream 92e5605a199e 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 10:05 upstream 92e5605a199e 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 08:08 upstream 92e5605a199e 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 03:54 upstream 92e5605a199e 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 02:17 upstream 46d1907d1caa 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 23:44 upstream 46d1907d1caa 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 22:05 upstream 92e5605a199e 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 19:21 upstream 3d54351c64e8 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 16:44 upstream 14d7c92f8df9 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 15:28 upstream 3d54351c64e8 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 13:39 upstream 14d7c92f8df9 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 11:50 upstream 14d7c92f8df9 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 10:15 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 08:48 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 07:38 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 06:19 upstream 14d7c92f8df9 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 04:42 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 04:26 upstream 14d7c92f8df9 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 03:15 upstream 14d7c92f8df9 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 02:11 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 01:04 upstream 14d7c92f8df9 ce6011bc .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 23:50 upstream 14d7c92f8df9 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 22:01 upstream 14d7c92f8df9 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 18:50 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 17:13 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 15:42 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 13:48 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 11:57 upstream 6ba59ff42279 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 09:42 upstream 6ba59ff42279 88722c0f .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 07:15 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 05:20 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 04:06 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 02:54 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 01:34 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/16 23:05 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/16 22:29 upstream 6ba59ff42279 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/16 17:55 upstream a3e18a540541 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci2-upstream-fs upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/14 07:51 upstream d20f6b3d747c a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 06:56 upstream 92e5605a199e 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 01:12 upstream 46d1907d1caa 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 18:14 upstream 14d7c92f8df9 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 00:33 upstream 6456c4256d1c f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 18:09 upstream e5b3efbe1ab1 c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 20:50 upstream 14d7c92f8df9 c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/16 21:09 upstream 6ba59ff42279 c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/13 20:01 upstream d20f6b3d747c c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 22:36 upstream 92e5605a199e c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 15:19 upstream 3d54351c64e8 c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 19:55 upstream 6226e74900d7 c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/16 19:54 upstream 6456c4256d1c c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/16 18:59 upstream b5beaa44747b c2e07261 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 upstream test error: WARNING: suspicious RCU usage in _destroy_all_sets
* Struck through repros no longer work on HEAD.