Warning: Permanently added '10.128.1.148' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 51.654572][ T21] [ 51.657007][ T21] ===================================================== [ 51.663942][ T21] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 51.671390][ T21] 5.15.153-syzkaller #0 Not tainted [ 51.676574][ T21] ----------------------------------------------------- [ 51.683495][ T21] kworker/1:0/21 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 51.691046][ T21] ffff88807ad13a18 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 51.701308][ T21] [ 51.701308][ T21] and this task is already holding: [ 51.708656][ T21] ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 51.718120][ T21] which would create a new lock dependency: [ 51.723986][ T21] (&rq->__lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 51.732059][ T21] [ 51.732059][ T21] but this new dependency connects a HARDIRQ-irq-safe lock: [ 51.741486][ T21] (&rq->__lock){-.-.}-{2:2} [ 51.741503][ T21] [ 51.741503][ T21] ... which became HARDIRQ-irq-safe at: [ 51.753760][ T21] lock_acquire+0x1db/0x4f0 [ 51.758345][ T21] _raw_spin_lock_nested+0x2d/0x40 [ 51.763530][ T21] raw_spin_rq_lock_nested+0x26/0x140 [ 51.768975][ T21] scheduler_tick+0x97/0x500 [ 51.773724][ T21] update_process_times+0x1ca/0x200 [ 51.778993][ T21] tick_periodic+0x197/0x210 [ 51.783663][ T21] tick_handle_periodic+0x46/0x150 [ 51.788844][ T21] timer_interrupt+0x4d/0x60 [ 51.793506][ T21] __handle_irq_event_percpu+0x292/0xa70 [ 51.799213][ T21] handle_irq_event+0xff/0x2b0 [ 51.804049][ T21] handle_edge_irq+0x245/0xbf0 [ 51.808881][ T21] __common_interrupt+0xd7/0x1f0 [ 51.813912][ T21] common_interrupt+0x9f/0xc0 [ 51.818659][ T21] asm_common_interrupt+0x22/0x40 [ 51.823840][ T21] __sanitizer_cov_trace_const_cmp1+0x4/0x80 [ 51.829892][ T21] cmdline_find_option+0xe9/0x370 [ 51.834991][ T21] spectre_v2_parse_cmdline+0xf5/0x5e0 [ 51.840537][ T21] spectre_v2_select_mitigation+0x14/0x748 [ 51.846427][ T21] cpu_select_mitigations+0x3d/0x8f [ 51.851696][ T21] arch_cpu_finalize_init+0xf/0x81 [ 51.856890][ T21] start_kernel+0x419/0x535 [ 51.861463][ T21] secondary_startup_64_no_verify+0xb1/0xbb [ 51.867429][ T21] [ 51.867429][ T21] to a HARDIRQ-irq-unsafe lock: [ 51.874426][ T21] (&htab->buckets[i].lock){+...}-{2:2} [ 51.874445][ T21] [ 51.874445][ T21] ... which became HARDIRQ-irq-unsafe at: [ 51.887825][ T21] ... [ 51.887830][ T21] lock_acquire+0x1db/0x4f0 [ 51.894968][ T21] _raw_spin_lock_bh+0x31/0x40 [ 51.899805][ T21] sock_hash_free+0x14c/0x780 [ 51.904561][ T21] process_one_work+0x8a1/0x10c0 [ 51.910017][ T21] worker_thread+0xaca/0x1280 [ 51.914782][ T21] kthread+0x3f6/0x4f0 [ 51.918930][ T21] ret_from_fork+0x1f/0x30 [ 51.923426][ T21] [ 51.923426][ T21] other info that might help us debug this: [ 51.923426][ T21] [ 51.933648][ T21] Possible interrupt unsafe locking scenario: [ 51.933648][ T21] [ 51.941961][ T21] CPU0 CPU1 [ 51.947319][ T21] ---- ---- [ 51.952671][ T21] lock(&htab->buckets[i].lock); [ 51.957685][ T21] local_irq_disable(); [ 51.964426][ T21] lock(&rq->__lock); [ 51.971022][ T21] lock(&htab->buckets[i].lock); [ 51.978565][ T21] [ 51.982018][ T21] lock(&rq->__lock); [ 51.986252][ T21] [ 51.986252][ T21] *** DEADLOCK *** [ 51.986252][ T21] [ 51.994387][ T21] 3 locks held by kworker/1:0/21: [ 51.999429][ T21] #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 [ 52.008766][ T21] #1: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 52.018686][ T21] #2: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 52.027983][ T21] [ 52.027983][ T21] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 52.038367][ T21] -> (&rq->__lock){-.-.}-{2:2} { [ 52.043322][ T21] IN-HARDIRQ-W at: [ 52.047305][ T21] lock_acquire+0x1db/0x4f0 [ 52.053456][ T21] _raw_spin_lock_nested+0x2d/0x40 [ 52.060245][ T21] raw_spin_rq_lock_nested+0x26/0x140 [ 52.067277][ T21] scheduler_tick+0x97/0x500 [ 52.073519][ T21] update_process_times+0x1ca/0x200 [ 52.080546][ T21] tick_periodic+0x197/0x210 [ 52.086866][ T21] tick_handle_periodic+0x46/0x150 [ 52.093613][ T21] timer_interrupt+0x4d/0x60 [ 52.099865][ T21] __handle_irq_event_percpu+0x292/0xa70 [ 52.107150][ T21] handle_irq_event+0xff/0x2b0 [ 52.113561][ T21] handle_edge_irq+0x245/0xbf0 [ 52.119971][ T21] __common_interrupt+0xd7/0x1f0 [ 52.126551][ T21] common_interrupt+0x9f/0xc0 [ 52.132957][ T21] asm_common_interrupt+0x22/0x40 [ 52.139621][ T21] __sanitizer_cov_trace_const_cmp1+0x4/0x80 [ 52.147239][ T21] cmdline_find_option+0xe9/0x370 [ 52.153908][ T21] spectre_v2_parse_cmdline+0xf5/0x5e0 [ 52.161002][ T21] spectre_v2_select_mitigation+0x14/0x748 [ 52.168445][ T21] cpu_select_mitigations+0x3d/0x8f [ 52.175279][ T21] arch_cpu_finalize_init+0xf/0x81 [ 52.182981][ T21] start_kernel+0x419/0x535 [ 52.189120][ T21] secondary_startup_64_no_verify+0xb1/0xbb [ 52.196651][ T21] IN-SOFTIRQ-W at: [ 52.200630][ T21] lock_acquire+0x1db/0x4f0 [ 52.206769][ T21] _raw_spin_lock_nested+0x2d/0x40 [ 52.213516][ T21] raw_spin_rq_lock_nested+0x26/0x140 [ 52.220525][ T21] try_to_wake_up+0x6dd/0x1300 [ 52.226924][ T21] call_timer_fn+0x16d/0x560 [ 52.233150][ T21] __run_timers+0x67c/0x890 [ 52.239298][ T21] run_timer_softirq+0x63/0xf0 [ 52.245706][ T21] __do_softirq+0x3b3/0x93a [ 52.251851][ T21] __irq_exit_rcu+0x155/0x240 [ 52.258161][ T21] irq_exit_rcu+0x5/0x20 [ 52.264034][ T21] sysvec_apic_timer_interrupt+0x91/0xb0 [ 52.271302][ T21] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 52.278920][ T21] default_idle+0xb/0x10 [ 52.284796][ T21] default_idle_call+0x81/0xc0 [ 52.291203][ T21] do_idle+0x271/0x670 [ 52.296910][ T21] cpu_startup_entry+0x14/0x20 [ 52.303324][ T21] start_kernel+0x48c/0x535 [ 52.309469][ T21] secondary_startup_64_no_verify+0xb1/0xbb [ 52.317000][ T21] INITIAL USE at: [ 52.320878][ T21] lock_acquire+0x1db/0x4f0 [ 52.326928][ T21] _raw_spin_lock_nested+0x2d/0x40 [ 52.333588][ T21] raw_spin_rq_lock_nested+0x26/0x140 [ 52.340513][ T21] rq_attach_root+0xec/0x440 [ 52.346655][ T21] sched_init+0x6a4/0xbdd [ 52.352537][ T21] start_kernel+0x1b6/0x535 [ 52.358588][ T21] secondary_startup_64_no_verify+0xb1/0xbb [ 52.366032][ T21] } [ 52.368513][ T21] ... key at: [] sched_init.__key+0x0/0x20 [ 52.376392][ T21] [ 52.376392][ T21] the dependencies between the lock to be acquired [ 52.376398][ T21] and HARDIRQ-irq-unsafe lock: [ 52.389881][ T21] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 52.395770][ T21] HARDIRQ-ON-W at: [ 52.399734][ T21] lock_acquire+0x1db/0x4f0 [ 52.405869][ T21] _raw_spin_lock_bh+0x31/0x40 [ 52.412265][ T21] sock_hash_free+0x14c/0x780 [ 52.418578][ T21] process_one_work+0x8a1/0x10c0 [ 52.425150][ T21] worker_thread+0xaca/0x1280 [ 52.431457][ T21] kthread+0x3f6/0x4f0 [ 52.437157][ T21] ret_from_fork+0x1f/0x30 [ 52.443207][ T21] INITIAL USE at: [ 52.447167][ T21] lock_acquire+0x1db/0x4f0 [ 52.453217][ T21] _raw_spin_lock_bh+0x31/0x40 [ 52.459529][ T21] sock_hash_free+0x14c/0x780 [ 52.465842][ T21] process_one_work+0x8a1/0x10c0 [ 52.472334][ T21] worker_thread+0xaca/0x1280 [ 52.478559][ T21] kthread+0x3f6/0x4f0 [ 52.484176][ T21] ret_from_fork+0x1f/0x30 [ 52.490149][ T21] } [ 52.492629][ T21] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 52.501034][ T21] ... acquired at: [ 52.504828][ T21] lock_acquire+0x1db/0x4f0 [ 52.509492][ T21] _raw_spin_lock_bh+0x31/0x40 [ 52.514417][ T21] sock_hash_delete_elem+0xac/0x2f0 [ 52.519773][ T21] bpf_prog_2c29ac5cdc6b1842+0x3a/0xa28 [ 52.525477][ T21] bpf_trace_run2+0x19e/0x340 [ 52.530313][ T21] set_task_cpu+0x40f/0x480 [ 52.534978][ T21] load_balance+0x52f0/0x7c60 [ 52.539813][ T21] newidle_balance+0x4d4/0xef0 [ 52.544732][ T21] pick_next_task_fair+0x27d/0x9c0 [ 52.550001][ T21] __schedule+0x86d/0x45b0 [ 52.554578][ T21] schedule+0x11b/0x1f0 [ 52.558892][ T21] worker_thread+0xf56/0x1280 [ 52.563774][ T21] kthread+0x3f6/0x4f0 [ 52.568006][ T21] ret_from_fork+0x1f/0x30 [ 52.572579][ T21] [ 52.574902][ T21] [ 52.574902][ T21] stack backtrace: [ 52.580874][ T21] CPU: 1 PID: 21 Comm: kworker/1:0 Not tainted 5.15.153-syzkaller #0 [ 52.588936][ T21] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 52.598979][ T21] Workqueue: 0x0 (events) [ 52.603392][ T21] Call Trace: [ 52.606667][ T21] [ 52.609592][ T21] dump_stack_lvl+0x1e3/0x2cb [ 52.614263][ T21] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 52.619890][ T21] ? panic+0x84d/0x84d [ 52.623948][ T21] ? print_shortest_lock_dependencies+0xee/0x150 [ 52.630273][ T21] validate_chain+0x4d01/0x5930 [ 52.635186][ T21] ? reacquire_held_locks+0x660/0x660 [ 52.640545][ T21] ? validate_chain+0x112/0x5930 [ 52.645470][ T21] ? validate_chain+0x112/0x5930 [ 52.650394][ T21] ? register_lock_class+0x100/0x9a0 [ 52.655664][ T21] ? is_dynamic_key+0x1f0/0x1f0 [ 52.660500][ T21] ? mark_lock+0x98/0x340 [ 52.664817][ T21] __lock_acquire+0x1295/0x1ff0 [ 52.669660][ T21] lock_acquire+0x1db/0x4f0 [ 52.674146][ T21] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.679503][ T21] ? lockdep_softirqs_on+0x590/0x590 [ 52.684796][ T21] ? read_lock_is_recursive+0x10/0x10 [ 52.690155][ T21] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.695512][ T21] ? __bpf_trace_softirq+0x10/0x10 [ 52.700611][ T21] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.705966][ T21] _raw_spin_lock_bh+0x31/0x40 [ 52.710720][ T21] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.716075][ T21] sock_hash_delete_elem+0xac/0x2f0 [ 52.721274][ T21] bpf_prog_2c29ac5cdc6b1842+0x3a/0xa28 [ 52.726803][ T21] bpf_trace_run2+0x19e/0x340 [ 52.731468][ T21] ? bpf_trace_run1+0x2f0/0x2f0 [ 52.736308][ T21] ? set_task_cpu+0x37f/0x480 [ 52.740974][ T21] set_task_cpu+0x40f/0x480 [ 52.745464][ T21] ? dequeue_task+0x3c2/0x430 [ 52.750127][ T21] load_balance+0x52f0/0x7c60 [ 52.754812][ T21] ? update_blocked_averages+0x1440/0x1440 [ 52.760606][ T21] ? ret_from_fork+0x1f/0x30 [ 52.765187][ T21] ? mark_lock+0x98/0x340 [ 52.769507][ T21] ? read_lock_is_recursive+0x10/0x10 [ 52.774861][ T21] ? newidle_balance+0x341/0xef0 [ 52.779801][ T21] ? kvm_sched_clock_read+0x14/0x40 [ 52.785026][ T21] newidle_balance+0x4d4/0xef0 [ 52.789795][ T21] ? update_misfit_status+0x7d0/0x7d0 [ 52.795161][ T21] ? enqueue_task_fair+0x1710/0x1710 [ 52.800454][ T21] pick_next_task_fair+0x27d/0x9c0 [ 52.805666][ T21] __schedule+0x86d/0x45b0 [ 52.810089][ T21] ? pwq_dec_nr_in_flight+0x1e8/0x460 [ 52.815469][ T21] ? __sched_text_start+0x8/0x8 [ 52.820313][ T21] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 52.826282][ T21] ? print_irqtrace_events+0x210/0x210 [ 52.831724][ T21] ? kthread_data+0x4e/0xc0 [ 52.836214][ T21] ? wq_worker_sleeping+0x5d/0x200 [ 52.841314][ T21] schedule+0x11b/0x1f0 [ 52.845461][ T21] worker_thread+0xf56/0x1280 [ 52.850134][ T21] kthread+0x3f6/0x4f0 [ 52.854189][ T21] ? rcu_lock_release+0x20/0x20 [ 52.859025][ T21] ? kthread_blkcg+0xd0/0xd0 [ 52.863602][ T21] ret_from_fork+0x1f/0x30 [ 52.868011][ T21]