Warning: Permanently added '10.128.1.73' (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 executing program executing program executing program executing program executing program [ 51.836576][ T13] [ 51.839030][ T13] ===================================================== [ 51.845962][ T13] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 51.853430][ T13] 5.15.152-syzkaller #0 Not tainted [ 51.858624][ T13] ----------------------------------------------------- [ 51.865556][ T13] kworker/0:1/13 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 51.873201][ T13] ffff88807e85e8d8 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 51.883520][ T13] [ 51.883520][ T13] and this task is already holding: [ 51.890876][ T13] ffff8880b9a28098 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 [ 51.899748][ T13] which would create a new lock dependency: [ 51.905625][ T13] (&base->lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 51.913712][ T13] [ 51.913712][ T13] but this new dependency connects a HARDIRQ-irq-safe lock: [ 51.923161][ T13] (&base->lock){-.-.}-{2:2} [ 51.923182][ T13] [ 51.923182][ T13] ... which became HARDIRQ-irq-safe at: [ 51.935454][ T13] lock_acquire+0x1db/0x4f0 [ 51.940043][ T13] _raw_spin_lock_irqsave+0xd1/0x120 [ 51.945417][ T13] lock_timer_base+0x120/0x260 [ 51.950268][ T13] add_timer_on+0x1eb/0x580 [ 51.954854][ T13] handle_irq_event+0x124/0x2b0 [ 51.959811][ T13] handle_level_irq+0x3ab/0x6c0 [ 51.964867][ T13] __common_interrupt+0xd7/0x1f0 [ 51.969924][ T13] common_interrupt+0x9f/0xc0 [ 51.974701][ T13] asm_common_interrupt+0x22/0x40 [ 51.979817][ T13] _raw_spin_unlock_irqrestore+0xd4/0x130 [ 51.985774][ T13] __setup_irq+0x1302/0x1d90 [ 51.990464][ T13] request_threaded_irq+0x2a7/0x380 [ 51.995749][ T13] setup_default_timer_irq+0x1f/0x30 [ 52.001121][ T13] x86_late_time_init+0x51/0x86 [ 52.006063][ T13] start_kernel+0x40a/0x535 [ 52.010645][ T13] secondary_startup_64_no_verify+0xb1/0xbb [ 52.016648][ T13] [ 52.016648][ T13] to a HARDIRQ-irq-unsafe lock: [ 52.023653][ T13] (&htab->buckets[i].lock){+...}-{2:2} [ 52.023678][ T13] [ 52.023678][ T13] ... which became HARDIRQ-irq-unsafe at: [ 52.037074][ T13] ... [ 52.037081][ T13] lock_acquire+0x1db/0x4f0 [ 52.044265][ T13] _raw_spin_lock_bh+0x31/0x40 [ 52.049124][ T13] sock_hash_free+0x14c/0x780 [ 52.053881][ T13] process_one_work+0x8a1/0x10c0 [ 52.058914][ T13] worker_thread+0xaca/0x1280 [ 52.063671][ T13] kthread+0x3f6/0x4f0 [ 52.067844][ T13] ret_from_fork+0x1f/0x30 [ 52.072347][ T13] [ 52.072347][ T13] other info that might help us debug this: [ 52.072347][ T13] [ 52.082563][ T13] Possible interrupt unsafe locking scenario: [ 52.082563][ T13] [ 52.090873][ T13] CPU0 CPU1 [ 52.096231][ T13] ---- ---- [ 52.101583][ T13] lock(&htab->buckets[i].lock); [ 52.106600][ T13] local_irq_disable(); [ 52.113347][ T13] lock(&base->lock); [ 52.119929][ T13] lock(&htab->buckets[i].lock); [ 52.127469][ T13] [ 52.130911][ T13] lock(&base->lock); [ 52.135158][ T13] [ 52.135158][ T13] *** DEADLOCK *** [ 52.135158][ T13] [ 52.143293][ T13] 4 locks held by kworker/0:1/13: [ 52.148315][ T13] #0: ffff888011c72138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 [ 52.158670][ T13] #1: ffffc90000d27d20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 [ 52.170071][ T13] #2: ffff8880b9a28098 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x120/0x260 [ 52.179496][ T13] #3: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x5/0x30 [ 52.188800][ T13] [ 52.188800][ T13] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 52.199194][ T13] -> (&base->lock){-.-.}-{2:2} { [ 52.204139][ T13] IN-HARDIRQ-W at: [ 52.208110][ T13] lock_acquire+0x1db/0x4f0 [ 52.214257][ T13] _raw_spin_lock_irqsave+0xd1/0x120 [ 52.221194][ T13] lock_timer_base+0x120/0x260 [ 52.227704][ T13] add_timer_on+0x1eb/0x580 [ 52.233881][ T13] handle_irq_event+0x124/0x2b0 [ 52.240399][ T13] handle_level_irq+0x3ab/0x6c0 [ 52.246895][ T13] __common_interrupt+0xd7/0x1f0 [ 52.253751][ T13] common_interrupt+0x9f/0xc0 [ 52.260074][ T13] asm_common_interrupt+0x22/0x40 [ 52.266766][ T13] _raw_spin_unlock_irqrestore+0xd4/0x130 [ 52.274133][ T13] __setup_irq+0x1302/0x1d90 [ 52.280376][ T13] request_threaded_irq+0x2a7/0x380 [ 52.287221][ T13] setup_default_timer_irq+0x1f/0x30 [ 52.294156][ T13] x86_late_time_init+0x51/0x86 [ 52.300656][ T13] start_kernel+0x40a/0x535 [ 52.306806][ T13] secondary_startup_64_no_verify+0xb1/0xbb [ 52.314348][ T13] IN-SOFTIRQ-W at: [ 52.318330][ T13] lock_acquire+0x1db/0x4f0 [ 52.324476][ T13] _raw_spin_lock_irq+0xcf/0x110 [ 52.331060][ T13] __run_timers+0x111/0x890 [ 52.337211][ T13] run_timer_softirq+0x63/0xf0 [ 52.343621][ T13] __do_softirq+0x3b3/0x93a [ 52.349773][ T13] __irq_exit_rcu+0x155/0x240 [ 52.356095][ T13] irq_exit_rcu+0x5/0x20 [ 52.361981][ T13] common_interrupt+0xa4/0xc0 [ 52.368305][ T13] asm_common_interrupt+0x22/0x40 [ 52.375002][ T13] console_unlock+0xe53/0x12b0 [ 52.381413][ T13] vprintk_emit+0xbf/0x150 [ 52.387571][ T13] _printk+0xd1/0x111 [ 52.393208][ T13] cpu_select_mitigations+0x38/0x8f [ 52.400056][ T13] arch_cpu_finalize_init+0xf/0x81 [ 52.406990][ T13] start_kernel+0x419/0x535 [ 52.413148][ T13] secondary_startup_64_no_verify+0xb1/0xbb [ 52.420695][ T13] INITIAL USE at: [ 52.424583][ T13] lock_acquire+0x1db/0x4f0 [ 52.430644][ T13] _raw_spin_lock_irqsave+0xd1/0x120 [ 52.437490][ T13] lock_timer_base+0x120/0x260 [ 52.443814][ T13] add_timer_on+0x1eb/0x580 [ 52.449882][ T13] handle_irq_event+0x124/0x2b0 [ 52.456294][ T13] handle_level_irq+0x3ab/0x6c0 [ 52.462792][ T13] __common_interrupt+0xd7/0x1f0 [ 52.469309][ T13] common_interrupt+0x9f/0xc0 [ 52.475544][ T13] asm_common_interrupt+0x22/0x40 [ 52.482126][ T13] _raw_spin_unlock_irqrestore+0xd4/0x130 [ 52.489406][ T13] __setup_irq+0x1302/0x1d90 [ 52.495560][ T13] request_threaded_irq+0x2a7/0x380 [ 52.502321][ T13] setup_default_timer_irq+0x1f/0x30 [ 52.509169][ T13] x86_late_time_init+0x51/0x86 [ 52.515580][ T13] start_kernel+0x40a/0x535 [ 52.521640][ T13] secondary_startup_64_no_verify+0xb1/0xbb [ 52.529117][ T13] } [ 52.531617][ T13] ... key at: [] init_timer_cpu.__key+0x0/0x20 [ 52.539943][ T13] [ 52.539943][ T13] the dependencies between the lock to be acquired [ 52.539951][ T13] and HARDIRQ-irq-unsafe lock: [ 52.554409][ T13] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 52.560313][ T13] HARDIRQ-ON-W at: [ 52.564375][ T13] lock_acquire+0x1db/0x4f0 [ 52.570527][ T13] _raw_spin_lock_bh+0x31/0x40 [ 52.576940][ T13] sock_hash_free+0x14c/0x780 [ 52.583261][ T13] process_one_work+0x8a1/0x10c0 [ 52.589847][ T13] worker_thread+0xaca/0x1280 [ 52.596176][ T13] kthread+0x3f6/0x4f0 [ 52.601886][ T13] ret_from_fork+0x1f/0x30 [ 52.607950][ T13] INITIAL USE at: [ 52.611836][ T13] lock_acquire+0x1db/0x4f0 [ 52.617901][ T13] _raw_spin_lock_bh+0x31/0x40 [ 52.624252][ T13] sock_hash_free+0x14c/0x780 [ 52.630592][ T13] process_one_work+0x8a1/0x10c0 [ 52.637098][ T13] worker_thread+0xaca/0x1280 [ 52.643353][ T13] kthread+0x3f6/0x4f0 [ 52.648982][ T13] ret_from_fork+0x1f/0x30 [ 52.654958][ T13] } [ 52.657448][ T13] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 52.665773][ T13] ... acquired at: [ 52.669570][ T13] lock_acquire+0x1db/0x4f0 [ 52.674241][ T13] _raw_spin_lock_bh+0x31/0x40 [ 52.679187][ T13] sock_hash_delete_elem+0xac/0x2f0 [ 52.684565][ T13] bpf_prog_2c29ac5cdc6b1842+0x3a/0x7c0 [ 52.690284][ T13] bpf_trace_run3+0x1d1/0x380 [ 52.695149][ T13] enqueue_timer+0x3ae/0x540 [ 52.699915][ T13] __mod_timer+0xa60/0xeb0 [ 52.704507][ T13] schedule_timeout+0x1b4/0x300 [ 52.709529][ T13] rcu_exp_sel_wait_wake+0x7cb/0x1c00 [ 52.715244][ T13] process_one_work+0x8a1/0x10c0 [ 52.720440][ T13] worker_thread+0xaca/0x1280 [ 52.725289][ T13] kthread+0x3f6/0x4f0 [ 52.729525][ T13] ret_from_fork+0x1f/0x30 [ 52.734113][ T13] [ 52.736448][ T13] [ 52.736448][ T13] stack backtrace: [ 52.742328][ T13] CPU: 0 PID: 13 Comm: kworker/0:1 Not tainted 5.15.152-syzkaller #0 [ 52.750402][ T13] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 52.760465][ T13] Workqueue: rcu_gp wait_rcu_exp_gp [ 52.765676][ T13] Call Trace: [ 52.768952][ T13] [ 52.771877][ T13] dump_stack_lvl+0x1e3/0x2cb [ 52.776557][ T13] ? io_uring_drop_tctx_refs+0x19d/0x19d [ 52.782189][ T13] ? panic+0x84d/0x84d [ 52.786257][ T13] ? print_shortest_lock_dependencies+0xee/0x150 [ 52.792589][ T13] validate_chain+0x4d01/0x5930 [ 52.797445][ T13] ? reacquire_held_locks+0x660/0x660 [ 52.802824][ T13] ? register_lock_class+0x100/0x9a0 [ 52.808107][ T13] ? validate_chain+0x112/0x5930 [ 52.813044][ T13] ? is_dynamic_key+0x1f0/0x1f0 [ 52.817895][ T13] ? mark_lock+0x98/0x340 [ 52.822222][ T13] __lock_acquire+0x1295/0x1ff0 [ 52.827075][ T13] lock_acquire+0x1db/0x4f0 [ 52.831575][ T13] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.836947][ T13] ? lockdep_softirqs_on+0x590/0x590 [ 52.842234][ T13] ? read_lock_is_recursive+0x10/0x10 [ 52.847605][ T13] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.853001][ T13] ? __bpf_trace_softirq+0x10/0x10 [ 52.858116][ T13] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.863487][ T13] _raw_spin_lock_bh+0x31/0x40 [ 52.868430][ T13] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.873819][ T13] sock_hash_delete_elem+0xac/0x2f0 [ 52.879017][ T13] bpf_prog_2c29ac5cdc6b1842+0x3a/0x7c0 [ 52.884562][ T13] bpf_trace_run3+0x1d1/0x380 [ 52.889343][ T13] ? bpf_trace_run2+0x340/0x340 [ 52.894240][ T13] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 52.900150][ T13] ? _raw_spin_lock_irqsave+0xdd/0x120 [ 52.905631][ T13] ? _raw_spin_lock+0x40/0x40 [ 52.910305][ T13] ? __debug_object_init+0x258/0xd30 [ 52.915636][ T13] enqueue_timer+0x3ae/0x540 [ 52.920232][ T13] __mod_timer+0xa60/0xeb0 [ 52.924743][ T13] ? mod_timer_pending+0x20/0x20 [ 52.929776][ T13] ? lockdep_softirqs_off+0x420/0x420 [ 52.935165][ T13] ? lockdep_hardirqs_on_prepare+0x438/0x7a0 [ 52.941936][ T13] ? print_irqtrace_events+0x210/0x210 [ 52.947484][ T13] schedule_timeout+0x1b4/0x300 [ 52.952337][ T13] ? console_conditional_schedule+0x40/0x40 [ 52.958250][ T13] ? update_process_times+0x200/0x200 [ 52.963628][ T13] rcu_exp_sel_wait_wake+0x7cb/0x1c00 [ 52.969004][ T13] ? rcu_check_gp_start_stall+0x450/0x450 [ 52.974738][ T13] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 52.980636][ T13] ? do_raw_spin_unlock+0x137/0x8b0 [ 52.985837][ T13] process_one_work+0x8a1/0x10c0 [ 52.990780][ T13] ? worker_detach_from_pool+0x260/0x260 [ 52.996424][ T13] ? _raw_spin_lock_irqsave+0x120/0x120 [ 53.001965][ T13] ? kthread_data+0x4e/0xc0 [ 53.006470][ T13] ? wq_worker_running+0x97/0x170 [ 53.011495][ T13] worker_thread+0xaca/0x1280 [ 53.016195][ T13] kthread+0x3f6/0x4f0 [ 53.020259][ T13] ? rcu_lock_release+0x20/0x20 [ 53.025105][ T13] ? kthread_blkcg+0xd0/0xd0 [ 53.029696][ T13] ret_from_fork+0x1f/0x30 [ 53.034119][ T13]