Warning: Permanently added '10.128.1.35' (ED25519) to the list of known hosts. executing program executing program [ 51.983597][ T0] [ 51.986017][ T0] ===================================================== [ 51.993466][ T0] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 52.001236][ T0] 5.15.153-syzkaller #0 Not tainted [ 52.006630][ T0] ----------------------------------------------------- [ 52.013927][ T0] swapper/0/0 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 52.021289][ T0] ffff88801a504068 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 52.031776][ T0] [ 52.031776][ T0] and this task is already holding: [ 52.039487][ T0] ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 52.049165][ T0] which would create a new lock dependency: [ 52.055317][ T0] (&rq->__lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 52.064132][ T0] [ 52.064132][ T0] but this new dependency connects a HARDIRQ-irq-safe lock: [ 52.075230][ T0] (&rq->__lock){-.-.}-{2:2} [ 52.075260][ T0] [ 52.075260][ T0] ... which became HARDIRQ-irq-safe at: [ 52.088089][ T0] lock_acquire+0x1db/0x4f0 [ 52.092967][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 52.098426][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 52.104571][ T0] scheduler_tick+0x97/0x500 [ 52.109416][ T0] update_process_times+0x1ca/0x200 [ 52.114805][ T0] tick_periodic+0x197/0x210 [ 52.119495][ T0] tick_handle_periodic+0x46/0x150 [ 52.124677][ T0] timer_interrupt+0x4d/0x60 [ 52.129336][ T0] __handle_irq_event_percpu+0x292/0xa70 [ 52.135470][ T0] handle_irq_event+0xff/0x2b0 [ 52.140646][ T0] handle_level_irq+0x3ab/0x6c0 [ 52.145651][ T0] __common_interrupt+0xd7/0x1f0 [ 52.150654][ T0] common_interrupt+0x9f/0xc0 [ 52.155402][ T0] asm_common_interrupt+0x22/0x40 [ 52.160503][ T0] _raw_spin_unlock_irqrestore+0xd4/0x130 [ 52.166394][ T0] __setup_irq+0x1302/0x1d90 [ 52.171323][ T0] request_threaded_irq+0x2a7/0x380 [ 52.176602][ T0] setup_default_timer_irq+0x1f/0x30 [ 52.181959][ T0] x86_late_time_init+0x51/0x86 [ 52.186880][ T0] start_kernel+0x40a/0x535 [ 52.191545][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 52.197605][ T0] [ 52.197605][ T0] to a HARDIRQ-irq-unsafe lock: [ 52.204815][ T0] (&htab->buckets[i].lock){+...}-{2:2} [ 52.204836][ T0] [ 52.204836][ T0] ... which became HARDIRQ-irq-unsafe at: [ 52.219003][ T0] ... [ 52.219008][ T0] lock_acquire+0x1db/0x4f0 [ 52.226529][ T0] _raw_spin_lock_bh+0x31/0x40 [ 52.231646][ T0] sock_hash_free+0x14c/0x780 [ 52.236399][ T0] process_one_work+0x8a1/0x10c0 [ 52.241418][ T0] worker_thread+0xaca/0x1280 [ 52.249984][ T0] kthread+0x3f6/0x4f0 [ 52.254209][ T0] ret_from_fork+0x1f/0x30 [ 52.258711][ T0] [ 52.258711][ T0] other info that might help us debug this: [ 52.258711][ T0] [ 52.269746][ T0] Possible interrupt unsafe locking scenario: [ 52.269746][ T0] [ 52.278582][ T0] CPU0 CPU1 [ 52.284025][ T0] ---- ---- [ 52.289463][ T0] lock(&htab->buckets[i].lock); [ 52.294643][ T0] local_irq_disable(); [ 52.301478][ T0] lock(&rq->__lock); [ 52.308047][ T0] lock(&htab->buckets[i].lock); [ 52.315787][ T0] [ 52.319502][ T0] lock(&rq->__lock); [ 52.323923][ T0] [ 52.323923][ T0] *** DEADLOCK *** [ 52.323923][ T0] [ 52.332392][ T0] 2 locks held by swapper/0/0: [ 52.337322][ T0] #0: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 52.347354][ T0] #1: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 52.356956][ T0] [ 52.356956][ T0] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 52.367530][ T0] -> (&rq->__lock){-.-.}-{2:2} { [ 52.372559][ T0] IN-HARDIRQ-W at: [ 52.376526][ T0] lock_acquire+0x1db/0x4f0 [ 52.382762][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 52.389692][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 52.396698][ T0] scheduler_tick+0x97/0x500 [ 52.403291][ T0] update_process_times+0x1ca/0x200 [ 52.410211][ T0] tick_periodic+0x197/0x210 [ 52.416805][ T0] tick_handle_periodic+0x46/0x150 [ 52.423682][ T0] timer_interrupt+0x4d/0x60 [ 52.429918][ T0] __handle_irq_event_percpu+0x292/0xa70 [ 52.437971][ T0] handle_irq_event+0xff/0x2b0 [ 52.444370][ T0] handle_level_irq+0x3ab/0x6c0 [ 52.450944][ T0] __common_interrupt+0xd7/0x1f0 [ 52.457603][ T0] common_interrupt+0x9f/0xc0 [ 52.463919][ T0] asm_common_interrupt+0x22/0x40 [ 52.470806][ T0] _raw_spin_unlock_irqrestore+0xd4/0x130 [ 52.478433][ T0] __setup_irq+0x1302/0x1d90 [ 52.484871][ T0] request_threaded_irq+0x2a7/0x380 [ 52.491888][ T0] setup_default_timer_irq+0x1f/0x30 [ 52.498807][ T0] x86_late_time_init+0x51/0x86 [ 52.505297][ T0] start_kernel+0x40a/0x535 [ 52.511453][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 52.519350][ T0] IN-SOFTIRQ-W at: [ 52.523489][ T0] lock_acquire+0x1db/0x4f0 [ 52.529807][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 52.536670][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 52.544145][ T0] try_to_wake_up+0x6dd/0x1300 [ 52.550548][ T0] call_timer_fn+0x16d/0x560 [ 52.557208][ T0] __run_timers+0x67c/0x890 [ 52.563878][ T0] run_timer_softirq+0x63/0xf0 [ 52.570660][ T0] __do_softirq+0x3b3/0x93a [ 52.576979][ T0] __irq_exit_rcu+0x155/0x240 [ 52.583292][ T0] irq_exit_rcu+0x5/0x20 [ 52.589357][ T0] sysvec_apic_timer_interrupt+0x91/0xb0 [ 52.596708][ T0] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 52.604604][ T0] default_idle+0xb/0x10 [ 52.610619][ T0] default_idle_call+0x81/0xc0 [ 52.617300][ T0] do_idle+0x271/0x670 [ 52.623198][ T0] cpu_startup_entry+0x14/0x20 [ 52.629701][ T0] start_kernel+0x48c/0x535 [ 52.635938][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 52.643637][ T0] INITIAL USE at: [ 52.647510][ T0] lock_acquire+0x1db/0x4f0 [ 52.653905][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 52.660735][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 52.668126][ T0] rq_attach_root+0xec/0x440 [ 52.674433][ T0] sched_init+0x6a4/0xbdd [ 52.680308][ T0] start_kernel+0x1b6/0x535 [ 52.686477][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 52.694177][ T0] } [ 52.696654][ T0] ... key at: [] sched_init.__key+0x0/0x20 [ 52.704579][ T0] [ 52.704579][ T0] the dependencies between the lock to be acquired [ 52.704586][ T0] and HARDIRQ-irq-unsafe lock: [ 52.718517][ T0] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 52.724404][ T0] HARDIRQ-ON-W at: [ 52.728523][ T0] lock_acquire+0x1db/0x4f0 [ 52.735436][ T0] _raw_spin_lock_bh+0x31/0x40 [ 52.742034][ T0] sock_hash_free+0x14c/0x780 [ 52.748712][ T0] process_one_work+0x8a1/0x10c0 [ 52.755999][ T0] worker_thread+0xaca/0x1280 [ 52.762442][ T0] kthread+0x3f6/0x4f0 [ 52.768624][ T0] ret_from_fork+0x1f/0x30 [ 52.774969][ T0] INITIAL USE at: [ 52.779033][ T0] lock_acquire+0x1db/0x4f0 [ 52.785313][ T0] _raw_spin_lock_bh+0x31/0x40 [ 52.791730][ T0] sock_hash_free+0x14c/0x780 [ 52.797984][ T0] process_one_work+0x8a1/0x10c0 [ 52.804465][ T0] worker_thread+0xaca/0x1280 [ 52.810685][ T0] kthread+0x3f6/0x4f0 [ 52.816412][ T0] ret_from_fork+0x1f/0x30 [ 52.822689][ T0] } [ 52.825325][ T0] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 52.834022][ T0] ... acquired at: [ 52.837903][ T0] lock_acquire+0x1db/0x4f0 [ 52.843158][ T0] _raw_spin_lock_bh+0x31/0x40 [ 52.848447][ T0] sock_hash_delete_elem+0xac/0x2f0 [ 52.853929][ T0] bpf_prog_2c29ac5cdc6b1842+0x3a/0x4d0 [ 52.861146][ T0] bpf_trace_run3+0x1d1/0x380 [ 52.866714][ T0] __schedule+0x1e8d/0x45b0 [ 52.871488][ T0] schedule_idle+0x4a/0x90 [ 52.876625][ T0] do_idle+0x61e/0x670 [ 52.880853][ T0] cpu_startup_entry+0x14/0x20 [ 52.886064][ T0] start_kernel+0x48c/0x535 [ 52.891167][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 52.897422][ T0] [ 52.899744][ T0] [ 52.899744][ T0] stack backtrace: [ 52.905619][ T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.153-syzkaller #0 [ 52.913423][ T0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 52.923980][ T0] Call Trace: [ 52.927434][ T0] [ 52.931146][ T0] dump_stack_lvl+0x1e3/0x2cb [ 52.936278][ T0] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 52.942748][ T0] ? panic+0x84d/0x84d [ 52.946933][ T0] ? print_shortest_lock_dependencies+0xee/0x150 [ 52.954416][ T0] validate_chain+0x4d01/0x5930 [ 52.959447][ T0] ? reacquire_held_locks+0x660/0x660 [ 52.965035][ T0] ? reacquire_held_locks+0x660/0x660 [ 52.970416][ T0] ? register_lock_class+0x100/0x9a0 [ 52.976051][ T0] ? is_dynamic_key+0x1f0/0x1f0 [ 52.981076][ T0] ? mark_lock+0x98/0x340 [ 52.985476][ T0] __lock_acquire+0x1295/0x1ff0 [ 52.990489][ T0] lock_acquire+0x1db/0x4f0 [ 52.995258][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 53.000628][ T0] ? lockdep_softirqs_on+0x590/0x590 [ 53.006016][ T0] ? read_lock_is_recursive+0x10/0x10 [ 53.011742][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 53.017553][ T0] ? __bpf_trace_softirq+0x10/0x10 [ 53.022913][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 53.028380][ T0] _raw_spin_lock_bh+0x31/0x40 [ 53.033245][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 53.038793][ T0] sock_hash_delete_elem+0xac/0x2f0 [ 53.044344][ T0] bpf_prog_2c29ac5cdc6b1842+0x3a/0x4d0 [ 53.050135][ T0] bpf_trace_run3+0x1d1/0x380 [ 53.054900][ T0] ? bpf_trace_run2+0x340/0x340 [ 53.059818][ T0] __schedule+0x1e8d/0x45b0 [ 53.064405][ T0] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 53.070725][ T0] ? print_irqtrace_events+0x210/0x210 [ 53.076561][ T0] ? tick_nohz_idle_exit+0x429/0x550 [ 53.082195][ T0] ? __sched_text_start+0x8/0x8 [ 53.087034][ T0] ? flush_smp_call_function_from_idle+0x13e/0x280 [ 53.093910][ T0] ? generic_smp_call_function_single_interrupt+0x10/0x10 [ 53.101226][ T0] ? tick_nohz_restart_sched_tick+0x200/0x200 [ 53.107638][ T0] ? tick_nohz_idle_got_tick+0x96/0x100 [ 53.113884][ T0] schedule_idle+0x4a/0x90 [ 53.118946][ T0] do_idle+0x61e/0x670 [ 53.123010][ T0] ? idle_inject_timer_fn+0x60/0x60 [ 53.128836][ T0] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 53.135007][ T0] cpu_startup_entry+0x14/0x20 [ 53.139843][ T0] ? time_init+0x33/0x33 [ 53.144169][ T0] start_kernel+0x48c/0x535 [ 53.148850][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 53.154763][ T0]