Warning: Permanently added '10.128.0.61' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program [ 67.524362][ T18] [ 67.526744][ T18] ===================================================== [ 67.533675][ T18] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 67.541122][ T18] 6.8.0-syzkaller-05204-g237bb5f7f7f5 #0 Not tainted [ 67.547793][ T18] ----------------------------------------------------- [ 67.554718][ T18] rcu_exp_gp_kthr/18 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 67.562619][ T18] ffff8880225648d8 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 67.572919][ T18] [ 67.572919][ T18] and this task is already holding: [ 67.580291][ T18] ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 67.589175][ T18] which would create a new lock dependency: [ 67.595056][ T18] (&base->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 67.603166][ T18] [ 67.603166][ T18] but this new dependency connects a HARDIRQ-irq-safe lock: [ 67.612605][ T18] (&base->lock){-.-.}-{2:2} [ 67.612629][ T18] [ 67.612629][ T18] ... which became HARDIRQ-irq-safe at: [ 67.624905][ T18] lock_acquire+0x1e4/0x530 [ 67.629496][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 67.634879][ T18] lock_timer_base+0x112/0x240 [ 67.639733][ T18] add_timer_on+0x1e5/0x5c0 [ 67.644334][ T18] handle_irq_event+0xad/0x1f0 [ 67.649187][ T18] handle_edge_irq+0x25f/0xc20 [ 67.654035][ T18] __common_interrupt+0x13a/0x230 [ 67.659151][ T18] common_interrupt+0xa5/0xd0 [ 67.663940][ T18] asm_common_interrupt+0x26/0x40 [ 67.669152][ T18] console_flush_all+0x9cd/0xec0 [ 67.674179][ T18] console_unlock+0x13b/0x4d0 [ 67.678950][ T18] vprintk_emit+0x509/0x720 [ 67.683544][ T18] _printk+0xd5/0x120 [ 67.687616][ T18] __clocksource_register_scale+0xb8/0x660 [ 67.693524][ T18] tsc_init+0x1a9/0x1d0 [ 67.697769][ T18] x86_late_time_init+0x94/0xc0 [ 67.702714][ T18] start_kernel+0x3f3/0x500 [ 67.707323][ T18] x86_64_start_reservations+0x2a/0x30 [ 67.712875][ T18] x86_64_start_kernel+0x99/0xa0 [ 67.717929][ T18] common_startup_64+0x13e/0x147 [ 67.722979][ T18] [ 67.722979][ T18] to a HARDIRQ-irq-unsafe lock: [ 67.729988][ T18] (&htab->buckets[i].lock){+...}-{2:2} [ 67.730014][ T18] [ 67.730014][ T18] ... which became HARDIRQ-irq-unsafe at: [ 67.743448][ T18] ... [ 67.743456][ T18] lock_acquire+0x1e4/0x530 [ 67.750623][ T18] _raw_spin_lock_bh+0x35/0x50 [ 67.755477][ T18] sock_hash_free+0x164/0x820 [ 67.760241][ T18] bpf_map_free_deferred+0xe6/0x110 [ 67.765528][ T18] process_scheduled_works+0xa00/0x1770 [ 67.771160][ T18] worker_thread+0x86d/0xd70 [ 67.775841][ T18] kthread+0x2f0/0x390 [ 67.780005][ T18] ret_from_fork+0x4b/0x80 [ 67.784519][ T18] ret_from_fork_asm+0x1a/0x30 [ 67.789554][ T18] [ 67.789554][ T18] other info that might help us debug this: [ 67.789554][ T18] [ 67.799777][ T18] Possible interrupt unsafe locking scenario: [ 67.799777][ T18] [ 67.808092][ T18] CPU0 CPU1 [ 67.813459][ T18] ---- ---- [ 67.818831][ T18] lock(&htab->buckets[i].lock); [ 67.823864][ T18] local_irq_disable(); [ 67.830611][ T18] lock(&base->lock); [ 67.837202][ T18] lock(&htab->buckets[i].lock); [ 67.844750][ T18] [ 67.848214][ T18] lock(&base->lock); [ 67.852458][ T18] [ 67.852458][ T18] *** DEADLOCK *** [ 67.852458][ T18] [ 67.860598][ T18] 2 locks held by rcu_exp_gp_kthr/18: [ 67.865964][ T18] #0: ffff8880b942a758 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x112/0x240 [ 67.875292][ T18] #1: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x114/0x420 [ 67.884707][ T18] [ 67.884707][ T18] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 67.895105][ T18] -> (&base->lock){-.-.}-{2:2} { [ 67.900078][ T18] IN-HARDIRQ-W at: [ 67.904078][ T18] lock_acquire+0x1e4/0x530 [ 67.910250][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 67.917208][ T18] lock_timer_base+0x112/0x240 [ 67.923655][ T18] add_timer_on+0x1e5/0x5c0 [ 67.929832][ T18] handle_irq_event+0xad/0x1f0 [ 67.936257][ T18] handle_edge_irq+0x25f/0xc20 [ 67.942677][ T18] __common_interrupt+0x13a/0x230 [ 67.949362][ T18] common_interrupt+0xa5/0xd0 [ 67.955700][ T18] asm_common_interrupt+0x26/0x40 [ 67.962398][ T18] console_flush_all+0x9cd/0xec0 [ 67.969200][ T18] console_unlock+0x13b/0x4d0 [ 67.975547][ T18] vprintk_emit+0x509/0x720 [ 67.981714][ T18] _printk+0xd5/0x120 [ 67.987350][ T18] __clocksource_register_scale+0xb8/0x660 [ 67.994807][ T18] tsc_init+0x1a9/0x1d0 [ 68.000616][ T18] x86_late_time_init+0x94/0xc0 [ 68.007137][ T18] start_kernel+0x3f3/0x500 [ 68.013288][ T18] x86_64_start_reservations+0x2a/0x30 [ 68.020403][ T18] x86_64_start_kernel+0x99/0xa0 [ 68.027001][ T18] common_startup_64+0x13e/0x147 [ 68.033605][ T18] IN-SOFTIRQ-W at: [ 68.037601][ T18] lock_acquire+0x1e4/0x530 [ 68.043859][ T18] _raw_spin_lock_irq+0xd3/0x120 [ 68.050447][ T18] __run_timer_base+0x103/0x8e0 [ 68.056948][ T18] run_timer_softirq+0x67/0x170 [ 68.063470][ T18] __do_softirq+0x2be/0x943 [ 68.069637][ T18] __irq_exit_rcu+0xf2/0x1c0 [ 68.075886][ T18] irq_exit_rcu+0x9/0x30 [ 68.081808][ T18] common_interrupt+0xaa/0xd0 [ 68.088141][ T18] asm_common_interrupt+0x26/0x40 [ 68.094824][ T18] console_flush_all+0x9cd/0xec0 [ 68.101418][ T18] console_unlock+0x13b/0x4d0 [ 68.107745][ T18] vprintk_emit+0x509/0x720 [ 68.113901][ T18] _printk+0xd5/0x120 [ 68.119535][ T18] identify_boot_cpu+0xae/0xe0 [ 68.125966][ T18] arch_cpu_finalize_init+0x9/0xa0 [ 68.132735][ T18] start_kernel+0x402/0x500 [ 68.138900][ T18] x86_64_start_reservations+0x2a/0x30 [ 68.146190][ T18] x86_64_start_kernel+0x99/0xa0 [ 68.152795][ T18] common_startup_64+0x13e/0x147 [ 68.159400][ T18] INITIAL USE at: [ 68.163301][ T18] lock_acquire+0x1e4/0x530 [ 68.169478][ T18] _raw_spin_lock_irqsave+0xd5/0x120 [ 68.176329][ T18] lock_timer_base+0x112/0x240 [ 68.182665][ T18] __mod_timer+0x1ca/0xeb0 [ 68.188672][ T18] queue_delayed_work_on+0x15a/0x260 [ 68.195522][ T18] crng_reseed+0xe7/0x220 [ 68.201418][ T18] random_init+0x1a9/0x300 [ 68.207424][ T18] start_kernel+0x253/0x500 [ 68.213496][ T18] x86_64_start_reservations+0x2a/0x30 [ 68.220536][ T18] x86_64_start_kernel+0x99/0xa0 [ 68.227052][ T18] common_startup_64+0x13e/0x147 [ 68.233564][ T18] } [ 68.236151][ T18] ... key at: [] init_timer_cpu.__key+0x0/0x20 [ 68.244409][ T18] [ 68.244409][ T18] the dependencies between the lock to be acquired [ 68.244418][ T18] and HARDIRQ-irq-unsafe lock: [ 68.257943][ T18] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 68.263874][ T18] HARDIRQ-ON-W at: [ 68.267855][ T18] lock_acquire+0x1e4/0x530 [ 68.274009][ T18] _raw_spin_lock_bh+0x35/0x50 [ 68.280556][ T18] sock_hash_free+0x164/0x820 [ 68.286904][ T18] bpf_map_free_deferred+0xe6/0x110 [ 68.293765][ T18] process_scheduled_works+0xa00/0x1770 [ 68.300961][ T18] worker_thread+0x86d/0xd70 [ 68.307201][ T18] kthread+0x2f0/0x390 [ 68.312935][ T18] ret_from_fork+0x4b/0x80 [ 68.319020][ T18] ret_from_fork_asm+0x1a/0x30 [ 68.325444][ T18] INITIAL USE at: [ 68.329338][ T18] lock_acquire+0x1e4/0x530 [ 68.335406][ T18] _raw_spin_lock_bh+0x35/0x50 [ 68.341733][ T18] sock_hash_free+0x164/0x820 [ 68.347973][ T18] bpf_map_free_deferred+0xe6/0x110 [ 68.354735][ T18] process_scheduled_works+0xa00/0x1770 [ 68.361860][ T18] worker_thread+0x86d/0xd70 [ 68.368127][ T18] kthread+0x2f0/0x390 [ 68.373766][ T18] ret_from_fork+0x4b/0x80 [ 68.379752][ T18] ret_from_fork_asm+0x1a/0x30 [ 68.386087][ T18] } [ 68.388580][ T18] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 68.396917][ T18] ... acquired at: [ 68.400722][ T18] lock_acquire+0x1e4/0x530 [ 68.405431][ T18] _raw_spin_lock_bh+0x35/0x50 [ 68.410388][ T18] sock_hash_delete_elem+0xb0/0x300 [ 68.415769][ T18] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 68.421411][ T18] bpf_trace_run2+0x204/0x420 [ 68.426276][ T18] enqueue_timer+0x396/0x550 [ 68.431055][ T18] __mod_timer+0xa0e/0xeb0 [ 68.435832][ T18] schedule_timeout+0x1b9/0x310 [ 68.440862][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 68.446418][ T18] kthread_worker_fn+0x4bf/0xab0 [ 68.451556][ T18] kthread+0x2f0/0x390 [ 68.455822][ T18] ret_from_fork+0x4b/0x80 [ 68.460423][ T18] ret_from_fork_asm+0x1a/0x30 [ 68.465372][ T18] [ 68.467696][ T18] [ 68.467696][ T18] stack backtrace: [ 68.473587][ T18] CPU: 0 PID: 18 Comm: rcu_exp_gp_kthr Not tainted 6.8.0-syzkaller-05204-g237bb5f7f7f5 #0 [ 68.483483][ T18] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 68.493541][ T18] Call Trace: [ 68.496824][ T18] [ 68.499764][ T18] dump_stack_lvl+0x1e7/0x2e0 [ 68.504455][ T18] ? __pfx_dump_stack_lvl+0x10/0x10 [ 68.509660][ T18] ? __pfx__printk+0x10/0x10 [ 68.514273][ T18] ? print_shortest_lock_dependencies+0xf2/0x160 [ 68.520637][ T18] validate_chain+0x4dc7/0x58e0 [ 68.525522][ T18] ? __pfx_validate_chain+0x10/0x10 [ 68.530742][ T18] ? __pfx_validate_chain+0x10/0x10 [ 68.535948][ T18] ? register_lock_class+0x102/0x980 [ 68.541238][ T18] ? __pfx_register_lock_class+0x10/0x10 [ 68.546893][ T18] ? mark_lock+0x9a/0x350 [ 68.551249][ T18] __lock_acquire+0x1346/0x1fd0 [ 68.556122][ T18] lock_acquire+0x1e4/0x530 [ 68.560714][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 68.566093][ T18] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 68.571864][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 68.576902][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 68.582280][ T18] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 68.588101][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 68.593133][ T18] ? do_raw_spin_unlock+0x13c/0x8b0 [ 68.598343][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 68.603728][ T18] _raw_spin_lock_bh+0x35/0x50 [ 68.608501][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 68.613882][ T18] sock_hash_delete_elem+0xb0/0x300 [ 68.619114][ T18] bpf_prog_2c29ac5cdc6b1842+0x42/0x46 [ 68.624600][ T18] bpf_trace_run2+0x204/0x420 [ 68.629288][ T18] ? bpf_trace_run2+0x114/0x420 [ 68.634146][ T18] ? __pfx_bpf_trace_run2+0x10/0x10 [ 68.639394][ T18] ? __pfx_debug_object_activate+0x10/0x10 [ 68.645224][ T18] ? lockdep_hardirqs_on+0x99/0x150 [ 68.650457][ T18] enqueue_timer+0x396/0x550 [ 68.655066][ T18] __mod_timer+0xa0e/0xeb0 [ 68.659513][ T18] ? __asan_memset+0x23/0x50 [ 68.664106][ T18] ? __pfx___mod_timer+0x10/0x10 [ 68.669054][ T18] ? __pfx_lockdep_init_map_type+0x10/0x10 [ 68.674866][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 68.680852][ T18] schedule_timeout+0x1b9/0x310 [ 68.685707][ T18] ? __pfx_schedule_timeout+0x10/0x10 [ 68.691080][ T18] ? __pfx_process_timeout+0x10/0x10 [ 68.696376][ T18] rcu_exp_sel_wait_wake+0x77e/0x1df0 [ 68.701765][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 68.707748][ T18] ? __pfx_rcu_exp_sel_wait_wake+0x10/0x10 [ 68.713565][ T18] ? _raw_spin_lock_irq+0xdf/0x120 [ 68.718692][ T18] kthread_worker_fn+0x4bf/0xab0 [ 68.723646][ T18] ? kthread_worker_fn+0xdc/0xab0 [ 68.728696][ T18] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 68.734006][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 68.739471][ T18] kthread+0x2f0/0x390 [ 68.743548][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 68.749011][ T18] ? __pfx_kthread+0x10/0x10 [ 68.753605][ T18] ret_from_fork+0x4b/0x80 [ 68.758033][ T18] ? __pfx_kthread+0x10/0x10 [ 68.762626][ T18] ret_from_fork_asm+0x1a/0x30 [ 68.767428][ T18]