syzbot


net test error: WARNING: suspicious RCU usage in _destroy_all_sets

Status: upstream: reported on 2024/06/14 08:20
Subsystems: netfilter
[Documentation on labels]
Reported-by: syzbot+565a9cd16f2d99544b94@syzkaller.appspotmail.com
First crash: 35d, last: 28d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [netfilter?] net 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-rc3-syzkaller-00156-g6cd4a78d962b #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:9/2433:
 #0: ffff888015ed5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
 #0: ffff888015ed5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
 #1: ffffc9000958fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
 #1: ffffc9000958fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
 #2: ffffffff8f5d9c10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:594

stack backtrace:
CPU: 0 PID: 2433 Comm: kworker/u8:9 Not tainted 6.10.0-rc3-syzkaller-00156-g6cd4a78d962b #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+0x241/0x360 lib/dump_stack.c:114
 lockdep_rcu_suspicious+0x221/0x340 kernel/locking/lockdep.c:6712
 _destroy_all_sets+0x232/0x5f0 net/netfilter/ipset/ip_set_core.c:1200
 ip_set_net_exit+0x20/0x50 net/netfilter/ipset/ip_set_core.c:2396
 ops_exit_list net/core/net_namespace.c:173 [inline]
 cleanup_net+0x802/0xcc0 net/core/net_namespace.c:640
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/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-rc3-syzkaller-00156-g6cd4a78d962b #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:9/2433:
 #0: ffff888015ed5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline]
 #0: ffff888015ed5948 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312
 #1: ffffc9000958fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3207 [inline]
 #1: ffffc9000958fd00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x945/0x1830 kernel/workqueue.c:3312
 #2: ffffffff8f5d9c10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x16a/0xcc0 net/core/net_namespace.c:594

stack backtrace:
CPU: 0 PID: 2433 Comm: kworker/u8:9 Not tainted 6.10.0-rc3-syzkaller-00156-g6cd4a78d962b #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+0x241/0x360 lib/dump_stack.c:114
 lockdep_rcu_suspicious+0x221/0x340 kernel/locking/lockdep.c:6712
 _destroy_all_sets+0x53f/0x5f0 net/netfilter/ipset/ip_set_core.c:1211
 ip_set_net_exit+0x20/0x50 net/netfilter/ipset/ip_set_core.c:2396
 ops_exit_list net/core/net_namespace.c:173 [inline]
 cleanup_net+0x802/0xcc0 net/core/net_namespace.c:640
 process_one_work kernel/workqueue.c:3231 [inline]
 process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312
 worker_thread+0x86d/0xd70 kernel/workqueue.c:3393
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/20 09:58 net 6cd4a78d962b 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/20 01:16 net f9ae84890428 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 14:04 net a8763466669d 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 12:36 net 16be004e941d 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/19 09:06 net b8c43360f6e4 41b7e219 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 22:03 net 88c67aeb1407 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 15:35 net d864319871b0 639d6cdf .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/18 09:18 net d46401052c2d 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 17:13 net 0b9130247f3b 1f11cfd7 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/17 13:21 net 0b9130247f3b f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/15 12:40 net 143492fce361 f429ab00 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/14 23:30 net 1afe4a64379f 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/14 17:36 net 89aa3619d141 8d849073 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/14 11:07 net 89aa3619d141 a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/14 01:00 net 4467c09bc7a6 a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/13 22:03 net d20f6b3d747c a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/13 17:57 net a9b9741854a9 a9616ff5 .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/13 16:12 net a9b9741854a9 2aa5052f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/13 15:23 net 6f4d93b78ade 2aa5052f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
2024/06/13 11:41 net b60b1bdc1888 2aa5052f .config console log report [disk image] [vmlinux] [kernel image] ci-upstream-net-this-kasan-gce net test error: WARNING: suspicious RCU usage in _destroy_all_sets
* Struck through repros no longer work on HEAD.