============================= WARNING: suspicious RCU usage 6.8.0-rc2-syzkaller-00419-gb555d191561a #0 Not tainted ----------------------------- net/netfilter/ipset/ip_set_hash_gen.h:455 suspicious rcu_dereference_protected() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 4 locks held by udevd/9957: #0: ffff8880299d8420 (sb_writers#5){.+.+}-{0:0}, at: open_last_lookups fs/namei.c:3554 [inline] #0: ffff8880299d8420 (sb_writers#5){.+.+}-{0:0}, at: path_openat+0x19ab/0x29a0 fs/namei.c:3795 #1: ffff88802b573de0 (&type->i_mutex_dir_key#5){++++}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #1: ffff88802b573de0 (&type->i_mutex_dir_key#5){++++}-{3:3}, at: open_last_lookups fs/namei.c:3562 [inline] #1: ffff88802b573de0 (&type->i_mutex_dir_key#5){++++}-{3:3}, at: path_openat+0x8c9/0x29a0 fs/namei.c:3795 #2: ffff8880299d8998 (&s->s_inode_list_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:351 [inline] #2: ffff8880299d8998 (&s->s_inode_list_lock){+.+.}-{2:2}, at: inode_sb_list_add fs/inode.c:494 [inline] #2: ffff8880299d8998 (&s->s_inode_list_lock){+.+.}-{2:2}, at: new_inode+0xa6/0x270 fs/inode.c:1033 #3: ffffffff8d7b0a80 (rcu_callback){....}-{0:0}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #3: ffffffff8d7b0a80 (rcu_callback){....}-{0:0}, at: rcu_do_batch kernel/rcu/tree.c:2184 [inline] #3: ffffffff8d7b0a80 (rcu_callback){....}-{0:0}, at: rcu_core+0x7bd/0x1680 kernel/rcu/tree.c:2465 stack backtrace: CPU: 0 PID: 9957 Comm: udevd Not tainted 6.8.0-rc2-syzkaller-00419-gb555d191561a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 lockdep_rcu_suspicious+0x20c/0x3b0 kernel/locking/lockdep.c:6712 hash_netportnet6_destroy+0x2c4/0x3a0 net/netfilter/ipset/ip_set_hash_gen.h:455 ip_set_destroy_set+0x68/0x100 net/netfilter/ipset/ip_set_core.c:1180 rcu_do_batch kernel/rcu/tree.c:2190 [inline] rcu_core+0x81c/0x1680 kernel/rcu/tree.c:2465 __do_softirq+0x21f/0x8e7 kernel/softirq.c:553 invoke_softirq kernel/softirq.c:427 [inline] __irq_exit_rcu kernel/softirq.c:632 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:644 sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1076 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:check_kcov_mode kernel/kcov.c:173 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x1d/0x60 kernel/kcov.c:207 Code: 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 65 48 8b 14 25 80 c2 03 00 65 8b 05 b4 58 77 7e a9 00 01 ff 00 48 8b 34 24 <74> 0f f6 c4 01 74 35 8b 82 fc 15 00 00 85 c0 74 2b 8b 82 d8 15 00 RSP: 0018:ffffc9001483f848 EFLAGS: 00000246 RAX: 0000000080000001 RBX: ffff88805c84c320 RCX: ffffffff81fe1030 RDX: ffff88801fb9bb80 RSI: ffffffff81fe1042 RDI: 0000000000000001 RBP: ffff8880299d89c0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000002 R12: ffff88805c84c348 R13: ffff88805c84c4e8 R14: ffff88805c84be58 R15: ffff8880299d8000 __list_add include/linux/list.h:153 [inline] list_add include/linux/list.h:169 [inline] inode_sb_list_add fs/inode.c:495 [inline] new_inode+0x122/0x270 fs/inode.c:1033 __shmem_get_inode mm/shmem.c:2477 [inline] shmem_get_inode+0x194/0xe80 mm/shmem.c:2548 shmem_mknod+0x66/0x240 mm/shmem.c:3242 lookup_open.isra.0+0x10a7/0x13c0 fs/namei.c:3496 open_last_lookups fs/namei.c:3565 [inline] path_openat+0x931/0x29a0 fs/namei.c:3795 do_filp_open+0x1de/0x440 fs/namei.c:3825 do_sys_openat2+0x17a/0x1e0 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1430 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd8/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f0278b169a4 Code: 24 20 48 8d 44 24 30 48 89 44 24 28 64 8b 04 25 18 00 00 00 85 c0 75 2c 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 60 48 8b 15 55 a4 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffe49014490 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f0278b169a4 RDX: 0000000000080241 RSI: 00007ffe490149d8 RDI: 00000000ffffff9c RBP: 00007ffe490149d8 R08: 0000000000000004 R09: 0000000000000001 R10: 00000000000001b6 R11: 0000000000000246 R12: 0000000000080241 R13: 000055af6bbf772e R14: 0000000000000001 R15: 000055af6d1d0910 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 90 nop 9: 90 nop a: 90 nop b: 90 nop c: 90 nop d: f3 0f 1e fa endbr64 11: 65 48 8b 14 25 80 c2 mov %gs:0x3c280,%rdx 18: 03 00 1a: 65 8b 05 b4 58 77 7e mov %gs:0x7e7758b4(%rip),%eax # 0x7e7758d5 21: a9 00 01 ff 00 test $0xff0100,%eax 26: 48 8b 34 24 mov (%rsp),%rsi * 2a: 74 0f je 0x3b <-- trapping instruction 2c: f6 c4 01 test $0x1,%ah 2f: 74 35 je 0x66 31: 8b 82 fc 15 00 00 mov 0x15fc(%rdx),%eax 37: 85 c0 test %eax,%eax 39: 74 2b je 0x66 3b: 8b .byte 0x8b 3c: 82 (bad) 3d: d8 .byte 0xd8 3e: 15 .byte 0x15