Warning: Permanently added '10.128.1.114' (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 [ 70.018108][ T18] [ 70.020484][ T18] ===================================================== [ 70.028195][ T18] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 70.035650][ T18] 6.8.0-syzkaller-05236-g443574b03387 #0 Not tainted [ 70.042365][ T18] ----------------------------------------------------- [ 70.049290][ T18] rcu_exp_gp_kthr/18 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 70.057184][ T18] ffff888015b40e68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 70.067572][ T18] [ 70.067572][ T18] and this task is already holding: [ 70.074953][ T18] ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 70.083846][ T18] which would create a new lock dependency: [ 70.090353][ T18] (&base->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 70.098461][ T18] [ 70.098461][ T18] but this new dependency connects a HARDIRQ-irq-safe lock: [ 70.107902][ T18] (&base->lock){-.-.}-{2:2} [ 70.107928][ T18] [ 70.107928][ T18] ... which became HARDIRQ-irq-safe at: [ 70.120223][ T18] lock_acquire+0x1e4/0x530 [ 70.124833][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 70.130226][ T18] lock_timer_base+0x112/0x240 [ 70.135094][ T18] add_timer_on+0x1e5/0x5c0 [ 70.139725][ T18] handle_irq_event+0xad/0x1f0 [ 70.144594][ T18] handle_level_irq+0x3c5/0x6e0 [ 70.149543][ T18] __common_interrupt+0x13a/0x230 [ 70.154659][ T18] common_interrupt+0xa5/0xd0 [ 70.159434][ T18] asm_common_interrupt+0x26/0x40 [ 70.164555][ T18] _raw_spin_unlock_irqrestore+0xd8/0x140 [ 70.170369][ T18] __setup_irq+0x1277/0x1cf0 [ 70.175056][ T18] request_threaded_irq+0x2ab/0x380 [ 70.180352][ T18] setup_default_timer_irq+0x25/0x60 [ 70.185736][ T18] x86_late_time_init+0x66/0xc0 [ 70.190684][ T18] start_kernel+0x3f3/0x500 [ 70.195271][ T18] x86_64_start_reservations+0x2a/0x30 [ 70.200821][ T18] x86_64_start_kernel+0x99/0xa0 [ 70.205859][ T18] common_startup_64+0x13e/0x147 [ 70.210889][ T18] [ 70.210889][ T18] to a HARDIRQ-irq-unsafe lock: [ 70.217903][ T18] (&htab->buckets[i].lock){+...}-{2:2} [ 70.217931][ T18] [ 70.217931][ T18] ... which became HARDIRQ-irq-unsafe at: [ 70.231343][ T18] ... [ 70.231356][ T18] lock_acquire+0x1e4/0x530 [ 70.238526][ T18] _raw_spin_lock_bh+0x35/0x50 [ 70.243380][ T18] sock_hash_free+0x164/0x820 [ 70.248150][ T18] bpf_map_free_deferred+0xe6/0x110 [ 70.253438][ T18] process_scheduled_works+0xa00/0x1770 [ 70.259070][ T18] worker_thread+0x86d/0xd70 [ 70.263746][ T18] kthread+0x2f0/0x390 [ 70.267904][ T18] ret_from_fork+0x4b/0x80 [ 70.272418][ T18] ret_from_fork_asm+0x1a/0x30 [ 70.277275][ T18] [ 70.277275][ T18] other info that might help us debug this: [ 70.277275][ T18] [ 70.287498][ T18] Possible interrupt unsafe locking scenario: [ 70.287498][ T18] [ 70.295903][ T18] CPU0 CPU1 [ 70.301262][ T18] ---- ---- [ 70.306623][ T18] lock(&htab->buckets[i].lock); [ 70.311658][ T18] local_irq_disable(); [ 70.318408][ T18] lock(&base->lock); [ 70.324997][ T18] lock(&htab->buckets[i].lock); [ 70.332543][ T18] [ 70.336081][ T18] lock(&base->lock); [ 70.340328][ T18] [ 70.340328][ T18] *** DEADLOCK *** [ 70.340328][ T18] [ 70.348470][ T18] 2 locks held by rcu_exp_gp_kthr/18: [ 70.354079][ T18] #0: ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 70.363439][ T18] #1: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x114/0x420 [ 70.372856][ T18] [ 70.372856][ T18] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 70.383270][ T18] -> (&base->lock){-.-.}-{2:2} { [ 70.388232][ T18] IN-HARDIRQ-W at: [ 70.392229][ T18] lock_acquire+0x1e4/0x530 [ 70.398383][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 70.405321][ T18] lock_timer_base+0x112/0x240 [ 70.412528][ T18] add_timer_on+0x1e5/0x5c0 [ 70.418693][ T18] handle_irq_event+0xad/0x1f0 [ 70.425136][ T18] handle_level_irq+0x3c5/0x6e0 [ 70.431643][ T18] __common_interrupt+0x13a/0x230 [ 70.438336][ T18] common_interrupt+0xa5/0xd0 [ 70.444676][ T18] asm_common_interrupt+0x26/0x40 [ 70.451376][ T18] _raw_spin_unlock_irqrestore+0xd8/0x140 [ 70.458776][ T18] __setup_irq+0x1277/0x1cf0 [ 70.465029][ T18] request_threaded_irq+0x2ab/0x380 [ 70.471885][ T18] setup_default_timer_irq+0x25/0x60 [ 70.479091][ T18] x86_late_time_init+0x66/0xc0 [ 70.485606][ T18] start_kernel+0x3f3/0x500 [ 70.491768][ T18] x86_64_start_reservations+0x2a/0x30 [ 70.498889][ T18] x86_64_start_kernel+0x99/0xa0 [ 70.506004][ T18] common_startup_64+0x13e/0x147 [ 70.512596][ T18] IN-SOFTIRQ-W at: [ 70.516581][ T18] lock_acquire+0x1e4/0x530 [ 70.522733][ T18] _raw_spin_lock_irq+0xd3/0x120 [ 70.529331][ T18] __run_timer_base+0x103/0x8e0 [ 70.535832][ T18] run_timer_softirq+0x67/0x170 [ 70.542333][ T18] __do_softirq+0x2be/0x943 [ 70.548510][ T18] __irq_exit_rcu+0xf2/0x1c0 [ 70.554778][ T18] irq_exit_rcu+0x9/0x30 [ 70.560676][ T18] common_interrupt+0xaa/0xd0 [ 70.567034][ T18] asm_common_interrupt+0x26/0x40 [ 70.573737][ T18] console_flush_all+0x9cd/0xec0 [ 70.580363][ T18] console_unlock+0x13b/0x4d0 [ 70.586712][ T18] vprintk_emit+0x509/0x720 [ 70.592885][ T18] _printk+0xd5/0x120 [ 70.598527][ T18] cpu_select_mitigations+0x3c/0xa0 [ 70.605386][ T18] arch_cpu_finalize_init+0x20/0xa0 [ 70.612281][ T18] start_kernel+0x402/0x500 [ 70.618461][ T18] x86_64_start_reservations+0x2a/0x30 [ 70.625605][ T18] x86_64_start_kernel+0x99/0xa0 [ 70.632255][ T18] common_startup_64+0x13e/0x147 [ 70.638876][ T18] INITIAL USE at: [ 70.642779][ T18] lock_acquire+0x1e4/0x530 [ 70.648874][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 70.655745][ T18] lock_timer_base+0x112/0x240 [ 70.662090][ T18] __mod_timer+0x1ca/0xeb0 [ 70.668088][ T18] queue_delayed_work_on+0x15a/0x260 [ 70.674943][ T18] crng_reseed+0xe7/0x220 [ 70.680850][ T18] random_init+0x1a9/0x300 [ 70.686847][ T18] start_kernel+0x253/0x500 [ 70.692957][ T18] x86_64_start_reservations+0x2a/0x30 [ 70.699988][ T18] x86_64_start_kernel+0x99/0xa0 [ 70.706492][ T18] common_startup_64+0x13e/0x147 [ 70.713030][ T18] } [ 70.715530][ T18] ... key at: [] init_timer_cpu.__key+0x0/0x20 [ 70.723783][ T18] [ 70.723783][ T18] the dependencies between the lock to be acquired [ 70.723792][ T18] and HARDIRQ-irq-unsafe lock: [ 70.737315][ T18] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 70.743244][ T18] HARDIRQ-ON-W at: [ 70.747227][ T18] lock_acquire+0x1e4/0x530 [ 70.753388][ T18] _raw_spin_lock_bh+0x35/0x50 [ 70.759809][ T18] sock_hash_free+0x164/0x820 [ 70.766144][ T18] bpf_map_free_deferred+0xe6/0x110 [ 70.773002][ T18] process_scheduled_works+0xa00/0x1770 [ 70.780201][ T18] worker_thread+0x86d/0xd70 [ 70.786447][ T18] kthread+0x2f0/0x390 [ 70.792174][ T18] ret_from_fork+0x4b/0x80 [ 70.798253][ T18] ret_from_fork_asm+0x1a/0x30 [ 70.804673][ T18] INITIAL USE at: [ 70.808571][ T18] lock_acquire+0x1e4/0x530 [ 70.814639][ T18] _raw_spin_lock_bh+0x35/0x50 [ 70.820973][ T18] sock_hash_free+0x164/0x820 [ 70.827223][ T18] bpf_map_free_deferred+0xe6/0x110 [ 70.833986][ T18] process_scheduled_works+0xa00/0x1770 [ 70.841096][ T18] worker_thread+0x86d/0xd70 [ 70.847257][ T18] kthread+0x2f0/0x390 [ 70.852896][ T18] ret_from_fork+0x4b/0x80 [ 70.858886][ T18] ret_from_fork_asm+0x1a/0x30 [ 70.865225][ T18] } [ 70.867726][ T18] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 70.876061][ T18] ... acquired at: [ 70.879861][ T18] lock_acquire+0x1e4/0x530 [ 70.884538][ T18] _raw_spin_lock_bh+0x35/0x50 [ 70.889480][ T18] sock_hash_delete_elem+0xb0/0x300 [ 70.894874][ T18] bpf_prog_bc4ba9860fbb0da4+0x46/0x4a [ 70.900529][ T18] bpf_trace_run2+0x204/0x420 [ 70.905396][ T18] enqueue_timer+0x396/0x550 [ 70.910166][ T18] __mod_timer+0xa0e/0xeb0 [ 70.914771][ T18] schedule_timeout+0x1b9/0x310 [ 70.919797][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 70.925352][ T18] kthread_worker_fn+0x4bf/0xab0 [ 70.930554][ T18] kthread+0x2f0/0x390 [ 70.934802][ T18] ret_from_fork+0x4b/0x80 [ 70.939402][ T18] ret_from_fork_asm+0x1a/0x30 [ 70.944348][ T18] [ 70.946669][ T18] [ 70.946669][ T18] stack backtrace: [ 70.952555][ T18] CPU: 0 PID: 18 Comm: rcu_exp_gp_kthr Not tainted 6.8.0-syzkaller-05236-g443574b03387 #0 [ 70.962467][ T18] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 70.972543][ T18] Call Trace: [ 70.975831][ T18] [ 70.978777][ T18] dump_stack_lvl+0x1e7/0x2e0 [ 70.983472][ T18] ? __pfx_dump_stack_lvl+0x10/0x10 [ 70.988702][ T18] ? __pfx__printk+0x10/0x10 [ 70.993322][ T18] ? print_shortest_lock_dependencies+0xf2/0x160 [ 70.999712][ T18] validate_chain+0x4dc7/0x58e0 [ 71.004610][ T18] ? __pfx_validate_chain+0x10/0x10 [ 71.009834][ T18] ? __pfx_validate_chain+0x10/0x10 [ 71.015050][ T18] ? register_lock_class+0x102/0x980 [ 71.020356][ T18] ? __pfx_register_lock_class+0x10/0x10 [ 71.026003][ T18] ? mark_lock+0x9a/0x350 [ 71.030348][ T18] __lock_acquire+0x1346/0x1fd0 [ 71.035231][ T18] lock_acquire+0x1e4/0x530 [ 71.039815][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 71.045216][ T18] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 71.050970][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 71.056026][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 71.061424][ T18] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 71.067250][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 71.072286][ T18] ? do_raw_spin_unlock+0x13c/0x8b0 [ 71.077516][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 71.082916][ T18] _raw_spin_lock_bh+0x35/0x50 [ 71.087708][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 71.093093][ T18] sock_hash_delete_elem+0xb0/0x300 [ 71.098305][ T18] bpf_prog_bc4ba9860fbb0da4+0x46/0x4a [ 71.103768][ T18] bpf_trace_run2+0x204/0x420 [ 71.108454][ T18] ? bpf_trace_run2+0x114/0x420 [ 71.113321][ T18] ? __pfx_bpf_trace_run2+0x10/0x10 [ 71.118524][ T18] ? __pfx_debug_object_activate+0x10/0x10 [ 71.124333][ T18] ? lockdep_hardirqs_on+0x99/0x150 [ 71.129540][ T18] enqueue_timer+0x396/0x550 [ 71.134142][ T18] __mod_timer+0xa0e/0xeb0 [ 71.138579][ T18] ? __asan_memset+0x23/0x50 [ 71.143212][ T18] ? __pfx___mod_timer+0x10/0x10 [ 71.148160][ T18] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 71.153982][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 71.159987][ T18] schedule_timeout+0x1b9/0x310 [ 71.164843][ T18] ? __pfx_schedule_timeout+0x10/0x10 [ 71.170244][ T18] ? __pfx_process_timeout+0x10/0x10 [ 71.175568][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 71.180994][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 71.186992][ T18] ? __pfx_rcu_exp_sel_wait_wake+0x10/0x10 [ 71.192825][ T18] ? _raw_spin_lock_irq+0xdf/0x120 [ 71.197964][ T18] kthread_worker_fn+0x4bf/0xab0 [ 71.202925][ T18] ? kthread_worker_fn+0xdc/0xab0 [ 71.208000][ T18] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 71.213295][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 71.218762][ T18] kthread+0x2f0/0x390 [ 71.222838][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 71.228306][ T18] ? __pfx_kthread+0x10/0x10 [ 71.232904][ T18] ret_from_fork+0x4b/0x80 [ 71.237337][ T18] ? __pfx_kthread+0x10/0x10 [ 71.241932][ T18] ret_from_fork_asm+0x1a/0x30 [ 71.246720][ T18]