Warning: Permanently added '10.128.0.254' (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 [ 59.504836][ T18] [ 59.507219][ T18] ===================================================== [ 59.514252][ T18] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 59.522338][ T18] 6.8.0-syzkaller-05236-g443574b03387 #0 Not tainted [ 59.529461][ T18] ----------------------------------------------------- [ 59.537258][ T18] rcu_exp_gp_kthr/18 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 59.545969][ T18] ffff8880157a4d68 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 59.557620][ T18] [ 59.557620][ T18] and this task is already holding: [ 59.566573][ T18] ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 59.575908][ T18] which would create a new lock dependency: [ 59.582148][ T18] (&base->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 59.590857][ T18] [ 59.590857][ T18] but this new dependency connects a HARDIRQ-irq-safe lock: [ 59.601340][ T18] (&base->lock){-.-.}-{2:2} [ 59.601364][ T18] [ 59.601364][ T18] ... which became HARDIRQ-irq-safe at: [ 59.614456][ T18] lock_acquire+0x1e4/0x530 [ 59.619827][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 59.626667][ T18] lock_timer_base+0x112/0x240 [ 59.632134][ T18] add_timer_on+0x1e5/0x5c0 [ 59.638054][ T18] handle_irq_event+0xad/0x1f0 [ 59.643311][ T18] handle_level_irq+0x3c5/0x6e0 [ 59.648998][ T18] __common_interrupt+0x13a/0x230 [ 59.654913][ T18] common_interrupt+0xa5/0xd0 [ 59.660357][ T18] asm_common_interrupt+0x26/0x40 [ 59.665955][ T18] _raw_spin_unlock_irqrestore+0xd8/0x140 [ 59.672067][ T18] __setup_irq+0x1277/0x1cf0 [ 59.677032][ T18] request_threaded_irq+0x2ab/0x380 [ 59.682600][ T18] setup_default_timer_irq+0x25/0x60 [ 59.688759][ T18] x86_late_time_init+0x66/0xc0 [ 59.693798][ T18] start_kernel+0x3f3/0x500 [ 59.698572][ T18] x86_64_start_reservations+0x2a/0x30 [ 59.704284][ T18] x86_64_start_kernel+0x99/0xa0 [ 59.709303][ T18] common_startup_64+0x13e/0x147 [ 59.714319][ T18] [ 59.714319][ T18] to a HARDIRQ-irq-unsafe lock: [ 59.721627][ T18] (&htab->buckets[i].lock){+...}-{2:2} [ 59.721650][ T18] [ 59.721650][ T18] ... which became HARDIRQ-irq-unsafe at: [ 59.735270][ T18] ... [ 59.735281][ T18] lock_acquire+0x1e4/0x530 [ 59.742440][ T18] _raw_spin_lock_bh+0x35/0x50 [ 59.747416][ T18] sock_hash_free+0x164/0x820 [ 59.752397][ T18] bpf_map_free_deferred+0xe6/0x110 [ 59.758142][ T18] process_scheduled_works+0xa00/0x1770 [ 59.763962][ T18] worker_thread+0x86d/0xd70 [ 59.768747][ T18] kthread+0x2f0/0x390 [ 59.772909][ T18] ret_from_fork+0x4b/0x80 [ 59.777486][ T18] ret_from_fork_asm+0x1a/0x30 [ 59.782533][ T18] [ 59.782533][ T18] other info that might help us debug this: [ 59.782533][ T18] [ 59.793223][ T18] Possible interrupt unsafe locking scenario: [ 59.793223][ T18] [ 59.801559][ T18] CPU0 CPU1 [ 59.807109][ T18] ---- ---- [ 59.812476][ T18] lock(&htab->buckets[i].lock); [ 59.817586][ T18] local_irq_disable(); [ 59.824471][ T18] lock(&base->lock); [ 59.832017][ T18] lock(&htab->buckets[i].lock); [ 59.839566][ T18] [ 59.843307][ T18] lock(&base->lock); [ 59.847538][ T18] [ 59.847538][ T18] *** DEADLOCK *** [ 59.847538][ T18] [ 59.855682][ T18] 2 locks held by rcu_exp_gp_kthr/18: [ 59.861215][ T18] #0: ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 59.870615][ T18] #1: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x114/0x420 [ 59.880380][ T18] [ 59.880380][ T18] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 59.890975][ T18] -> (&base->lock){-.-.}-{2:2} { [ 59.895930][ T18] IN-HARDIRQ-W at: [ 59.899898][ T18] lock_acquire+0x1e4/0x530 [ 59.906045][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 59.913337][ T18] lock_timer_base+0x112/0x240 [ 59.920117][ T18] add_timer_on+0x1e5/0x5c0 [ 59.926302][ T18] handle_irq_event+0xad/0x1f0 [ 59.932734][ T18] handle_level_irq+0x3c5/0x6e0 [ 59.939263][ T18] __common_interrupt+0x13a/0x230 [ 59.945949][ T18] common_interrupt+0xa5/0xd0 [ 59.952278][ T18] asm_common_interrupt+0x26/0x40 [ 59.959411][ T18] _raw_spin_unlock_irqrestore+0xd8/0x140 [ 59.966771][ T18] __setup_irq+0x1277/0x1cf0 [ 59.973014][ T18] request_threaded_irq+0x2ab/0x380 [ 59.979853][ T18] setup_default_timer_irq+0x25/0x60 [ 59.986779][ T18] x86_late_time_init+0x66/0xc0 [ 59.993382][ T18] start_kernel+0x3f3/0x500 [ 59.999550][ T18] x86_64_start_reservations+0x2a/0x30 [ 60.006663][ T18] x86_64_start_kernel+0x99/0xa0 [ 60.013250][ T18] common_startup_64+0x13e/0x147 [ 60.019846][ T18] IN-SOFTIRQ-W at: [ 60.023845][ T18] lock_acquire+0x1e4/0x530 [ 60.030012][ T18] _raw_spin_lock_irq+0xd3/0x120 [ 60.036598][ T18] __run_timer_base+0x103/0x8e0 [ 60.043111][ T18] run_timer_softirq+0x67/0x170 [ 60.049841][ T18] __do_softirq+0x2be/0x943 [ 60.056009][ T18] __irq_exit_rcu+0xf2/0x1c0 [ 60.062339][ T18] irq_exit_rcu+0x9/0x30 [ 60.068222][ T18] common_interrupt+0xaa/0xd0 [ 60.074545][ T18] asm_common_interrupt+0x26/0x40 [ 60.081386][ T18] console_flush_all+0x9cd/0xec0 [ 60.088398][ T18] console_unlock+0x13b/0x4d0 [ 60.094805][ T18] vprintk_emit+0x509/0x720 [ 60.101032][ T18] _printk+0xd5/0x120 [ 60.106654][ T18] identify_boot_cpu+0xae/0xe0 [ 60.113232][ T18] arch_cpu_finalize_init+0x9/0xa0 [ 60.120091][ T18] start_kernel+0x402/0x500 [ 60.126229][ T18] x86_64_start_reservations+0x2a/0x30 [ 60.133428][ T18] x86_64_start_kernel+0x99/0xa0 [ 60.140003][ T18] common_startup_64+0x13e/0x147 [ 60.146670][ T18] INITIAL USE at: [ 60.150550][ T18] lock_acquire+0x1e4/0x530 [ 60.156602][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 60.163442][ T18] lock_timer_base+0x112/0x240 [ 60.169761][ T18] __mod_timer+0x1ca/0xeb0 [ 60.175730][ T18] queue_delayed_work_on+0x15a/0x260 [ 60.182943][ T18] crng_reseed+0xe7/0x220 [ 60.188911][ T18] random_init+0x1a9/0x300 [ 60.194974][ T18] start_kernel+0x253/0x500 [ 60.201026][ T18] x86_64_start_reservations+0x2a/0x30 [ 60.208041][ T18] x86_64_start_kernel+0x99/0xa0 [ 60.214532][ T18] common_startup_64+0x13e/0x147 [ 60.221021][ T18] } [ 60.223505][ T18] ... key at: [] init_timer_cpu.__key+0x0/0x20 [ 60.231852][ T18] [ 60.231852][ T18] the dependencies between the lock to be acquired [ 60.231863][ T18] and HARDIRQ-irq-unsafe lock: [ 60.245390][ T18] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 60.251318][ T18] HARDIRQ-ON-W at: [ 60.255407][ T18] lock_acquire+0x1e4/0x530 [ 60.261687][ T18] _raw_spin_lock_bh+0x35/0x50 [ 60.268131][ T18] sock_hash_free+0x164/0x820 [ 60.274554][ T18] bpf_map_free_deferred+0xe6/0x110 [ 60.281391][ T18] process_scheduled_works+0xa00/0x1770 [ 60.289651][ T18] worker_thread+0x86d/0xd70 [ 60.296518][ T18] kthread+0x2f0/0x390 [ 60.302246][ T18] ret_from_fork+0x4b/0x80 [ 60.308329][ T18] ret_from_fork_asm+0x1a/0x30 [ 60.314765][ T18] INITIAL USE at: [ 60.319560][ T18] lock_acquire+0x1e4/0x530 [ 60.325824][ T18] _raw_spin_lock_bh+0x35/0x50 [ 60.332146][ T18] sock_hash_free+0x164/0x820 [ 60.338414][ T18] bpf_map_free_deferred+0xe6/0x110 [ 60.345308][ T18] process_scheduled_works+0xa00/0x1770 [ 60.352423][ T18] worker_thread+0x86d/0xd70 [ 60.358567][ T18] kthread+0x2f0/0x390 [ 60.364210][ T18] ret_from_fork+0x4b/0x80 [ 60.370271][ T18] ret_from_fork_asm+0x1a/0x30 [ 60.376687][ T18] } [ 60.379170][ T18] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 60.387579][ T18] ... acquired at: [ 60.391454][ T18] lock_acquire+0x1e4/0x530 [ 60.396312][ T18] _raw_spin_lock_bh+0x35/0x50 [ 60.401286][ T18] sock_hash_delete_elem+0xb0/0x300 [ 60.406744][ T18] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 60.412550][ T18] bpf_trace_run2+0x204/0x420 [ 60.417672][ T18] enqueue_timer+0x396/0x550 [ 60.422635][ T18] __mod_timer+0xa0e/0xeb0 [ 60.427331][ T18] schedule_timeout+0x1b9/0x310 [ 60.432380][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 60.437938][ T18] kthread_worker_fn+0x4bf/0xab0 [ 60.443148][ T18] kthread+0x2f0/0x390 [ 60.447488][ T18] ret_from_fork+0x4b/0x80 [ 60.452098][ T18] ret_from_fork_asm+0x1a/0x30 [ 60.457051][ T18] [ 60.459376][ T18] [ 60.459376][ T18] stack backtrace: [ 60.465259][ T18] CPU: 0 PID: 18 Comm: rcu_exp_gp_kthr Not tainted 6.8.0-syzkaller-05236-g443574b03387 #0 [ 60.475148][ T18] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 60.485234][ T18] Call Trace: [ 60.488541][ T18] [ 60.491471][ T18] dump_stack_lvl+0x1e7/0x2e0 [ 60.496254][ T18] ? __pfx_dump_stack_lvl+0x10/0x10 [ 60.501450][ T18] ? __pfx__printk+0x10/0x10 [ 60.506121][ T18] ? print_shortest_lock_dependencies+0xf2/0x160 [ 60.512537][ T18] validate_chain+0x4dc7/0x58e0 [ 60.517393][ T18] ? __pfx_validate_chain+0x10/0x10 [ 60.522846][ T18] ? __pfx_validate_chain+0x10/0x10 [ 60.528058][ T18] ? register_lock_class+0x102/0x980 [ 60.533339][ T18] ? __pfx_register_lock_class+0x10/0x10 [ 60.539239][ T18] ? mark_lock+0x9a/0x350 [ 60.543566][ T18] __lock_acquire+0x1346/0x1fd0 [ 60.548420][ T18] lock_acquire+0x1e4/0x530 [ 60.552997][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 60.558365][ T18] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 60.564075][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 60.569177][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 60.574562][ T18] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 60.580373][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 60.585392][ T18] ? do_raw_spin_unlock+0x13c/0x8b0 [ 60.590772][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 60.596143][ T18] _raw_spin_lock_bh+0x35/0x50 [ 60.600906][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 60.606284][ T18] sock_hash_delete_elem+0xb0/0x300 [ 60.611496][ T18] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 60.616963][ T18] bpf_trace_run2+0x204/0x420 [ 60.621909][ T18] ? bpf_trace_run2+0x114/0x420 [ 60.627729][ T18] ? __pfx_bpf_trace_run2+0x10/0x10 [ 60.632934][ T18] ? __pfx_debug_object_activate+0x10/0x10 [ 60.638915][ T18] ? lockdep_hardirqs_on+0x99/0x150 [ 60.644118][ T18] enqueue_timer+0x396/0x550 [ 60.648809][ T18] __mod_timer+0xa0e/0xeb0 [ 60.653356][ T18] ? __asan_memset+0x23/0x50 [ 60.658795][ T18] ? __pfx___mod_timer+0x10/0x10 [ 60.664173][ T18] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 60.670345][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.676525][ T18] schedule_timeout+0x1b9/0x310 [ 60.681591][ T18] ? __pfx_schedule_timeout+0x10/0x10 [ 60.687181][ T18] ? __pfx_process_timeout+0x10/0x10 [ 60.693210][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 60.698699][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 60.705211][ T18] ? __pfx_rcu_exp_sel_wait_wake+0x10/0x10 [ 60.711861][ T18] ? _raw_spin_lock_irq+0xdf/0x120 [ 60.717412][ T18] kthread_worker_fn+0x4bf/0xab0 [ 60.722949][ T18] ? kthread_worker_fn+0xdc/0xab0 [ 60.728176][ T18] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 60.733640][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 60.739268][ T18] kthread+0x2f0/0x390 [ 60.743444][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 60.749268][ T18] ? __pfx_kthread+0x10/0x10 [ 60.754058][ T18] ret_from_fork+0x4b/0x80 [ 60.759176][ T18] ? __pfx_kthread+0x10/0x10 [ 60.764229][ T18] ret_from_fork_asm+0x1a/0x30 [ 60.769714][ T18]