============================= [ BUG: Invalid wait context ] 6.12.0-syzkaller-g45e04eb4d9d8 #0 Not tainted ----------------------------- syz.7.1375/11124 is trying to lock: ffff88802f8b9bd8 (&sighand->siglock){-.-.}-{3:3}, at: __lock_task_sighand+0x149/0x2d0 kernel/signal.c:1379 other info that might help us debug this: context-{5:5} 6 locks held by syz.7.1375/11124: #0: ffffffff8fcdc750 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x328/0x570 net/core/net_namespace.c:496 #1: ffffffff8fce9288 (rtnl_mutex){+.+.}-{4:4}, at: setup_net+0x602/0x9e0 net/core/net_namespace.c:384 #2: ffff88801baee948 (&root->kernfs_rwsem){++++}-{4:4}, at: kernfs_remove_by_name_ns+0x7a/0x160 fs/kernfs/dir.c:1689 #3: ffffffff8e93c4a0 (rcu_read_lock_sched){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #3: ffffffff8e93c4a0 (rcu_read_lock_sched){....}-{1:2}, at: rcu_read_lock_sched include/linux/rcupdate.h:941 [inline] #3: ffffffff8e93c4a0 (rcu_read_lock_sched){....}-{1:2}, at: pfn_valid include/linux/mmzone.h:2048 [inline] #3: ffffffff8e93c4a0 (rcu_read_lock_sched){....}-{1:2}, at: __virt_addr_valid+0x183/0x530 arch/x86/mm/physaddr.c:65 #4: ffffffff8e93c520 (rcu_read_lock){....}-{1:3}, at: trace_call_bpf+0xbc/0x8a0 #5: ffffffff8e93c520 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #5: ffffffff8e93c520 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #5: ffffffff8e93c520 (rcu_read_lock){....}-{1:3}, at: __lock_task_sighand+0x29/0x2d0 kernel/signal.c:1362 stack backtrace: CPU: 1 UID: 0 PID: 11124 Comm: syz.7.1375 Not tainted 6.12.0-syzkaller-g45e04eb4d9d8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_lock_invalid_wait_context kernel/locking/lockdep.c:4826 [inline] check_wait_context kernel/locking/lockdep.c:4898 [inline] __lock_acquire+0x15a8/0x2100 kernel/locking/lockdep.c:5176 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5849 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 __lock_task_sighand+0x149/0x2d0 kernel/signal.c:1379 lock_task_sighand include/linux/sched/signal.h:743 [inline] do_send_sig_info kernel/signal.c:1267 [inline] group_send_sig_info+0x274/0x310 kernel/signal.c:1418 bpf_send_signal_common+0x3c4/0x630 kernel/trace/bpf_trace.c:870 ____bpf_send_signal_thread kernel/trace/bpf_trace.c:887 [inline] bpf_send_signal_thread+0x1a/0x30 kernel/trace/bpf_trace.c:885 bpf_prog_b7be628660dc1b90+0x23/0x29 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] bpf_prog_run_array include/linux/bpf.h:2177 [inline] trace_call_bpf+0x369/0x8a0 kernel/trace/bpf_trace.c:146 perf_trace_run_bpf_submit+0x82/0x180 kernel/events/core.c:10473 do_perf_trace_lock include/trace/events/lock.h:50 [inline] perf_trace_lock+0x388/0x490 include/trace/events/lock.h:50 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x9cc/0xa30 kernel/locking/lockdep.c:5860 rcu_lock_release include/linux/rcupdate.h:347 [inline] rcu_read_unlock_sched include/linux/rcupdate.h:962 [inline] pfn_valid include/linux/mmzone.h:2058 [inline] __virt_addr_valid+0x42f/0x530 arch/x86/mm/physaddr.c:65 kasan_addr_to_slab+0xd/0x80 mm/kasan/common.c:37 __kasan_record_aux_stack+0x11/0xc0 mm/kasan/generic.c:526 __call_rcu_common kernel/rcu/tree.c:3086 [inline] call_rcu+0x167/0xa70 kernel/rcu/tree.c:3190 kernfs_put+0x1dc/0x370 fs/kernfs/dir.c:578 kernfs_remove_by_name_ns+0xe4/0x160 fs/kernfs/dir.c:1695 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] sysfs_unmerge_group+0xd3/0x130 fs/sysfs/group.c:399 rpm_sysfs_remove drivers/base/power/sysfs.c:826 [inline] dpm_sysfs_remove+0x74/0xc0 drivers/base/power/sysfs.c:835 device_del+0x291/0x9b0 drivers/base/core.c:3836 unregister_netdevice_many_notify+0x1859/0x1da0 net/core/dev.c:11556 setup_net+0x6c1/0x9e0 net/core/net_namespace.c:389 copy_net_ns+0x33f/0x570 net/core/net_namespace.c:500 create_new_namespaces+0x425/0x7b0 kernel/nsproxy.c:110 copy_namespaces+0x41a/0x490 kernel/nsproxy.c:179 copy_process+0x1929/0x3d50 kernel/fork.c:2378 kernel_clone+0x226/0x8f0 kernel/fork.c:2787 __do_sys_clone kernel/fork.c:2930 [inline] __se_sys_clone kernel/fork.c:2914 [inline] __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2914 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6b31580849 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6b323ea008 EFLAGS: 00000206 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007f6b31745fa0 RCX: 00007f6b31580849 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000 RBP: 00007f6b315f3986 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6b31745fa0 R15: 00007ffe86a51538