Warning: Permanently added '10.128.1.117' (ED25519) to the list of known hosts. executing program executing program executing program [ 69.044026][ T1053] [ 69.046401][ T1053] ===================================================== [ 69.053325][ T1053] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 69.060774][ T1053] 6.8.0-syzkaller-05212-g4c8644f86c85 #0 Not tainted [ 69.067463][ T1053] ----------------------------------------------------- [ 69.074409][ T1053] kworker/u8:6/1053 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 69.082223][ T1053] ffff888021b68578 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 69.092660][ T1053] [ 69.092660][ T1053] and this task is already holding: [ 69.100027][ T1053] ffff8880b943e158 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 [ 69.109511][ T1053] which would create a new lock dependency: [ 69.115390][ T1053] (&rq->__lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 69.123570][ T1053] [ 69.123570][ T1053] but this new dependency connects a HARDIRQ-irq-safe lock: [ 69.133008][ T1053] (&rq->__lock){-.-.}-{2:2} [ 69.133030][ T1053] [ 69.133030][ T1053] ... which became HARDIRQ-irq-safe at: [ 69.145315][ T1053] lock_acquire+0x1e4/0x530 [ 69.149935][ T1053] _raw_spin_lock_nested+0x31/0x40 [ 69.155146][ T1053] raw_spin_rq_lock_nested+0x2a/0x140 [ 69.160607][ T1053] scheduler_tick+0xa1/0x6e0 [ 69.165281][ T1053] update_process_times+0x202/0x230 [ 69.170565][ T1053] tick_periodic+0x190/0x220 [ 69.175248][ T1053] tick_handle_periodic+0x4a/0x160 [ 69.180440][ T1053] timer_interrupt+0x5c/0x70 [ 69.185121][ T1053] __handle_irq_event_percpu+0x28c/0xa30 [ 69.190840][ T1053] handle_irq_event+0x89/0x1f0 [ 69.195688][ T1053] handle_edge_irq+0x25f/0xc20 [ 69.200534][ T1053] __common_interrupt+0x13a/0x230 [ 69.205645][ T1053] common_interrupt+0xa5/0xd0 [ 69.210411][ T1053] asm_common_interrupt+0x26/0x40 [ 69.215524][ T1053] console_flush_all+0x9cd/0xec0 [ 69.220554][ T1053] console_unlock+0x13b/0x4d0 [ 69.225314][ T1053] vprintk_emit+0x509/0x720 [ 69.229925][ T1053] _printk+0xd5/0x120 [ 69.234008][ T1053] __clocksource_register_scale+0xb8/0x660 [ 69.239898][ T1053] tsc_init+0x1a9/0x1d0 [ 69.244169][ T1053] x86_late_time_init+0x94/0xc0 [ 69.249106][ T1053] start_kernel+0x3f3/0x500 [ 69.253687][ T1053] x86_64_start_reservations+0x2a/0x30 [ 69.259405][ T1053] x86_64_start_kernel+0x99/0xa0 [ 69.264438][ T1053] common_startup_64+0x13e/0x147 [ 69.269497][ T1053] [ 69.269497][ T1053] to a HARDIRQ-irq-unsafe lock: [ 69.276506][ T1053] (&htab->buckets[i].lock){+...}-{2:2} [ 69.276530][ T1053] [ 69.276530][ T1053] ... which became HARDIRQ-irq-unsafe at: [ 69.289941][ T1053] ... [ 69.289952][ T1053] lock_acquire+0x1e4/0x530 [ 69.297150][ T1053] _raw_spin_lock_bh+0x35/0x50 [ 69.302019][ T1053] sock_hash_free+0x164/0x820 [ 69.306787][ T1053] bpf_map_free_deferred+0xe6/0x110 [ 69.312067][ T1053] process_scheduled_works+0xa00/0x1770 [ 69.317781][ T1053] worker_thread+0x86d/0xd70 [ 69.322453][ T1053] kthread+0x2f0/0x390 [ 69.326608][ T1053] ret_from_fork+0x4b/0x80 [ 69.331116][ T1053] ret_from_fork_asm+0x1a/0x30 [ 69.335979][ T1053] [ 69.335979][ T1053] other info that might help us debug this: [ 69.335979][ T1053] [ 69.346282][ T1053] Possible interrupt unsafe locking scenario: [ 69.346282][ T1053] [ 69.354589][ T1053] CPU0 CPU1 [ 69.359965][ T1053] ---- ---- [ 69.365324][ T1053] lock(&htab->buckets[i].lock); [ 69.370342][ T1053] local_irq_disable(); [ 69.377082][ T1053] lock(&rq->__lock); [ 69.383662][ T1053] lock(&htab->buckets[i].lock); [ 69.391196][ T1053] [ 69.394655][ T1053] lock(&rq->__lock); [ 69.398891][ T1053] [ 69.398891][ T1053] *** DEADLOCK *** [ 69.398891][ T1053] [ 69.407021][ T1053] 6 locks held by kworker/u8:6/1053: [ 69.412292][ T1053] #0: ffff888014c81148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x1770 [ 69.423975][ T1053] #1: ffffc90004a77d00 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x1770 [ 69.435632][ T1053] #2: ffffffff8e136cb8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x39a/0x820 [ 69.446598][ T1053] #3: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: newidle_balance+0x2a8/0x1080 [ 69.456166][ T1053] #4: ffff8880b943e158 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 [ 69.466090][ T1053] #5: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x114/0x420 [ 69.475580][ T1053] [ 69.475580][ T1053] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 69.485978][ T1053] -> (&rq->__lock){-.-.}-{2:2} { [ 69.490925][ T1053] IN-HARDIRQ-W at: [ 69.494935][ T1053] lock_acquire+0x1e4/0x530 [ 69.501104][ T1053] _raw_spin_lock_nested+0x31/0x40 [ 69.508648][ T1053] raw_spin_rq_lock_nested+0x2a/0x140 [ 69.515674][ T1053] scheduler_tick+0xa1/0x6e0 [ 69.521999][ T1053] update_process_times+0x202/0x230 [ 69.528858][ T1053] tick_periodic+0x190/0x220 [ 69.535150][ T1053] tick_handle_periodic+0x4a/0x160 [ 69.541907][ T1053] timer_interrupt+0x5c/0x70 [ 69.548158][ T1053] __handle_irq_event_percpu+0x28c/0xa30 [ 69.555441][ T1053] handle_irq_event+0x89/0x1f0 [ 69.561852][ T1053] handle_edge_irq+0x25f/0xc20 [ 69.568265][ T1053] __common_interrupt+0x13a/0x230 [ 69.574945][ T1053] common_interrupt+0xa5/0xd0 [ 69.581275][ T1053] asm_common_interrupt+0x26/0x40 [ 69.587959][ T1053] console_flush_all+0x9cd/0xec0 [ 69.594562][ T1053] console_unlock+0x13b/0x4d0 [ 69.600896][ T1053] vprintk_emit+0x509/0x720 [ 69.607147][ T1053] _printk+0xd5/0x120 [ 69.612778][ T1053] __clocksource_register_scale+0xb8/0x660 [ 69.620234][ T1053] tsc_init+0x1a9/0x1d0 [ 69.626058][ T1053] x86_late_time_init+0x94/0xc0 [ 69.632602][ T1053] start_kernel+0x3f3/0x500 [ 69.638766][ T1053] x86_64_start_reservations+0x2a/0x30 [ 69.645895][ T1053] x86_64_start_kernel+0x99/0xa0 [ 69.652496][ T1053] common_startup_64+0x13e/0x147 [ 69.659093][ T1053] IN-SOFTIRQ-W at: [ 69.663077][ T1053] lock_acquire+0x1e4/0x530 [ 69.669226][ T1053] _raw_spin_lock_nested+0x31/0x40 [ 69.675992][ T1053] raw_spin_rq_lock_nested+0x2a/0x140 [ 69.683020][ T1053] try_to_wake_up+0x7d3/0x1470 [ 69.689449][ T1053] kick_pool+0x41b/0x5c0 [ 69.695352][ T1053] __queue_work+0xc20/0xec0 [ 69.701644][ T1053] call_timer_fn+0x17e/0x600 [ 69.707904][ T1053] __run_timer_base+0x695/0x8e0 [ 69.714410][ T1053] run_timer_softirq+0xb7/0x170 [ 69.720919][ T1053] __do_softirq+0x2bc/0x943 [ 69.727080][ T1053] __irq_exit_rcu+0xf2/0x1c0 [ 69.733500][ T1053] irq_exit_rcu+0x9/0x30 [ 69.739424][ T1053] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 69.746721][ T1053] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 69.754370][ T1053] default_idle+0x13/0x20 [ 69.760352][ T1053] default_idle_call+0x74/0xb0 [ 69.766766][ T1053] do_idle+0x22f/0x5d0 [ 69.772478][ T1053] cpu_startup_entry+0x42/0x60 [ 69.778889][ T1053] rest_init+0x2e0/0x300 [ 69.784829][ T1053] arch_call_rest_init+0xe/0x10 [ 69.791323][ T1053] start_kernel+0x47a/0x500 [ 69.797468][ T1053] x86_64_start_reservations+0x2a/0x30 [ 69.804578][ T1053] x86_64_start_kernel+0x99/0xa0 [ 69.811165][ T1053] common_startup_64+0x13e/0x147 [ 69.817844][ T1053] INITIAL USE at: [ 69.821788][ T1053] lock_acquire+0x1e4/0x530 [ 69.827866][ T1053] _raw_spin_lock_nested+0x31/0x40 [ 69.834680][ T1053] raw_spin_rq_lock_nested+0x2a/0x140 [ 69.841673][ T1053] rq_attach_root+0xee/0x540 [ 69.847862][ T1053] sched_init+0x64e/0xc30 [ 69.853768][ T1053] start_kernel+0x1ab/0x500 [ 69.859859][ T1053] x86_64_start_reservations+0x2a/0x30 [ 69.866883][ T1053] x86_64_start_kernel+0x99/0xa0 [ 69.873383][ T1053] common_startup_64+0x13e/0x147 [ 69.879899][ T1053] } [ 69.882415][ T1053] ... key at: [] sched_init.__key+0x0/0x20 [ 69.890592][ T1053] [ 69.890592][ T1053] the dependencies between the lock to be acquired [ 69.890601][ T1053] and HARDIRQ-irq-unsafe lock: [ 69.904563][ T1053] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 69.910472][ T1053] HARDIRQ-ON-W at: [ 69.914444][ T1053] lock_acquire+0x1e4/0x530 [ 69.920596][ T1053] _raw_spin_lock_bh+0x35/0x50 [ 69.927010][ T1053] sock_hash_free+0x164/0x820 [ 69.933334][ T1053] bpf_map_free_deferred+0xe6/0x110 [ 69.940199][ T1053] process_scheduled_works+0xa00/0x1770 [ 69.947433][ T1053] worker_thread+0x86d/0xd70 [ 69.953679][ T1053] kthread+0x2f0/0x390 [ 69.959485][ T1053] ret_from_fork+0x4b/0x80 [ 69.965555][ T1053] ret_from_fork_asm+0x1a/0x30 [ 69.972069][ T1053] INITIAL USE at: [ 69.975961][ T1053] lock_acquire+0x1e4/0x530 [ 69.982023][ T1053] _raw_spin_lock_bh+0x35/0x50 [ 69.988345][ T1053] sock_hash_free+0x164/0x820 [ 69.994581][ T1053] bpf_map_free_deferred+0xe6/0x110 [ 70.001356][ T1053] process_scheduled_works+0xa00/0x1770 [ 70.008550][ T1053] worker_thread+0x86d/0xd70 [ 70.014702][ T1053] kthread+0x2f0/0x390 [ 70.020340][ T1053] ret_from_fork+0x4b/0x80 [ 70.026319][ T1053] ret_from_fork_asm+0x1a/0x30 [ 70.032649][ T1053] } [ 70.035165][ T1053] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 70.043495][ T1053] ... acquired at: [ 70.047291][ T1053] lock_acquire+0x1e4/0x530 [ 70.051963][ T1053] _raw_spin_lock_bh+0x35/0x50 [ 70.056895][ T1053] sock_hash_delete_elem+0xb0/0x300 [ 70.062263][ T1053] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 70.067896][ T1053] bpf_trace_run2+0x204/0x420 [ 70.072745][ T1053] set_task_cpu+0x53d/0x5b0 [ 70.077435][ T1053] load_balance+0x60f5/0x8840 [ 70.082279][ T1053] newidle_balance+0x6be/0x1080 [ 70.087316][ T1053] pick_next_task_fair+0x27a/0xde0 [ 70.092597][ T1053] __pick_next_task+0xb0/0x2c0 [ 70.097535][ T1053] __schedule+0x726/0x4a20 [ 70.102124][ T1053] schedule+0x14b/0x320 [ 70.106449][ T1053] synchronize_rcu_expedited+0x672/0x820 [ 70.112251][ T1053] synchronize_rcu+0x136/0x3e0 [ 70.117183][ T1053] sock_hash_free+0x76e/0x820 [ 70.122028][ T1053] bpf_map_free_deferred+0xe6/0x110 [ 70.127391][ T1053] process_scheduled_works+0xa00/0x1770 [ 70.133110][ T1053] worker_thread+0x86d/0xd70 [ 70.137871][ T1053] kthread+0x2f0/0x390 [ 70.142131][ T1053] ret_from_fork+0x4b/0x80 [ 70.146895][ T1053] ret_from_fork_asm+0x1a/0x30 [ 70.151837][ T1053] [ 70.154170][ T1053] [ 70.154170][ T1053] stack backtrace: [ 70.160050][ T1053] CPU: 1 PID: 1053 Comm: kworker/u8:6 Not tainted 6.8.0-syzkaller-05212-g4c8644f86c85 #0 [ 70.169877][ T1053] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 70.179965][ T1053] Workqueue: events_unbound bpf_map_free_deferred [ 70.186394][ T1053] Call Trace: [ 70.189669][ T1053] [ 70.192597][ T1053] dump_stack_lvl+0x1e7/0x2e0 [ 70.197308][ T1053] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.202514][ T1053] ? __pfx__printk+0x10/0x10 [ 70.207193][ T1053] ? print_shortest_lock_dependencies+0xf2/0x160 [ 70.213548][ T1053] validate_chain+0x4dc7/0x58e0 [ 70.218497][ T1053] ? __pfx_validate_chain+0x10/0x10 [ 70.223713][ T1053] ? __pfx_validate_chain+0x10/0x10 [ 70.228910][ T1053] ? __pfx_validate_chain+0x10/0x10 [ 70.234108][ T1053] ? register_lock_class+0x102/0x980 [ 70.239400][ T1053] ? __pfx_register_lock_class+0x10/0x10 [ 70.245029][ T1053] ? __pfx_validate_chain+0x10/0x10 [ 70.250239][ T1053] ? mark_lock+0x9a/0x350 [ 70.254582][ T1053] __lock_acquire+0x1346/0x1fd0 [ 70.259450][ T1053] lock_acquire+0x1e4/0x530 [ 70.263948][ T1053] ? sock_hash_delete_elem+0xb0/0x300 [ 70.269334][ T1053] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 70.275057][ T1053] ? __pfx_lock_acquire+0x10/0x10 [ 70.280084][ T1053] ? sock_hash_delete_elem+0xb0/0x300 [ 70.285455][ T1053] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 70.291277][ T1053] ? __pfx_lock_acquire+0x10/0x10 [ 70.296297][ T1053] ? cpufreq_update_util+0x94/0x250 [ 70.301520][ T1053] ? sock_hash_delete_elem+0xb0/0x300 [ 70.306932][ T1053] _raw_spin_lock_bh+0x35/0x50 [ 70.311707][ T1053] ? sock_hash_delete_elem+0xb0/0x300 [ 70.317085][ T1053] sock_hash_delete_elem+0xb0/0x300 [ 70.322286][ T1053] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 70.327763][ T1053] bpf_trace_run2+0x204/0x420 [ 70.332539][ T1053] ? bpf_trace_run2+0x114/0x420 [ 70.337400][ T1053] ? __pfx_bpf_trace_run2+0x10/0x10 [ 70.342608][ T1053] set_task_cpu+0x53d/0x5b0 [ 70.347115][ T1053] load_balance+0x60f5/0x8840 [ 70.351807][ T1053] ? hlock_conflict+0x59/0x1e0 [ 70.356613][ T1053] ? __pfx_load_balance+0x10/0x10 [ 70.361646][ T1053] ? rcu_read_lock_sched_held+0x8d/0x130 [ 70.367302][ T1053] ? __lock_acquire+0x1346/0x1fd0 [ 70.372351][ T1053] ? __pfx_lock_acquire+0x10/0x10 [ 70.377373][ T1053] ? __pfx_sched_clock_cpu+0x10/0x10 [ 70.382665][ T1053] newidle_balance+0x6be/0x1080 [ 70.387521][ T1053] ? newidle_balance+0x2a8/0x1080 [ 70.392546][ T1053] ? __pfx_newidle_balance+0x10/0x10 [ 70.397838][ T1053] pick_next_task_fair+0x27a/0xde0 [ 70.402956][ T1053] __pick_next_task+0xb0/0x2c0 [ 70.407726][ T1053] __schedule+0x726/0x4a20 [ 70.412157][ T1053] ? __pfx___schedule+0x10/0x10 [ 70.417006][ T1053] ? schedule+0x90/0x320 [ 70.421246][ T1053] ? __pfx_lock_release+0x10/0x10 [ 70.426270][ T1053] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 70.432169][ T1053] ? kthread_data+0x52/0xd0 [ 70.436673][ T1053] ? wq_worker_sleeping+0x66/0x240 [ 70.441785][ T1053] ? schedule+0x90/0x320 [ 70.446049][ T1053] schedule+0x14b/0x320 [ 70.450205][ T1053] synchronize_rcu_expedited+0x672/0x820 [ 70.455862][ T1053] ? __pfx_synchronize_rcu_expedited+0x10/0x10 [ 70.462138][ T1053] ? look_up_lock_class+0x77/0x160 [ 70.467269][ T1053] ? register_lock_class+0x102/0x980 [ 70.472549][ T1053] ? mark_lock+0x9a/0x350 [ 70.476882][ T1053] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 70.482169][ T1053] ? __lock_acquire+0x1346/0x1fd0 [ 70.487193][ T1053] ? __pfx___might_resched+0x10/0x10 [ 70.492494][ T1053] ? __pfx_autoremove_wake_function+0x10/0x10 [ 70.498577][ T1053] synchronize_rcu+0x136/0x3e0 [ 70.503353][ T1053] ? __pfx_synchronize_rcu+0x10/0x10 [ 70.508712][ T1053] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 70.515049][ T1053] ? __local_bh_enable_ip+0x168/0x200 [ 70.520423][ T1053] ? lockdep_hardirqs_on+0x99/0x150 [ 70.525725][ T1053] ? __local_bh_enable_ip+0x168/0x200 [ 70.531095][ T1053] ? sock_hash_free+0x339/0x820 [ 70.535954][ T1053] ? __pfx___local_bh_enable_ip+0x10/0x10 [ 70.541673][ T1053] ? sock_hash_free+0x164/0x820 [ 70.546606][ T1053] sock_hash_free+0x76e/0x820 [ 70.551280][ T1053] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 70.557264][ T1053] ? __pfx_sock_hash_free+0x10/0x10 [ 70.562568][ T1053] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 70.568905][ T1053] bpf_map_free_deferred+0xe6/0x110 [ 70.574101][ T1053] ? process_scheduled_works+0x91b/0x1770 [ 70.579821][ T1053] process_scheduled_works+0xa00/0x1770 [ 70.585387][ T1053] ? __pfx_process_scheduled_works+0x10/0x10 [ 70.591416][ T1053] ? assign_work+0x364/0x3d0 [ 70.596007][ T1053] worker_thread+0x86d/0xd70 [ 70.600601][ T1053] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 70.606496][ T1053] ? __kthread_parkme+0x169/0x1d0 [ 70.611519][ T1053] ? __pfx_worker_thread+0x10/0x10 [ 70.616646][ T1053] kthread+0x2f0/0x390 [ 70.620724][ T1053] ? __pfx_worker_thread+0x10/0x10 [ 70.625847][ T1053] ? __pfx_kthread+0x10/0x10 [ 70.630433][ T1053] ret_from_fork+0x4b/0x80 [ 70.634860][ T1053] ? __pfx_kthread+0x10/0x10 [ 70.639447][ T1053] ret_from_fork_asm+0x1a/0x30 [ 70.644221][ T1053]