Warning: Permanently added '10.128.0.193' (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 executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program [ 71.887454][ T782] [ 71.889835][ T782] ===================================================== [ 71.896758][ T782] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 71.904265][ T782] 6.8.0-syzkaller-05221-gea80e3ed09ab #0 Not tainted [ 71.910934][ T782] ----------------------------------------------------- [ 71.917940][ T782] kworker/0:2/782 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 71.925563][ T782] ffff888022c5e820 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 71.935845][ T782] [ 71.935845][ T782] and this task is already holding: [ 71.943195][ T782] ffff888014ca0018 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x6ec/0xec0 [ 71.951800][ T782] which would create a new lock dependency: [ 71.957669][ T782] (&pool->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 71.965754][ T782] [ 71.965754][ T782] but this new dependency connects a HARDIRQ-irq-safe lock: [ 71.975180][ T782] (&pool->lock){-.-.}-{2:2} [ 71.975196][ T782] [ 71.975196][ T782] ... which became HARDIRQ-irq-safe at: [ 71.987443][ T782] lock_acquire+0x1e4/0x530 [ 71.992017][ T782] _raw_spin_lock+0x2e/0x40 [ 71.996610][ T782] wq_worker_tick+0x207/0x440 [ 72.001365][ T782] scheduler_tick+0x375/0x6e0 [ 72.006120][ T782] update_process_times+0x202/0x230 [ 72.011397][ T782] tick_periodic+0x190/0x220 [ 72.016052][ T782] tick_handle_periodic+0x4a/0x160 [ 72.021224][ T782] __sysvec_apic_timer_interrupt+0x107/0x3a0 [ 72.027272][ T782] sysvec_apic_timer_interrupt+0xa1/0xc0 [ 72.032973][ T782] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 72.039021][ T782] __sanitizer_cov_trace_switch+0x6/0x120 [ 72.044812][ T782] unwind_next_frame+0xff6/0x2a00 [ 72.049918][ T782] __unwind_start+0x641/0x7c0 [ 72.054664][ T782] arch_stack_walk+0x103/0x1b0 [ 72.059493][ T782] stack_trace_save+0x118/0x1d0 [ 72.064422][ T782] save_stack+0xfb/0x1f0 [ 72.068735][ T782] __set_page_owner+0x29/0x380 [ 72.073569][ T782] post_alloc_hook+0x1ea/0x210 [ 72.078399][ T782] get_page_from_freelist+0x33ea/0x3580 [ 72.084011][ T782] __alloc_pages+0x256/0x680 [ 72.088672][ T782] alloc_pages_mpol+0x3de/0x650 [ 72.094735][ T782] __get_free_pages+0xc/0x30 [ 72.099409][ T782] kasan_populate_vmalloc_pte+0x38/0xe0 [ 72.105053][ T782] __apply_to_page_range+0x8ec/0xe40 [ 72.110412][ T782] pcpu_get_vm_areas+0x3749/0x4fb0 [ 72.115589][ T782] pcpu_create_chunk+0x69a/0xbc0 [ 72.120593][ T782] pcpu_balance_workfn+0xc4d/0xd40 [ 72.125768][ T782] process_scheduled_works+0xa00/0x1770 [ 72.131393][ T782] worker_thread+0x86d/0xd70 [ 72.136065][ T782] kthread+0x2f0/0x390 [ 72.140200][ T782] ret_from_fork+0x4b/0x80 [ 72.144683][ T782] ret_from_fork_asm+0x1a/0x30 [ 72.149517][ T782] [ 72.149517][ T782] to a HARDIRQ-irq-unsafe lock: [ 72.156533][ T782] (&htab->buckets[i].lock){+...}-{2:2} [ 72.156554][ T782] [ 72.156554][ T782] ... which became HARDIRQ-irq-unsafe at: [ 72.169941][ T782] ... [ 72.169950][ T782] lock_acquire+0x1e4/0x530 [ 72.177082][ T782] _raw_spin_lock_bh+0x35/0x50 [ 72.181914][ T782] sock_hash_free+0x164/0x820 [ 72.186656][ T782] bpf_map_free_deferred+0xe6/0x110 [ 72.191923][ T782] process_scheduled_works+0xa00/0x1770 [ 72.197533][ T782] worker_thread+0x86d/0xd70 [ 72.202189][ T782] kthread+0x2f0/0x390 [ 72.206323][ T782] ret_from_fork+0x4b/0x80 [ 72.210840][ T782] ret_from_fork_asm+0x1a/0x30 [ 72.215693][ T782] [ 72.215693][ T782] other info that might help us debug this: [ 72.215693][ T782] [ 72.225992][ T782] Possible interrupt unsafe locking scenario: [ 72.225992][ T782] [ 72.234289][ T782] CPU0 CPU1 [ 72.239639][ T782] ---- ---- [ 72.245015][ T782] lock(&htab->buckets[i].lock); [ 72.250034][ T782] local_irq_disable(); [ 72.256771][ T782] lock(&pool->lock); [ 72.263342][ T782] lock(&htab->buckets[i].lock); [ 72.270884][ T782] [ 72.274330][ T782] lock(&pool->lock); [ 72.278560][ T782] [ 72.278560][ T782] *** DEADLOCK *** [ 72.278560][ T782] [ 72.286685][ T782] 5 locks held by kworker/0:2/782: [ 72.291769][ T782] #0: ffff888014c78948 ((wq_completion)events){+.+.}-{0:0}, at: process_scheduled_works+0x8e0/0x1770 [ 72.302728][ T782] #1: ffffc90004097d00 ((work_completion)(&aux->work)){+.+.}-{0:0}, at: process_scheduled_works+0x91b/0x1770 [ 72.314380][ T782] #2: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: __queue_work+0x198/0xec0 [ 72.323595][ T782] #3: ffff888014ca0018 (&pool->lock){-.-.}-{2:2}, at: __queue_work+0x6ec/0xec0 [ 72.332621][ T782] #4: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run3+0x14a/0x460 [ 72.341995][ T782] [ 72.341995][ T782] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 72.352378][ T782] -> (&pool->lock){-.-.}-{2:2} { [ 72.357306][ T782] IN-HARDIRQ-W at: [ 72.361266][ T782] lock_acquire+0x1e4/0x530 [ 72.367396][ T782] _raw_spin_lock+0x2e/0x40 [ 72.373528][ T782] wq_worker_tick+0x207/0x440 [ 72.379833][ T782] scheduler_tick+0x375/0x6e0 [ 72.386136][ T782] update_process_times+0x202/0x230 [ 72.392962][ T782] tick_periodic+0x190/0x220 [ 72.399183][ T782] tick_handle_periodic+0x4a/0x160 [ 72.405950][ T782] __sysvec_apic_timer_interrupt+0x107/0x3a0 [ 72.413565][ T782] sysvec_apic_timer_interrupt+0xa1/0xc0 [ 72.420849][ T782] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 72.428477][ T782] __sanitizer_cov_trace_switch+0x6/0x120 [ 72.435830][ T782] unwind_next_frame+0xff6/0x2a00 [ 72.442487][ T782] __unwind_start+0x641/0x7c0 [ 72.448794][ T782] arch_stack_walk+0x103/0x1b0 [ 72.455202][ T782] stack_trace_save+0x118/0x1d0 [ 72.461696][ T782] save_stack+0xfb/0x1f0 [ 72.467579][ T782] __set_page_owner+0x29/0x380 [ 72.473975][ T782] post_alloc_hook+0x1ea/0x210 [ 72.480387][ T782] get_page_from_freelist+0x33ea/0x3580 [ 72.487566][ T782] __alloc_pages+0x256/0x680 [ 72.493787][ T782] alloc_pages_mpol+0x3de/0x650 [ 72.500272][ T782] __get_free_pages+0xc/0x30 [ 72.506496][ T782] kasan_populate_vmalloc_pte+0x38/0xe0 [ 72.513692][ T782] __apply_to_page_range+0x8ec/0xe40 [ 72.520632][ T782] pcpu_get_vm_areas+0x3749/0x4fb0 [ 72.527408][ T782] pcpu_create_chunk+0x69a/0xbc0 [ 72.533984][ T782] pcpu_balance_workfn+0xc4d/0xd40 [ 72.540729][ T782] process_scheduled_works+0xa00/0x1770 [ 72.547934][ T782] worker_thread+0x86d/0xd70 [ 72.554174][ T782] kthread+0x2f0/0x390 [ 72.559906][ T782] ret_from_fork+0x4b/0x80 [ 72.565954][ T782] ret_from_fork_asm+0x1a/0x30 [ 72.572349][ T782] IN-SOFTIRQ-W at: [ 72.576309][ T782] lock_acquire+0x1e4/0x530 [ 72.582441][ T782] _raw_spin_lock+0x2e/0x40 [ 72.588578][ T782] __queue_work+0x6ec/0xec0 [ 72.594708][ T782] call_timer_fn+0x17e/0x600 [ 72.600927][ T782] __run_timer_base+0x695/0x8e0 [ 72.607402][ T782] run_timer_softirq+0xb7/0x170 [ 72.613887][ T782] __do_softirq+0x2bc/0x943 [ 72.620018][ T782] __irq_exit_rcu+0xf2/0x1c0 [ 72.626234][ T782] irq_exit_rcu+0x9/0x30 [ 72.632100][ T782] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 72.639361][ T782] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 72.646975][ T782] default_idle+0x13/0x20 [ 72.652936][ T782] default_idle_call+0x74/0xb0 [ 72.659344][ T782] do_idle+0x22f/0x5d0 [ 72.665039][ T782] cpu_startup_entry+0x42/0x60 [ 72.671435][ T782] rest_init+0x2e0/0x300 [ 72.677325][ T782] arch_call_rest_init+0xe/0x10 [ 72.683804][ T782] start_kernel+0x47a/0x500 [ 72.689945][ T782] x86_64_start_reservations+0x2a/0x30 [ 72.697047][ T782] x86_64_start_kernel+0x99/0xa0 [ 72.703613][ T782] common_startup_64+0x13e/0x147 [ 72.710182][ T782] INITIAL USE at: [ 72.714054][ T782] lock_acquire+0x1e4/0x530 [ 72.720114][ T782] _raw_spin_lock+0x2e/0x40 [ 72.726159][ T782] __queue_work+0x6ec/0xec0 [ 72.732207][ T782] queue_work_on+0x14f/0x250 [ 72.738338][ T782] start_poll_synchronize_rcu_expedited+0xf7/0x150 [ 72.746384][ T782] rcu_init+0xea/0x140 [ 72.751998][ T782] start_kernel+0x1f7/0x500 [ 72.758045][ T782] x86_64_start_reservations+0x2a/0x30 [ 72.765049][ T782] x86_64_start_kernel+0x99/0xa0 [ 72.771531][ T782] common_startup_64+0x13e/0x147 [ 72.778013][ T782] } [ 72.780489][ T782] ... key at: [] init_worker_pool.__key+0x0/0x20 [ 72.788885][ T782] [ 72.788885][ T782] the dependencies between the lock to be acquired [ 72.788892][ T782] and HARDIRQ-irq-unsafe lock: [ 72.802405][ T782] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 72.808301][ T782] HARDIRQ-ON-W at: [ 72.812256][ T782] lock_acquire+0x1e4/0x530 [ 72.818390][ T782] _raw_spin_lock_bh+0x35/0x50 [ 72.824784][ T782] sock_hash_free+0x164/0x820 [ 72.831090][ T782] bpf_map_free_deferred+0xe6/0x110 [ 72.837919][ T782] process_scheduled_works+0xa00/0x1770 [ 72.845090][ T782] worker_thread+0x86d/0xd70 [ 72.851307][ T782] kthread+0x2f0/0x390 [ 72.857018][ T782] ret_from_fork+0x4b/0x80 [ 72.863094][ T782] ret_from_fork_asm+0x1a/0x30 [ 72.869534][ T782] INITIAL USE at: [ 72.873586][ T782] lock_acquire+0x1e4/0x530 [ 72.879635][ T782] _raw_spin_lock_bh+0x35/0x50 [ 72.885939][ T782] sock_hash_free+0x164/0x820 [ 72.892154][ T782] bpf_map_free_deferred+0xe6/0x110 [ 72.898894][ T782] process_scheduled_works+0xa00/0x1770 [ 72.905981][ T782] worker_thread+0x86d/0xd70 [ 72.912111][ T782] kthread+0x2f0/0x390 [ 72.917721][ T782] ret_from_fork+0x4b/0x80 [ 72.923682][ T782] ret_from_fork_asm+0x1a/0x30 [ 72.929988][ T782] } [ 72.932463][ T782] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 72.940774][ T782] ... acquired at: [ 72.944557][ T782] lock_acquire+0x1e4/0x530 [ 72.949215][ T782] _raw_spin_lock_bh+0x35/0x50 [ 72.954150][ T782] sock_hash_delete_elem+0xb0/0x300 [ 72.959519][ T782] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 72.965133][ T782] bpf_trace_run3+0x238/0x460 [ 72.969966][ T782] __queue_work+0xe5b/0xec0 [ 72.974620][ T782] queue_work_on+0x14f/0x250 [ 72.979361][ T782] bpf_prog_free_deferred+0x21d/0x710 [ 72.984885][ T782] process_scheduled_works+0xa00/0x1770 [ 72.990581][ T782] worker_thread+0x86d/0xd70 [ 72.995437][ T782] kthread+0x2f0/0x390 [ 72.999658][ T782] ret_from_fork+0x4b/0x80 [ 73.004227][ T782] ret_from_fork_asm+0x1a/0x30 [ 73.009145][ T782] [ 73.011465][ T782] [ 73.011465][ T782] stack backtrace: [ 73.017345][ T782] CPU: 0 PID: 782 Comm: kworker/0:2 Not tainted 6.8.0-syzkaller-05221-gea80e3ed09ab #0 [ 73.027040][ T782] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 73.037164][ T782] Workqueue: events bpf_prog_free_deferred [ 73.042977][ T782] Call Trace: [ 73.046242][ T782] [ 73.049156][ T782] dump_stack_lvl+0x1e7/0x2e0 [ 73.053827][ T782] ? __pfx_dump_stack_lvl+0x10/0x10 [ 73.059004][ T782] ? __pfx__printk+0x10/0x10 [ 73.063577][ T782] ? print_shortest_lock_dependencies+0xf2/0x160 [ 73.069891][ T782] validate_chain+0x4dc7/0x58e0 [ 73.074746][ T782] ? __pfx_validate_chain+0x10/0x10 [ 73.079930][ T782] ? __pfx_validate_chain+0x10/0x10 [ 73.085110][ T782] ? __pfx_validate_chain+0x10/0x10 [ 73.090310][ T782] ? register_lock_class+0x102/0x980 [ 73.095581][ T782] ? __pfx_register_lock_class+0x10/0x10 [ 73.101195][ T782] ? __pfx_validate_chain+0x10/0x10 [ 73.106377][ T782] ? mark_lock+0x9a/0x350 [ 73.110689][ T782] __lock_acquire+0x1346/0x1fd0 [ 73.115538][ T782] lock_acquire+0x1e4/0x530 [ 73.120022][ T782] ? sock_hash_delete_elem+0xb0/0x300 [ 73.125400][ T782] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 73.131101][ T782] ? __pfx_lock_acquire+0x10/0x10 [ 73.136123][ T782] ? sock_hash_delete_elem+0xb0/0x300 [ 73.141586][ T782] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 73.147371][ T782] ? __pfx_lock_acquire+0x10/0x10 [ 73.152464][ T782] ? sock_hash_delete_elem+0xb0/0x300 [ 73.157819][ T782] _raw_spin_lock_bh+0x35/0x50 [ 73.162567][ T782] ? sock_hash_delete_elem+0xb0/0x300 [ 73.167922][ T782] sock_hash_delete_elem+0xb0/0x300 [ 73.173104][ T782] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 73.178544][ T782] bpf_trace_run3+0x238/0x460 [ 73.183224][ T782] ? bpf_trace_run3+0x14a/0x460 [ 73.188050][ T782] ? __pfx_bpf_trace_run3+0x10/0x10 [ 73.193234][ T782] __queue_work+0xe5b/0xec0 [ 73.197719][ T782] ? __queue_work+0x198/0xec0 [ 73.202378][ T782] ? rcu_is_watching+0x15/0xb0 [ 73.207125][ T782] queue_work_on+0x14f/0x250 [ 73.211699][ T782] ? __pfx_queue_work_on+0x10/0x10 [ 73.216798][ T782] ? bpf_map_put+0x23d/0x380 [ 73.221374][ T782] bpf_prog_free_deferred+0x21d/0x710 [ 73.226754][ T782] ? process_scheduled_works+0x91b/0x1770 [ 73.232453][ T782] process_scheduled_works+0xa00/0x1770 [ 73.237985][ T782] ? __pfx_process_scheduled_works+0x10/0x10 [ 73.243950][ T782] ? assign_work+0x364/0x3d0 [ 73.248525][ T782] worker_thread+0x86d/0xd70 [ 73.253099][ T782] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 73.258978][ T782] ? __kthread_parkme+0x169/0x1d0 [ 73.263986][ T782] ? __pfx_worker_thread+0x10/0x10 [ 73.269078][ T782] kthread+0x2f0/0x390 [ 73.273126][ T782] ? __pfx_worker_thread+0x10/0x10 [ 73.278214][ T782] ? __pfx_kthread+0x10/0x10 [ 73.282784][ T782] ret_from_fork+0x4b/0x80 [ 73.287184][ T782] ? __pfx_kthread+0x10/0x10 [ 73.291843][ T782] ret_from_fork_asm+0x1a/0x30 [ 73.296595][ T782]