============================= [ BUG: Invalid wait context ] 6.12.0-syzkaller #0 Not tainted ----------------------------- dhcpcd/4177 is trying to lock: ffff888018343798 (&sighand->siglock){-.-.}-{3:3}, at: __lock_task_sighand+0xe4/0x1f0 kernel/signal.c:1379 other info that might help us debug this: context-{5:5} 3 locks held by dhcpcd/4177: #0: ffffffff8a315a00 (rcu_read_lock_sched){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8a315a00 (rcu_read_lock_sched){....}-{1:2}, at: rcu_read_lock_sched include/linux/rcupdate.h:941 [inline] #0: ffffffff8a315a00 (rcu_read_lock_sched){....}-{1:2}, at: pfn_valid include/linux/mmzone.h:2048 [inline] #0: ffffffff8a315a00 (rcu_read_lock_sched){....}-{1:2}, at: __virt_addr_valid+0x14a/0x360 arch/x86/mm/physaddr.c:65 #1: ffffffff8a315a80 (rcu_read_lock){....}-{1:3}, at: trace_call_bpf+0xa9/0x700 #2: ffffffff8a315a80 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #2: ffffffff8a315a80 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #2: ffffffff8a315a80 (rcu_read_lock){....}-{1:3}, at: __lock_task_sighand+0x24/0x1f0 kernel/signal.c:1362 stack backtrace: CPU: 0 UID: 101 PID: 4177 Comm: dhcpcd Not tainted 6.12.0-syzkaller #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+0x198/0x250 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+0xe4/0x1f0 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+0x1ea/0x280 kernel/signal.c:1418 bpf_send_signal_common+0x395/0x540 kernel/trace/bpf_trace.c:881 ____bpf_send_signal_thread kernel/trace/bpf_trace.c:898 [inline] bpf_send_signal_thread+0xf/0x20 kernel/trace/bpf_trace.c:896 ___bpf_prog_run+0xebc/0xa940 kernel/bpf/core.c:2011 __bpf_prog_run32+0xfa/0x150 kernel/bpf/core.c:2252 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+0x325/0x700 kernel/trace/bpf_trace.c:146 perf_trace_run_bpf_submit+0x7e/0x150 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+0x2ed/0x360 arch/x86/mm/physaddr.c:65 free_pages+0x15/0x50 mm/page_alloc.c:4850 mm_free_pgd kernel/fork.c:803 [inline] __mmdrop+0xa8/0x300 kernel/fork.c:919 mmdrop include/linux/sched/mm.h:55 [inline] mmdrop_sched include/linux/sched/mm.h:83 [inline] mmdrop_lazy_tlb_sched include/linux/sched/mm.h:110 [inline] finish_task_switch+0x2e1/0x830 kernel/sched/core.c:5268 context_switch kernel/sched/core.c:5372 [inline] __schedule+0x1838/0x4b50 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_hrtimeout_range_clock+0x203/0x2e0 kernel/time/sleep_timeout.c:207 poll_schedule_timeout fs/select.c:241 [inline] do_poll fs/select.c:958 [inline] do_sys_poll+0xd2a/0x11a0 fs/select.c:1009 __do_sys_ppoll fs/select.c:1115 [inline] __se_sys_ppoll+0x24d/0x2d0 fs/select.c:1095 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:0x7f9c4a806ad5 Code: 85 d2 74 0d 0f 10 02 48 8d 54 24 20 0f 11 44 24 20 64 8b 04 25 18 00 00 00 85 c0 75 27 41 b8 08 00 00 00 b8 0f 01 00 00 0f 05 <48> 3d 00 f0 ff ff 76 75 48 8b 15 24 73 0d 00 f7 d8 64 89 02 48 83 RSP: 002b:00007ffdc54740b0 EFLAGS: 00000246 ORIG_RAX: 000000000000010f RAX: ffffffffffffffda RBX: 00005592c690cee0 RCX: 00007f9c4a806ad5 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 00005592c6915fe0 RBP: 00007ffdc5474400 R08: 0000000000000008 R09: 000055928d3f03d0 R10: 00007ffdc5474400 R11: 0000000000000246 R12: 0000000000000000 R13: 000055928d3f0610 R14: 0000000000000000 R15: 0000000000000000