Warning: Permanently added '10.128.0.67' (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 [ 58.393493][ T18] [ 58.396110][ T18] ===================================================== [ 58.403080][ T18] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 58.410635][ T18] 6.8.0-syzkaller-05243-g14bb1e8c8d4a #0 Not tainted [ 58.417293][ T18] ----------------------------------------------------- [ 58.424293][ T18] rcu_exp_gp_kthr/18 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 58.432169][ T18] ffff88802a4a00f8 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 58.442452][ T18] [ 58.442452][ T18] and this task is already holding: [ 58.449886][ T18] ffff8880b952a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 58.458939][ T18] which would create a new lock dependency: [ 58.464821][ T18] (&base->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 58.472992][ T18] [ 58.472992][ T18] but this new dependency connects a HARDIRQ-irq-safe lock: [ 58.482514][ T18] (&base->lock){-.-.}-{2:2} [ 58.482535][ T18] [ 58.482535][ T18] ... which became HARDIRQ-irq-safe at: [ 58.495277][ T18] lock_acquire+0x1e4/0x530 [ 58.500125][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 58.505698][ T18] lock_timer_base+0x112/0x240 [ 58.510564][ T18] add_timer_on+0x1e5/0x5c0 [ 58.515235][ T18] handle_irq_event+0xad/0x1f0 [ 58.520358][ T18] handle_edge_irq+0x25f/0xc20 [ 58.525323][ T18] __common_interrupt+0x13a/0x230 [ 58.530647][ T18] common_interrupt+0xa5/0xd0 [ 58.535413][ T18] asm_common_interrupt+0x26/0x40 [ 58.540796][ T18] lock_acquire+0x25b/0x530 [ 58.545482][ T18] __virt_addr_valid+0x1a0/0x520 [ 58.550512][ T18] free_pages+0x15/0x50 [ 58.554764][ T18] stack_depot_save_flags+0x38f/0x860 [ 58.560324][ T18] kasan_save_track+0x51/0x80 [ 58.565211][ T18] __kasan_slab_alloc+0x66/0x80 [ 58.570154][ T18] kmem_cache_alloc_node+0x192/0x380 [ 58.575524][ T18] alloc_vmap_area+0x6aa/0x1c10 [ 58.580477][ T18] __get_vm_area_node+0x16e/0x370 [ 58.585587][ T18] __vmalloc_node_range+0x3df/0x14a0 [ 58.590958][ T18] vzalloc_node+0x7e/0x90 [ 58.595383][ T18] gen_pool_add_owner+0x8b/0x290 [ 58.600418][ T18] mce_gen_pool_init+0x66/0xb0 [ 58.605347][ T18] mcheck_cpu_init+0xb7f/0x1200 [ 58.610279][ T18] identify_cpu+0x1939/0x3280 [ 58.615299][ T18] identify_boot_cpu+0xd/0xe0 [ 58.620054][ T18] arch_cpu_finalize_init+0x9/0xa0 [ 58.625251][ T18] start_kernel+0x402/0x500 [ 58.629836][ T18] x86_64_start_reservations+0x2a/0x30 [ 58.635372][ T18] x86_64_start_kernel+0x99/0xa0 [ 58.640394][ T18] common_startup_64+0x13e/0x147 [ 58.645408][ T18] [ 58.645408][ T18] to a HARDIRQ-irq-unsafe lock: [ 58.652413][ T18] (&htab->buckets[i].lock){+...}-{2:2} [ 58.652436][ T18] [ 58.652436][ T18] ... which became HARDIRQ-irq-unsafe at: [ 58.665911][ T18] ... [ 58.665917][ T18] lock_acquire+0x1e4/0x530 [ 58.673233][ T18] _raw_spin_lock_bh+0x35/0x50 [ 58.678077][ T18] sock_hash_free+0x164/0x820 [ 58.682915][ T18] bpf_map_free_deferred+0xe6/0x110 [ 58.688189][ T18] process_scheduled_works+0xa00/0x1770 [ 58.693811][ T18] worker_thread+0x86d/0xd70 [ 58.698480][ T18] kthread+0x2f0/0x390 [ 58.702692][ T18] ret_from_fork+0x4b/0x80 [ 58.707196][ T18] ret_from_fork_asm+0x1a/0x30 [ 58.712039][ T18] [ 58.712039][ T18] other info that might help us debug this: [ 58.712039][ T18] [ 58.722259][ T18] Possible interrupt unsafe locking scenario: [ 58.722259][ T18] [ 58.730582][ T18] CPU0 CPU1 [ 58.735963][ T18] ---- ---- [ 58.741309][ T18] lock(&htab->buckets[i].lock); [ 58.746328][ T18] local_irq_disable(); [ 58.753064][ T18] lock(&base->lock); [ 58.759642][ T18] lock(&htab->buckets[i].lock); [ 58.767169][ T18] [ 58.770625][ T18] lock(&base->lock); [ 58.774883][ T18] [ 58.774883][ T18] *** DEADLOCK *** [ 58.774883][ T18] [ 58.783023][ T18] 2 locks held by rcu_exp_gp_kthr/18: [ 58.788379][ T18] #0: ffff8880b952a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 58.797694][ T18] #1: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x1fc/0x530 [ 58.807079][ T18] [ 58.807079][ T18] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 58.817476][ T18] -> (&base->lock){-.-.}-{2:2} { [ 58.822505][ T18] IN-HARDIRQ-W at: [ 58.826470][ T18] lock_acquire+0x1e4/0x530 [ 58.832612][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 58.839713][ T18] lock_timer_base+0x112/0x240 [ 58.846207][ T18] add_timer_on+0x1e5/0x5c0 [ 58.852352][ T18] handle_irq_event+0xad/0x1f0 [ 58.858848][ T18] handle_edge_irq+0x25f/0xc20 [ 58.865253][ T18] __common_interrupt+0x13a/0x230 [ 58.871918][ T18] common_interrupt+0xa5/0xd0 [ 58.878246][ T18] asm_common_interrupt+0x26/0x40 [ 58.884936][ T18] lock_acquire+0x25b/0x530 [ 58.891100][ T18] __virt_addr_valid+0x1a0/0x520 [ 58.897769][ T18] free_pages+0x15/0x50 [ 58.903564][ T18] stack_depot_save_flags+0x38f/0x860 [ 58.910571][ T18] kasan_save_track+0x51/0x80 [ 58.916905][ T18] __kasan_slab_alloc+0x66/0x80 [ 58.923396][ T18] kmem_cache_alloc_node+0x192/0x380 [ 58.930497][ T18] alloc_vmap_area+0x6aa/0x1c10 [ 58.936982][ T18] __get_vm_area_node+0x16e/0x370 [ 58.943641][ T18] __vmalloc_node_range+0x3df/0x14a0 [ 58.950568][ T18] vzalloc_node+0x7e/0x90 [ 58.956536][ T18] gen_pool_add_owner+0x8b/0x290 [ 58.963289][ T18] mce_gen_pool_init+0x66/0xb0 [ 58.969690][ T18] mcheck_cpu_init+0xb7f/0x1200 [ 58.976190][ T18] identify_cpu+0x1939/0x3280 [ 58.982522][ T18] identify_boot_cpu+0xd/0xe0 [ 58.988879][ T18] arch_cpu_finalize_init+0x9/0xa0 [ 58.995660][ T18] start_kernel+0x402/0x500 [ 59.001800][ T18] x86_64_start_reservations+0x2a/0x30 [ 59.008903][ T18] x86_64_start_kernel+0x99/0xa0 [ 59.015656][ T18] common_startup_64+0x13e/0x147 [ 59.022251][ T18] IN-SOFTIRQ-W at: [ 59.026260][ T18] lock_acquire+0x1e4/0x530 [ 59.032423][ T18] _raw_spin_lock_irq+0xd3/0x120 [ 59.039007][ T18] __run_timer_base+0x103/0x8e0 [ 59.045495][ T18] run_timer_softirq+0x67/0x170 [ 59.051977][ T18] __do_softirq+0x2be/0x943 [ 59.058119][ T18] __irq_exit_rcu+0xf2/0x1c0 [ 59.064345][ T18] irq_exit_rcu+0x9/0x30 [ 59.070220][ T18] common_interrupt+0xaa/0xd0 [ 59.076548][ T18] asm_common_interrupt+0x26/0x40 [ 59.083210][ T18] console_flush_all+0x9cd/0xec0 [ 59.089795][ T18] console_unlock+0x13b/0x4d0 [ 59.096115][ T18] vprintk_emit+0x509/0x720 [ 59.102252][ T18] _printk+0xd5/0x120 [ 59.107959][ T18] spectre_v2_select_mitigation+0x68f/0x8f0 [ 59.115490][ T18] cpu_select_mitigations+0x41/0xa0 [ 59.122325][ T18] arch_cpu_finalize_init+0x20/0xa0 [ 59.129182][ T18] start_kernel+0x402/0x500 [ 59.135336][ T18] x86_64_start_reservations+0x2a/0x30 [ 59.142449][ T18] x86_64_start_kernel+0x99/0xa0 [ 59.149040][ T18] common_startup_64+0x13e/0x147 [ 59.155930][ T18] INITIAL USE at: [ 59.159816][ T18] lock_acquire+0x1e4/0x530 [ 59.166051][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 59.172980][ T18] lock_timer_base+0x112/0x240 [ 59.179312][ T18] __mod_timer+0x1ca/0xeb0 [ 59.185301][ T18] queue_delayed_work_on+0x15a/0x260 [ 59.192651][ T18] crng_reseed+0xe7/0x220 [ 59.198541][ T18] random_init+0x1a9/0x300 [ 59.204619][ T18] start_kernel+0x253/0x500 [ 59.210762][ T18] x86_64_start_reservations+0x2a/0x30 [ 59.217773][ T18] x86_64_start_kernel+0x99/0xa0 [ 59.224269][ T18] common_startup_64+0x13e/0x147 [ 59.230763][ T18] } [ 59.233247][ T18] ... key at: [] init_timer_cpu.__key+0x0/0x20 [ 59.241568][ T18] [ 59.241568][ T18] the dependencies between the lock to be acquired [ 59.241576][ T18] and HARDIRQ-irq-unsafe lock: [ 59.255071][ T18] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 59.260969][ T18] HARDIRQ-ON-W at: [ 59.264940][ T18] lock_acquire+0x1e4/0x530 [ 59.271104][ T18] _raw_spin_lock_bh+0x35/0x50 [ 59.277533][ T18] sock_hash_free+0x164/0x820 [ 59.283859][ T18] bpf_map_free_deferred+0xe6/0x110 [ 59.290695][ T18] process_scheduled_works+0xa00/0x1770 [ 59.297966][ T18] worker_thread+0x86d/0xd70 [ 59.304288][ T18] kthread+0x2f0/0x390 [ 59.310082][ T18] ret_from_fork+0x4b/0x80 [ 59.316143][ T18] ret_from_fork_asm+0x1a/0x30 [ 59.322551][ T18] INITIAL USE at: [ 59.326431][ T18] lock_acquire+0x1e4/0x530 [ 59.332494][ T18] _raw_spin_lock_bh+0x35/0x50 [ 59.338808][ T18] sock_hash_free+0x164/0x820 [ 59.345124][ T18] bpf_map_free_deferred+0xe6/0x110 [ 59.351966][ T18] process_scheduled_works+0xa00/0x1770 [ 59.359073][ T18] worker_thread+0x86d/0xd70 [ 59.365221][ T18] kthread+0x2f0/0x390 [ 59.370934][ T18] ret_from_fork+0x4b/0x80 [ 59.377001][ T18] ret_from_fork_asm+0x1a/0x30 [ 59.383321][ T18] } [ 59.385806][ T18] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 59.394124][ T18] ... acquired at: [ 59.397915][ T18] lock_acquire+0x1e4/0x530 [ 59.402592][ T18] _raw_spin_lock_bh+0x35/0x50 [ 59.407544][ T18] sock_hash_delete_elem+0xb0/0x300 [ 59.412922][ T18] bpf_prog_e2683766ceb58551+0x45/0x4e [ 59.418570][ T18] bpf_trace_run2+0x2ec/0x530 [ 59.423416][ T18] enqueue_timer+0x396/0x550 [ 59.428166][ T18] __mod_timer+0xa0e/0xeb0 [ 59.432746][ T18] schedule_timeout+0x1b9/0x310 [ 59.437761][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 59.443412][ T18] kthread_worker_fn+0x4bf/0xab0 [ 59.448530][ T18] kthread+0x2f0/0x390 [ 59.452769][ T18] ret_from_fork+0x4b/0x80 [ 59.457356][ T18] ret_from_fork_asm+0x1a/0x30 [ 59.462289][ T18] [ 59.464599][ T18] [ 59.464599][ T18] stack backtrace: [ 59.470471][ T18] CPU: 1 PID: 18 Comm: rcu_exp_gp_kthr Not tainted 6.8.0-syzkaller-05243-g14bb1e8c8d4a #0 [ 59.480347][ T18] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 59.490648][ T18] Call Trace: [ 59.493918][ T18] [ 59.496841][ T18] dump_stack_lvl+0x1e7/0x2e0 [ 59.501653][ T18] ? __pfx_dump_stack_lvl+0x10/0x10 [ 59.506847][ T18] ? __pfx__printk+0x10/0x10 [ 59.511519][ T18] ? print_shortest_lock_dependencies+0xf2/0x160 [ 59.517930][ T18] validate_chain+0x4dc7/0x58e0 [ 59.522783][ T18] ? __pfx_validate_chain+0x10/0x10 [ 59.527970][ T18] ? __pfx_validate_chain+0x10/0x10 [ 59.533270][ T18] ? __pfx_validate_chain+0x10/0x10 [ 59.538551][ T18] ? register_lock_class+0x102/0x980 [ 59.543862][ T18] ? __pfx_register_lock_class+0x10/0x10 [ 59.549537][ T18] ? mark_lock+0x9a/0x350 [ 59.553857][ T18] __lock_acquire+0x1346/0x1fd0 [ 59.558705][ T18] lock_acquire+0x1e4/0x530 [ 59.563282][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 59.568646][ T18] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 59.574370][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 59.579393][ T18] ? debug_object_activate+0x3e4/0x510 [ 59.584928][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 59.590306][ T18] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 59.596103][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 59.601124][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 59.606692][ T18] _raw_spin_lock_bh+0x35/0x50 [ 59.611453][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 59.617082][ T18] sock_hash_delete_elem+0xb0/0x300 [ 59.622388][ T18] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 59.628272][ T18] ? bpf_trace_run2+0x1fc/0x530 [ 59.633110][ T18] bpf_prog_e2683766ceb58551+0x45/0x4e [ 59.638566][ T18] bpf_trace_run2+0x2ec/0x530 [ 59.643239][ T18] ? __pfx_bpf_trace_run2+0x10/0x10 [ 59.648606][ T18] ? __pfx_debug_object_activate+0x10/0x10 [ 59.654426][ T18] ? lockdep_hardirqs_on+0x99/0x150 [ 59.659623][ T18] enqueue_timer+0x396/0x550 [ 59.664205][ T18] __mod_timer+0xa0e/0xeb0 [ 59.668631][ T18] ? __asan_memset+0x23/0x50 [ 59.673219][ T18] ? __pfx___mod_timer+0x10/0x10 [ 59.678323][ T18] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 59.684117][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 59.690116][ T18] schedule_timeout+0x1b9/0x310 [ 59.694960][ T18] ? __pfx_schedule_timeout+0x10/0x10 [ 59.700342][ T18] ? __pfx_process_timeout+0x10/0x10 [ 59.705718][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 59.711093][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 59.717063][ T18] ? __pfx_rcu_exp_sel_wait_wake+0x10/0x10 [ 59.722945][ T18] ? _raw_spin_lock_irq+0xdf/0x120 [ 59.728050][ T18] kthread_worker_fn+0x4bf/0xab0 [ 59.733003][ T18] ? kthread_worker_fn+0xdc/0xab0 [ 59.738038][ T18] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 59.743319][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 59.748769][ T18] kthread+0x2f0/0x390 [ 59.752839][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 59.758286][ T18] ? __pfx_kthread+0x10/0x10 [ 59.762866][ T18] ret_from_fork+0x4b/0x80 [ 59.767273][ T18] ? __pfx_kthread+0x10/0x10 [ 59.771848][ T18] ret_from_fork_asm+0x1a/0x30 [ 59.776610][ T18]