Warning: Permanently added '10.128.0.78' (ED25519) to the list of known hosts. executing program executing program executing program syzkaller login: [ 42.495341][ T0] [ 42.497705][ T0] ===================================================== [ 42.504617][ T0] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 42.512047][ T0] 5.15.153-syzkaller #0 Not tainted [ 42.517218][ T0] ----------------------------------------------------- [ 42.524122][ T0] swapper/0/0 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 42.531385][ T0] ffff88814ae8cb68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 42.541642][ T0] [ 42.541642][ T0] and this task is already holding: [ 42.548981][ T0] ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 42.558439][ T0] which would create a new lock dependency: [ 42.564305][ T0] (&rq->__lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 42.572372][ T0] [ 42.572372][ T0] but this new dependency connects a HARDIRQ-irq-safe lock: [ 42.581796][ T0] (&rq->__lock){-.-.}-{2:2} [ 42.581814][ T0] [ 42.581814][ T0] ... which became HARDIRQ-irq-safe at: [ 42.594055][ T0] lock_acquire+0x1db/0x4f0 [ 42.598635][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 42.603814][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 42.609261][ T0] scheduler_tick+0x97/0x500 [ 42.613932][ T0] update_process_times+0x1ca/0x200 [ 42.619210][ T0] tick_periodic+0x197/0x210 [ 42.623874][ T0] tick_handle_periodic+0x46/0x150 [ 42.629055][ T0] timer_interrupt+0x4d/0x60 [ 42.633715][ T0] __handle_irq_event_percpu+0x292/0xa70 [ 42.639414][ T0] handle_irq_event+0xff/0x2b0 [ 42.644242][ T0] handle_edge_irq+0x245/0xbf0 [ 42.649067][ T0] __common_interrupt+0xd7/0x1f0 [ 42.654067][ T0] common_interrupt+0x9f/0xc0 [ 42.658895][ T0] asm_common_interrupt+0x22/0x40 [ 42.663987][ T0] console_unlock+0xe53/0x12b0 [ 42.668815][ T0] vprintk_emit+0xbf/0x150 [ 42.673300][ T0] _printk+0xd1/0x111 [ 42.677349][ T0] spectre_v2_select_mitigation+0x4b9/0x748 [ 42.683309][ T0] cpu_select_mitigations+0x3d/0x8f [ 42.688572][ T0] arch_cpu_finalize_init+0xf/0x81 [ 42.693751][ T0] start_kernel+0x419/0x535 [ 42.698326][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 42.704299][ T0] [ 42.704299][ T0] to a HARDIRQ-irq-unsafe lock: [ 42.711295][ T0] (&htab->buckets[i].lock){+...}-{2:2} [ 42.711315][ T0] [ 42.711315][ T0] ... which became HARDIRQ-irq-unsafe at: [ 42.724692][ T0] ... [ 42.724697][ T0] lock_acquire+0x1db/0x4f0 [ 42.731828][ T0] _raw_spin_lock_bh+0x31/0x40 [ 42.736660][ T0] sock_hash_free+0x14c/0x780 [ 42.741404][ T0] process_one_work+0x8a1/0x10c0 [ 42.746406][ T0] worker_thread+0xaca/0x1280 [ 42.751153][ T0] kthread+0x3f6/0x4f0 [ 42.755290][ T0] ret_from_fork+0x1f/0x30 [ 42.759870][ T0] [ 42.759870][ T0] other info that might help us debug this: [ 42.759870][ T0] [ 42.770073][ T0] Possible interrupt unsafe locking scenario: [ 42.770073][ T0] [ 42.778366][ T0] CPU0 CPU1 [ 42.783706][ T0] ---- ---- [ 42.789049][ T0] lock(&htab->buckets[i].lock); [ 42.794054][ T0] local_irq_disable(); [ 42.800784][ T0] lock(&rq->__lock); [ 42.807352][ T0] lock(&htab->buckets[i].lock); [ 42.814878][ T0] [ 42.818310][ T0] lock(&rq->__lock); [ 42.822528][ T0] [ 42.822528][ T0] *** DEADLOCK *** [ 42.822528][ T0] [ 42.830647][ T0] 2 locks held by swapper/0/0: [ 42.835384][ T0] #0: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 42.845280][ T0] #1: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 42.854564][ T0] [ 42.854564][ T0] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 42.865030][ T0] -> (&rq->__lock){-.-.}-{2:2} { [ 42.869958][ T0] IN-HARDIRQ-W at: [ 42.873917][ T0] lock_acquire+0x1db/0x4f0 [ 42.880051][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 42.886794][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 42.893805][ T0] scheduler_tick+0x97/0x500 [ 42.900023][ T0] update_process_times+0x1ca/0x200 [ 42.906850][ T0] tick_periodic+0x197/0x210 [ 42.913070][ T0] tick_handle_periodic+0x46/0x150 [ 42.919812][ T0] timer_interrupt+0x4d/0x60 [ 42.926029][ T0] __handle_irq_event_percpu+0x292/0xa70 [ 42.933290][ T0] handle_irq_event+0xff/0x2b0 [ 42.939688][ T0] handle_edge_irq+0x245/0xbf0 [ 42.946088][ T0] __common_interrupt+0xd7/0x1f0 [ 42.952658][ T0] common_interrupt+0x9f/0xc0 [ 42.958961][ T0] asm_common_interrupt+0x22/0x40 [ 42.965613][ T0] console_unlock+0xe53/0x12b0 [ 42.972004][ T0] vprintk_emit+0xbf/0x150 [ 42.978047][ T0] _printk+0xd1/0x111 [ 42.983657][ T0] spectre_v2_select_mitigation+0x4b9/0x748 [ 42.991183][ T0] cpu_select_mitigations+0x3d/0x8f [ 42.998010][ T0] arch_cpu_finalize_init+0xf/0x81 [ 43.004753][ T0] start_kernel+0x419/0x535 [ 43.010974][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 43.018497][ T0] IN-SOFTIRQ-W at: [ 43.022455][ T0] lock_acquire+0x1db/0x4f0 [ 43.028587][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 43.035336][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 43.042338][ T0] try_to_wake_up+0x6dd/0x1300 [ 43.048733][ T0] call_timer_fn+0x16d/0x560 [ 43.054957][ T0] __run_timers+0x67c/0x890 [ 43.061090][ T0] run_timer_softirq+0x63/0xf0 [ 43.067484][ T0] __do_softirq+0x3b3/0x93a [ 43.073629][ T0] __irq_exit_rcu+0x155/0x240 [ 43.079936][ T0] irq_exit_rcu+0x5/0x20 [ 43.085805][ T0] sysvec_apic_timer_interrupt+0x91/0xb0 [ 43.093067][ T0] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 43.100677][ T0] default_idle+0xb/0x10 [ 43.106554][ T0] default_idle_call+0x81/0xc0 [ 43.112947][ T0] do_idle+0x271/0x670 [ 43.118645][ T0] cpu_startup_entry+0x14/0x20 [ 43.125039][ T0] start_kernel+0x48c/0x535 [ 43.131177][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 43.138699][ T0] INITIAL USE at: [ 43.142572][ T0] lock_acquire+0x1db/0x4f0 [ 43.148617][ T0] _raw_spin_lock_nested+0x2d/0x40 [ 43.155274][ T0] raw_spin_rq_lock_nested+0x26/0x140 [ 43.162188][ T0] rq_attach_root+0xec/0x440 [ 43.168319][ T0] sched_init+0x6a4/0xbdd [ 43.174193][ T0] start_kernel+0x1b6/0x535 [ 43.180245][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 43.187684][ T0] } [ 43.190163][ T0] ... key at: [] sched_init.__key+0x0/0x20 [ 43.198035][ T0] [ 43.198035][ T0] the dependencies between the lock to be acquired [ 43.198041][ T0] and HARDIRQ-irq-unsafe lock: [ 43.211513][ T0] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 43.217399][ T0] HARDIRQ-ON-W at: [ 43.221357][ T0] lock_acquire+0x1db/0x4f0 [ 43.227491][ T0] _raw_spin_lock_bh+0x31/0x40 [ 43.233885][ T0] sock_hash_free+0x14c/0x780 [ 43.240189][ T0] process_one_work+0x8a1/0x10c0 [ 43.246757][ T0] worker_thread+0xaca/0x1280 [ 43.253330][ T0] kthread+0x3f6/0x4f0 [ 43.259025][ T0] ret_from_fork+0x1f/0x30 [ 43.265071][ T0] INITIAL USE at: [ 43.268943][ T0] lock_acquire+0x1db/0x4f0 [ 43.275015][ T0] _raw_spin_lock_bh+0x31/0x40 [ 43.281323][ T0] sock_hash_free+0x14c/0x780 [ 43.287548][ T0] process_one_work+0x8a1/0x10c0 [ 43.294034][ T0] worker_thread+0xaca/0x1280 [ 43.300281][ T0] kthread+0x3f6/0x4f0 [ 43.305892][ T0] ret_from_fork+0x1f/0x30 [ 43.311855][ T0] } [ 43.314339][ T0] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 43.322668][ T0] ... acquired at: [ 43.326461][ T0] lock_acquire+0x1db/0x4f0 [ 43.331135][ T0] _raw_spin_lock_bh+0x31/0x40 [ 43.336075][ T0] sock_hash_delete_elem+0xac/0x2f0 [ 43.341450][ T0] bpf_prog_a8aaa52f2e199321+0x42/0x548 [ 43.347152][ T0] bpf_trace_run3+0x1d1/0x380 [ 43.351982][ T0] __schedule+0x1e8d/0x45b0 [ 43.356642][ T0] schedule_idle+0x4a/0x90 [ 43.361212][ T0] do_idle+0x61e/0x670 [ 43.365436][ T0] cpu_startup_entry+0x14/0x20 [ 43.370354][ T0] start_kernel+0x48c/0x535 [ 43.375007][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 43.381061][ T0] [ 43.383365][ T0] [ 43.383365][ T0] stack backtrace: [ 43.389231][ T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.15.153-syzkaller #0 [ 43.397013][ T0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 43.407047][ T0] Call Trace: [ 43.410307][ T0] [ 43.413218][ T0] dump_stack_lvl+0x1e3/0x2cb [ 43.417881][ T0] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 43.423498][ T0] ? panic+0x84d/0x84d [ 43.427548][ T0] ? print_shortest_lock_dependencies+0xee/0x150 [ 43.433859][ T0] validate_chain+0x4d01/0x5930 [ 43.438699][ T0] ? reacquire_held_locks+0x660/0x660 [ 43.444048][ T0] ? reacquire_held_locks+0x660/0x660 [ 43.449402][ T0] ? register_lock_class+0x100/0x9a0 [ 43.454667][ T0] ? is_dynamic_key+0x1f0/0x1f0 [ 43.459499][ T0] ? mark_lock+0x98/0x340 [ 43.463816][ T0] __lock_acquire+0x1295/0x1ff0 [ 43.468650][ T0] lock_acquire+0x1db/0x4f0 [ 43.473133][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 43.478488][ T0] ? lockdep_softirqs_on+0x590/0x590 [ 43.483752][ T0] ? read_lock_is_recursive+0x10/0x10 [ 43.489108][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 43.494460][ T0] ? __bpf_trace_softirq+0x10/0x10 [ 43.499590][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 43.504948][ T0] _raw_spin_lock_bh+0x31/0x40 [ 43.509693][ T0] ? sock_hash_delete_elem+0xac/0x2f0 [ 43.515043][ T0] sock_hash_delete_elem+0xac/0x2f0 [ 43.520222][ T0] bpf_prog_a8aaa52f2e199321+0x42/0x548 [ 43.525753][ T0] bpf_trace_run3+0x1d1/0x380 [ 43.530420][ T0] ? bpf_trace_run2+0x340/0x340 [ 43.535253][ T0] __schedule+0x1e8d/0x45b0 [ 43.539745][ T0] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 43.545712][ T0] ? print_irqtrace_events+0x210/0x210 [ 43.551155][ T0] ? tick_nohz_idle_exit+0x429/0x550 [ 43.556424][ T0] ? __sched_text_start+0x8/0x8 [ 43.561256][ T0] ? flush_smp_call_function_from_idle+0x13e/0x280 [ 43.567736][ T0] ? generic_smp_call_function_single_interrupt+0x10/0x10 [ 43.574828][ T0] ? tick_nohz_restart_sched_tick+0x200/0x200 [ 43.580877][ T0] ? tick_nohz_idle_got_tick+0x96/0x100 [ 43.586404][ T0] schedule_idle+0x4a/0x90 [ 43.590804][ T0] do_idle+0x61e/0x670 [ 43.594861][ T0] ? idle_inject_timer_fn+0x60/0x60 [ 43.600042][ T0] ? asm_sysvec_call_function_single+0x16/0x20 [ 43.606179][ T0] ? schedule_idle+0x57/0x90 [ 43.610760][ T0] cpu_startup_entry+0x14/0x20 [ 43.615516][ T0] ? time_init+0x33/0x33 [ 43.619740][ T0] start_kernel+0x48c/0x535 [ 43.624228][ T0] secondary_startup_64_no_verify+0xb1/0xbb [ 43.630110][ T0]