Warning: Permanently added '10.128.1.103' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program [ 75.642355][ T18] [ 75.644762][ T18] ===================================================== [ 75.651730][ T18] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 75.659199][ T18] 6.8.0-syzkaller-05236-g443574b03387 #0 Not tainted [ 75.665885][ T18] ----------------------------------------------------- [ 75.672840][ T18] rcu_exp_gp_kthr/18 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 75.680744][ T18] ffff88802e81c820 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 75.691209][ T18] [ 75.691209][ T18] and this task is already holding: [ 75.698569][ T18] ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 75.707518][ T18] which would create a new lock dependency: [ 75.713404][ T18] (&base->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 75.721600][ T18] [ 75.721600][ T18] but this new dependency connects a HARDIRQ-irq-safe lock: [ 75.731082][ T18] (&base->lock){-.-.}-{2:2} [ 75.731107][ T18] [ 75.731107][ T18] ... which became HARDIRQ-irq-safe at: [ 75.743392][ T18] lock_acquire+0x1e4/0x530 [ 75.747999][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 75.753413][ T18] lock_timer_base+0x112/0x240 [ 75.758283][ T18] add_timer_on+0x1e5/0x5c0 [ 75.762903][ T18] handle_irq_event+0xad/0x1f0 [ 75.767787][ T18] handle_edge_irq+0x25f/0xc20 [ 75.772655][ T18] __common_interrupt+0x13a/0x230 [ 75.777793][ T18] common_interrupt+0xa5/0xd0 [ 75.782598][ T18] asm_common_interrupt+0x26/0x40 [ 75.787739][ T18] printk_get_next_message+0x412/0xce0 [ 75.793306][ T18] console_flush_all+0x42d/0xec0 [ 75.798350][ T18] console_unlock+0x13b/0x4d0 [ 75.803124][ T18] vprintk_emit+0x509/0x720 [ 75.807720][ T18] _printk+0xd5/0x120 [ 75.811881][ T18] identify_boot_cpu+0x85/0xe0 [ 75.816814][ T18] arch_cpu_finalize_init+0x9/0xa0 [ 75.822036][ T18] start_kernel+0x402/0x500 [ 75.826627][ T18] x86_64_start_reservations+0x2a/0x30 [ 75.832181][ T18] x86_64_start_kernel+0x99/0xa0 [ 75.837212][ T18] common_startup_64+0x13e/0x147 [ 75.842246][ T18] [ 75.842246][ T18] to a HARDIRQ-irq-unsafe lock: [ 75.849276][ T18] (&htab->buckets[i].lock){+...}-{2:2} [ 75.849303][ T18] [ 75.849303][ T18] ... which became HARDIRQ-irq-unsafe at: [ 75.862714][ T18] ... [ 75.862722][ T18] lock_acquire+0x1e4/0x530 [ 75.869892][ T18] _raw_spin_lock_bh+0x35/0x50 [ 75.874764][ T18] sock_hash_free+0x164/0x820 [ 75.879531][ T18] bpf_map_free_deferred+0xe6/0x110 [ 75.884848][ T18] process_scheduled_works+0xa00/0x1770 [ 75.890497][ T18] worker_thread+0x86d/0xd70 [ 75.895180][ T18] kthread+0x2f0/0x390 [ 75.899352][ T18] ret_from_fork+0x4b/0x80 [ 75.903902][ T18] ret_from_fork_asm+0x1a/0x30 [ 75.908782][ T18] [ 75.908782][ T18] other info that might help us debug this: [ 75.908782][ T18] [ 75.919013][ T18] Possible interrupt unsafe locking scenario: [ 75.919013][ T18] [ 75.927332][ T18] CPU0 CPU1 [ 75.932696][ T18] ---- ---- [ 75.938057][ T18] lock(&htab->buckets[i].lock); [ 75.943264][ T18] local_irq_disable(); [ 75.950017][ T18] lock(&base->lock); [ 75.956610][ T18] lock(&htab->buckets[i].lock); [ 75.964158][ T18] [ 75.967609][ T18] lock(&base->lock); [ 75.971855][ T18] [ 75.971855][ T18] *** DEADLOCK *** [ 75.971855][ T18] [ 75.980000][ T18] 2 locks held by rcu_exp_gp_kthr/18: [ 75.985370][ T18] #0: ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 75.994702][ T18] #1: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x114/0x420 [ 76.004117][ T18] [ 76.004117][ T18] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 76.014521][ T18] -> (&base->lock){-.-.}-{2:2} { [ 76.019480][ T18] IN-HARDIRQ-W at: [ 76.023464][ T18] lock_acquire+0x1e4/0x530 [ 76.029630][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 76.036594][ T18] lock_timer_base+0x112/0x240 [ 76.043018][ T18] add_timer_on+0x1e5/0x5c0 [ 76.049185][ T18] handle_irq_event+0xad/0x1f0 [ 76.055607][ T18] handle_edge_irq+0x25f/0xc20 [ 76.062027][ T18] __common_interrupt+0x13a/0x230 [ 76.068711][ T18] common_interrupt+0xa5/0xd0 [ 76.075049][ T18] asm_common_interrupt+0x26/0x40 [ 76.081758][ T18] printk_get_next_message+0x412/0xce0 [ 76.088880][ T18] console_flush_all+0x42d/0xec0 [ 76.095479][ T18] console_unlock+0x13b/0x4d0 [ 76.101811][ T18] vprintk_emit+0x509/0x720 [ 76.107987][ T18] _printk+0xd5/0x120 [ 76.113624][ T18] identify_boot_cpu+0x85/0xe0 [ 76.120050][ T18] arch_cpu_finalize_init+0x9/0xa0 [ 76.126823][ T18] start_kernel+0x402/0x500 [ 76.132993][ T18] x86_64_start_reservations+0x2a/0x30 [ 76.140139][ T18] x86_64_start_kernel+0x99/0xa0 [ 76.146741][ T18] common_startup_64+0x13e/0x147 [ 76.153332][ T18] IN-SOFTIRQ-W at: [ 76.157313][ T18] lock_acquire+0x1e4/0x530 [ 76.163468][ T18] _raw_spin_lock_irq+0xd3/0x120 [ 76.170062][ T18] __run_timer_base+0x103/0x8e0 [ 76.176562][ T18] run_timer_softirq+0x67/0x170 [ 76.183060][ T18] __do_softirq+0x2be/0x943 [ 76.189220][ T18] __irq_exit_rcu+0xf2/0x1c0 [ 76.195478][ T18] irq_exit_rcu+0x9/0x30 [ 76.201385][ T18] common_interrupt+0xaa/0xd0 [ 76.207731][ T18] asm_common_interrupt+0x26/0x40 [ 76.214419][ T18] desc_read+0x190/0x3f0 [ 76.220318][ T18] _prb_read_valid+0x3ed/0xc40 [ 76.226733][ T18] prb_read_valid+0xa9/0xf0 [ 76.232896][ T18] printk_get_next_message+0x1fd/0xce0 [ 76.240024][ T18] console_flush_all+0x42d/0xec0 [ 76.246621][ T18] console_unlock+0x13b/0x4d0 [ 76.252957][ T18] vprintk_emit+0x509/0x720 [ 76.259119][ T18] _printk+0xd5/0x120 [ 76.264758][ T18] spectre_v2_user_select_mitigation+0x4c5/0x4f0 [ 76.272745][ T18] cpu_select_mitigations+0x4b/0xa0 [ 76.279609][ T18] arch_cpu_finalize_init+0x20/0xa0 [ 76.286480][ T18] start_kernel+0x402/0x500 [ 76.292637][ T18] x86_64_start_reservations+0x2a/0x30 [ 76.299754][ T18] x86_64_start_kernel+0x99/0xa0 [ 76.306355][ T18] common_startup_64+0x13e/0x147 [ 76.312954][ T18] INITIAL USE at: [ 76.316860][ T18] lock_acquire+0x1e4/0x530 [ 76.322940][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 76.329797][ T18] lock_timer_base+0x112/0x240 [ 76.336136][ T18] __mod_timer+0x1ca/0xeb0 [ 76.342125][ T18] queue_delayed_work_on+0x15a/0x260 [ 76.348978][ T18] crng_reseed+0xe7/0x220 [ 76.354939][ T18] random_init+0x1a9/0x300 [ 76.360974][ T18] start_kernel+0x253/0x500 [ 76.367058][ T18] x86_64_start_reservations+0x2a/0x30 [ 76.374091][ T18] x86_64_start_kernel+0x99/0xa0 [ 76.380600][ T18] common_startup_64+0x13e/0x147 [ 76.387105][ T18] } [ 76.389601][ T18] ... key at: [] init_timer_cpu.__key+0x0/0x20 [ 76.397886][ T18] [ 76.397886][ T18] the dependencies between the lock to be acquired [ 76.397895][ T18] and HARDIRQ-irq-unsafe lock: [ 76.411438][ T18] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 76.417377][ T18] HARDIRQ-ON-W at: [ 76.421459][ T18] lock_acquire+0x1e4/0x530 [ 76.427656][ T18] _raw_spin_lock_bh+0x35/0x50 [ 76.434089][ T18] sock_hash_free+0x164/0x820 [ 76.440432][ T18] bpf_map_free_deferred+0xe6/0x110 [ 76.447292][ T18] process_scheduled_works+0xa00/0x1770 [ 76.454494][ T18] worker_thread+0x86d/0xd70 [ 76.460748][ T18] kthread+0x2f0/0x390 [ 76.466471][ T18] ret_from_fork+0x4b/0x80 [ 76.472569][ T18] ret_from_fork_asm+0x1a/0x30 [ 76.478995][ T18] INITIAL USE at: [ 76.482889][ T18] lock_acquire+0x1e4/0x530 [ 76.488960][ T18] _raw_spin_lock_bh+0x35/0x50 [ 76.495288][ T18] sock_hash_free+0x164/0x820 [ 76.501531][ T18] bpf_map_free_deferred+0xe6/0x110 [ 76.508310][ T18] process_scheduled_works+0xa00/0x1770 [ 76.515442][ T18] worker_thread+0x86d/0xd70 [ 76.521621][ T18] kthread+0x2f0/0x390 [ 76.527258][ T18] ret_from_fork+0x4b/0x80 [ 76.533248][ T18] ret_from_fork_asm+0x1a/0x30 [ 76.539846][ T18] } [ 76.542343][ T18] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 76.550800][ T18] ... acquired at: [ 76.554618][ T18] lock_acquire+0x1e4/0x530 [ 76.559319][ T18] _raw_spin_lock_bh+0x35/0x50 [ 76.564291][ T18] sock_hash_delete_elem+0xb0/0x300 [ 76.569675][ T18] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 76.575332][ T18] bpf_trace_run2+0x204/0x420 [ 76.580192][ T18] enqueue_timer+0x396/0x550 [ 76.584998][ T18] __mod_timer+0xa0e/0xeb0 [ 76.589683][ T18] schedule_timeout+0x1b9/0x310 [ 76.594713][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 76.600281][ T18] kthread_worker_fn+0x4bf/0xab0 [ 76.605396][ T18] kthread+0x2f0/0x390 [ 76.609642][ T18] ret_from_fork+0x4b/0x80 [ 76.614304][ T18] ret_from_fork_asm+0x1a/0x30 [ 76.619354][ T18] [ 76.621708][ T18] [ 76.621708][ T18] stack backtrace: [ 76.627709][ T18] CPU: 0 PID: 18 Comm: rcu_exp_gp_kthr Not tainted 6.8.0-syzkaller-05236-g443574b03387 #0 [ 76.637626][ T18] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 76.647699][ T18] Call Trace: [ 76.651001][ T18] [ 76.653940][ T18] dump_stack_lvl+0x1e7/0x2e0 [ 76.658641][ T18] ? __pfx_dump_stack_lvl+0x10/0x10 [ 76.663852][ T18] ? __pfx__printk+0x10/0x10 [ 76.668451][ T18] ? print_shortest_lock_dependencies+0xf2/0x160 [ 76.674806][ T18] validate_chain+0x4dc7/0x58e0 [ 76.679763][ T18] ? __pfx_validate_chain+0x10/0x10 [ 76.684973][ T18] ? __pfx_validate_chain+0x10/0x10 [ 76.690199][ T18] ? register_lock_class+0x102/0x980 [ 76.695495][ T18] ? __pfx_register_lock_class+0x10/0x10 [ 76.701153][ T18] ? mark_lock+0x9a/0x350 [ 76.705492][ T18] __lock_acquire+0x1346/0x1fd0 [ 76.710376][ T18] lock_acquire+0x1e4/0x530 [ 76.714884][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 76.720273][ T18] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 76.726000][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 76.731033][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 76.736429][ T18] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 76.742242][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 76.747298][ T18] ? do_raw_spin_unlock+0x13c/0x8b0 [ 76.752506][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 76.757883][ T18] _raw_spin_lock_bh+0x35/0x50 [ 76.762657][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 76.768055][ T18] sock_hash_delete_elem+0xb0/0x300 [ 76.773269][ T18] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 76.778732][ T18] bpf_trace_run2+0x204/0x420 [ 76.783415][ T18] ? bpf_trace_run2+0x114/0x420 [ 76.788277][ T18] ? __pfx_bpf_trace_run2+0x10/0x10 [ 76.793488][ T18] ? __pfx_debug_object_activate+0x10/0x10 [ 76.799332][ T18] ? lockdep_hardirqs_on+0x99/0x150 [ 76.804548][ T18] enqueue_timer+0x396/0x550 [ 76.809148][ T18] __mod_timer+0xa0e/0xeb0 [ 76.813582][ T18] ? __asan_memset+0x23/0x50 [ 76.818200][ T18] ? __pfx___mod_timer+0x10/0x10 [ 76.823235][ T18] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 76.829044][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 76.835033][ T18] schedule_timeout+0x1b9/0x310 [ 76.839891][ T18] ? __pfx_schedule_timeout+0x10/0x10 [ 76.845267][ T18] ? __pfx_process_timeout+0x10/0x10 [ 76.850560][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 76.855949][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 76.861934][ T18] ? __pfx_rcu_exp_sel_wait_wake+0x10/0x10 [ 76.867747][ T18] ? _raw_spin_lock_irq+0xdf/0x120 [ 76.872889][ T18] kthread_worker_fn+0x4bf/0xab0 [ 76.877839][ T18] ? kthread_worker_fn+0xdc/0xab0 [ 76.882887][ T18] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 76.888187][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 76.893650][ T18] kthread+0x2f0/0x390 [ 76.897734][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 76.903202][ T18] ? __pfx_kthread+0x10/0x10 [ 76.907797][ T18] ret_from_fork+0x4b/0x80 [ 76.912312][ T18] ? __pfx_kthread+0x10/0x10 [ 76.916999][ T18] ret_from_fork_asm+0x1a/0x30 [ 76.921784][ T18]