Warning: Permanently added '10.128.0.63' (ED25519) to the list of known hosts. executing program executing program [ 51.024106][ T9] [ 51.026471][ T9] ===================================================== [ 51.033383][ T9] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 51.040824][ T9] 6.1.83-syzkaller #0 Not tainted [ 51.045833][ T9] ----------------------------------------------------- [ 51.052746][ T9] kworker/u4:0/9 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 51.060279][ T9] ffff88807ca218f8 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xac/0x2f0 [ 51.070554][ T9] [ 51.070554][ T9] and this task is already holding: [ 51.077901][ T9] ffff8880b983aa18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 51.087367][ T9] which would create a new lock dependency: [ 51.093235][ T9] (&rq->__lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 51.101313][ T9] [ 51.101313][ T9] but this new dependency connects a HARDIRQ-irq-safe lock: [ 51.110742][ T9] (&rq->__lock){-.-.}-{2:2} [ 51.110761][ T9] [ 51.110761][ T9] ... which became HARDIRQ-irq-safe at: [ 51.123012][ T9] lock_acquire+0x1f8/0x5a0 [ 51.127593][ T9] _raw_spin_lock_nested+0x2d/0x40 [ 51.132792][ T9] raw_spin_rq_lock_nested+0x26/0x140 [ 51.138236][ T9] scheduler_tick+0x9d/0x550 [ 51.142904][ T9] update_process_times+0x17b/0x1b0 [ 51.148177][ T9] tick_periodic+0x197/0x210 [ 51.152841][ T9] tick_handle_periodic+0x46/0x150 [ 51.158032][ T9] timer_interrupt+0x4d/0x60 [ 51.162698][ T9] __handle_irq_event_percpu+0x2a8/0xb20 [ 51.168404][ T9] handle_irq_event+0x85/0x1e0 [ 51.173241][ T9] handle_edge_irq+0x245/0xbf0 [ 51.178078][ T9] __common_interrupt+0xd7/0x1f0 [ 51.183089][ T9] common_interrupt+0x9f/0xc0 [ 51.187840][ T9] asm_common_interrupt+0x22/0x40 [ 51.192938][ T9] console_emit_next_record+0xd67/0x1000 [ 51.198646][ T9] console_unlock+0x278/0x7c0 [ 51.203395][ T9] vprintk_emit+0x523/0x740 [ 51.207971][ T9] _printk+0xd1/0x111 [ 51.212021][ T9] spectre_v2_select_mitigation+0x4f7/0x748 [ 51.217989][ T9] cpu_select_mitigations+0x3d/0x8f [ 51.223261][ T9] arch_cpu_finalize_init+0xf/0x81 [ 51.228444][ T9] start_kernel+0x423/0x53f [ 51.233019][ T9] secondary_startup_64_no_verify+0xcf/0xdb [ 51.238985][ T9] [ 51.238985][ T9] to a HARDIRQ-irq-unsafe lock: [ 51.245985][ T9] (&htab->buckets[i].lock){+...}-{2:2} [ 51.246007][ T9] [ 51.246007][ T9] ... which became HARDIRQ-irq-unsafe at: [ 51.259385][ T9] ... [ 51.259390][ T9] lock_acquire+0x1f8/0x5a0 [ 51.266537][ T9] _raw_spin_lock_bh+0x31/0x40 [ 51.271391][ T9] sock_hash_free+0x160/0x820 [ 51.276171][ T9] process_one_work+0x8a9/0x11d0 [ 51.281205][ T9] worker_thread+0xa47/0x1200 [ 51.285968][ T9] kthread+0x28d/0x320 [ 51.290124][ T9] ret_from_fork+0x1f/0x30 [ 51.294625][ T9] [ 51.294625][ T9] other info that might help us debug this: [ 51.294625][ T9] [ 51.304836][ T9] Possible interrupt unsafe locking scenario: [ 51.304836][ T9] [ 51.313168][ T9] CPU0 CPU1 [ 51.318538][ T9] ---- ---- [ 51.323884][ T9] lock(&htab->buckets[i].lock); [ 51.328902][ T9] local_irq_disable(); [ 51.335642][ T9] lock(&rq->__lock); [ 51.342221][ T9] lock(&htab->buckets[i].lock); [ 51.349749][ T9] [ 51.353188][ T9] lock(&rq->__lock); [ 51.357417][ T9] [ 51.357417][ T9] *** DEADLOCK *** [ 51.357417][ T9] [ 51.365545][ T9] 5 locks held by kworker/u4:0/9: [ 51.370558][ T9] #0: ffff888012479138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 [ 51.381702][ T9] #1: ffffc900000e7d20 ((work_completion)(&map->work)){+.+.}-{0:0}, at: process_one_work+0x7a9/0x11d0 [ 51.392764][ T9] #2: ffffffff8d12ff38 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f0/0x930 [ 51.403661][ T9] #3: ffff8880b983aa18 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 [ 51.413588][ T9] #4: ffffffff8d12a940 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run4+0x16a/0x470 [ 51.422975][ T9] [ 51.422975][ T9] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 51.433369][ T9] -> (&rq->__lock){-.-.}-{2:2} { [ 51.438314][ T9] IN-HARDIRQ-W at: [ 51.442280][ T9] lock_acquire+0x1f8/0x5a0 [ 51.448425][ T9] _raw_spin_lock_nested+0x2d/0x40 [ 51.455176][ T9] raw_spin_rq_lock_nested+0x26/0x140 [ 51.462186][ T9] scheduler_tick+0x9d/0x550 [ 51.468416][ T9] update_process_times+0x17b/0x1b0 [ 51.475253][ T9] tick_periodic+0x197/0x210 [ 51.481482][ T9] tick_handle_periodic+0x46/0x150 [ 51.488229][ T9] timer_interrupt+0x4d/0x60 [ 51.494457][ T9] __handle_irq_event_percpu+0x2a8/0xb20 [ 51.501724][ T9] handle_irq_event+0x85/0x1e0 [ 51.508123][ T9] handle_edge_irq+0x245/0xbf0 [ 51.514533][ T9] __common_interrupt+0xd7/0x1f0 [ 51.521109][ T9] common_interrupt+0x9f/0xc0 [ 51.527429][ T9] asm_common_interrupt+0x22/0x40 [ 51.534095][ T9] console_emit_next_record+0xd67/0x1000 [ 51.541358][ T9] console_unlock+0x278/0x7c0 [ 51.547707][ T9] vprintk_emit+0x523/0x740 [ 51.553848][ T9] _printk+0xd1/0x111 [ 51.559461][ T9] spectre_v2_select_mitigation+0x4f7/0x748 [ 51.567014][ T9] cpu_select_mitigations+0x3d/0x8f [ 51.573874][ T9] arch_cpu_finalize_init+0xf/0x81 [ 51.580648][ T9] start_kernel+0x423/0x53f [ 51.586799][ T9] secondary_startup_64_no_verify+0xcf/0xdb [ 51.594338][ T9] IN-SOFTIRQ-W at: [ 51.598307][ T9] lock_acquire+0x1f8/0x5a0 [ 51.604451][ T9] _raw_spin_lock_nested+0x2d/0x40 [ 51.611207][ T9] raw_spin_rq_lock_nested+0x26/0x140 [ 51.618215][ T9] try_to_wake_up+0x5bd/0x12e0 [ 51.624619][ T9] __queue_work+0xb4b/0xf90 [ 51.630762][ T9] call_timer_fn+0x1ad/0x6b0 [ 51.637112][ T9] __run_timers+0x6a8/0x890 [ 51.643268][ T9] run_timer_softirq+0x63/0xf0 [ 51.649680][ T9] __do_softirq+0x2e9/0xa4c [ 51.655836][ T9] __irq_exit_rcu+0x155/0x240 [ 51.662158][ T9] irq_exit_rcu+0x5/0x20 [ 51.668042][ T9] sysvec_apic_timer_interrupt+0x91/0xb0 [ 51.675312][ T9] asm_sysvec_apic_timer_interrupt+0x16/0x20 [ 51.682928][ T9] default_idle+0xb/0x10 [ 51.688806][ T9] default_idle_call+0x84/0xc0 [ 51.695203][ T9] do_idle+0x251/0x680 [ 51.700912][ T9] cpu_startup_entry+0x3d/0x60 [ 51.707317][ T9] rest_init+0x2da/0x300 [ 51.713194][ T9] start_kernel+0x0/0x53f [ 51.719156][ T9] start_kernel+0x496/0x53f [ 51.725295][ T9] secondary_startup_64_no_verify+0xcf/0xdb [ 51.732829][ T9] INITIAL USE at: [ 51.736708][ T9] lock_acquire+0x1f8/0x5a0 [ 51.742766][ T9] _raw_spin_lock_nested+0x2d/0x40 [ 51.749428][ T9] raw_spin_rq_lock_nested+0x26/0x140 [ 51.756350][ T9] rq_attach_root+0xec/0x540 [ 51.762496][ T9] sched_init+0x6c7/0xcc9 [ 51.768383][ T9] start_kernel+0x1bf/0x53f [ 51.774452][ T9] secondary_startup_64_no_verify+0xcf/0xdb [ 51.781894][ T9] } [ 51.784378][ T9] ... key at: [] sched_init.__key+0x0/0x20 [ 51.792258][ T9] [ 51.792258][ T9] the dependencies between the lock to be acquired [ 51.792265][ T9] and HARDIRQ-irq-unsafe lock: [ 51.805762][ T9] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 51.811655][ T9] HARDIRQ-ON-W at: [ 51.815620][ T9] lock_acquire+0x1f8/0x5a0 [ 51.821764][ T9] _raw_spin_lock_bh+0x31/0x40 [ 51.828164][ T9] sock_hash_free+0x160/0x820 [ 51.834488][ T9] process_one_work+0x8a9/0x11d0 [ 51.841066][ T9] worker_thread+0xa47/0x1200 [ 51.847380][ T9] kthread+0x28d/0x320 [ 51.853088][ T9] ret_from_fork+0x1f/0x30 [ 51.859140][ T9] INITIAL USE at: [ 51.863020][ T9] lock_acquire+0x1f8/0x5a0 [ 51.869075][ T9] _raw_spin_lock_bh+0x31/0x40 [ 51.875385][ T9] sock_hash_free+0x160/0x820 [ 51.881613][ T9] process_one_work+0x8a9/0x11d0 [ 51.888100][ T9] worker_thread+0xa47/0x1200 [ 51.894945][ T9] kthread+0x28d/0x320 [ 51.900570][ T9] ret_from_fork+0x1f/0x30 [ 51.906540][ T9] } [ 51.909028][ T9] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 51.917340][ T9] ... acquired at: [ 51.921124][ T9] lock_acquire+0x1f8/0x5a0 [ 51.925788][ T9] _raw_spin_lock_bh+0x31/0x40 [ 51.930709][ T9] sock_hash_delete_elem+0xac/0x2f0 [ 51.936069][ T9] bpf_prog_2c29ac5cdc6b1842+0x3a/0x3e [ 51.941683][ T9] bpf_trace_run4+0x253/0x470 [ 51.946525][ T9] __schedule+0x2116/0x4550 [ 51.951186][ T9] schedule+0xbf/0x180 [ 51.955417][ T9] synchronize_rcu_expedited+0x777/0x930 [ 51.961205][ T9] synchronize_rcu+0x11c/0x3f0 [ 51.966124][ T9] sock_hash_free+0x769/0x820 [ 51.970964][ T9] process_one_work+0x8a9/0x11d0 [ 51.976061][ T9] worker_thread+0xa47/0x1200 [ 51.980894][ T9] kthread+0x28d/0x320 [ 51.985126][ T9] ret_from_fork+0x1f/0x30 [ 51.989704][ T9] [ 51.992012][ T9] [ 51.992012][ T9] stack backtrace: [ 51.997885][ T9] CPU: 0 PID: 9 Comm: kworker/u4:0 Not tainted 6.1.83-syzkaller #0 [ 52.005760][ T9] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 52.015804][ T9] Workqueue: events_unbound bpf_map_free_deferred [ 52.022224][ T9] Call Trace: [ 52.025490][ T9] [ 52.028415][ T9] dump_stack_lvl+0x1e3/0x2cb [ 52.033084][ T9] ? nf_tcp_handle_invalid+0x642/0x642 [ 52.038532][ T9] ? panic+0x75d/0x75d [ 52.042588][ T9] ? print_shortest_lock_dependencies+0xee/0x150 [ 52.048908][ T9] validate_chain+0x4d16/0x5950 [ 52.053758][ T9] ? reacquire_held_locks+0x660/0x660 [ 52.059122][ T9] ? add_chain_block+0x850/0x850 [ 52.064051][ T9] ? register_lock_class+0x100/0x990 [ 52.069327][ T9] ? is_dynamic_key+0x260/0x260 [ 52.074170][ T9] ? mark_lock+0x9a/0x340 [ 52.078513][ T9] __lock_acquire+0x125b/0x1f80 [ 52.083359][ T9] lock_acquire+0x1f8/0x5a0 [ 52.087849][ T9] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.093223][ T9] ? lockdep_softirqs_on+0x590/0x590 [ 52.098502][ T9] ? read_lock_is_recursive+0x10/0x10 [ 52.103865][ T9] ? psi_task_switch+0x43d/0x770 [ 52.108787][ T9] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.114148][ T9] ? __bpf_trace_softirq+0x10/0x10 [ 52.119250][ T9] ? read_lock_is_recursive+0x10/0x10 [ 52.124614][ T9] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.129976][ T9] _raw_spin_lock_bh+0x31/0x40 [ 52.134730][ T9] ? sock_hash_delete_elem+0xac/0x2f0 [ 52.140091][ T9] sock_hash_delete_elem+0xac/0x2f0 [ 52.145280][ T9] bpf_prog_2c29ac5cdc6b1842+0x3a/0x3e [ 52.150724][ T9] ? bpf_trace_run4+0x16a/0x470 [ 52.155564][ T9] bpf_trace_run4+0x253/0x470 [ 52.160227][ T9] ? asm_exc_int3+0x35/0x40 [ 52.164724][ T9] ? bpf_trace_run3+0x440/0x440 [ 52.169561][ T9] ? __schedule+0x205b/0x4550 [ 52.174227][ T9] __schedule+0x2116/0x4550 [ 52.178720][ T9] ? lockdep_hardirqs_on+0x94/0x130 [ 52.183906][ T9] ? mark_lock+0x9a/0x340 [ 52.188227][ T9] ? __sched_text_start+0x8/0x8 [ 52.193066][ T9] ? wq_worker_last_func+0x40/0x40 [ 52.198167][ T9] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 52.204046][ T9] ? wq_worker_sleeping+0x5f/0x270 [ 52.209148][ T9] schedule+0xbf/0x180 [ 52.213204][ T9] synchronize_rcu_expedited+0x777/0x930 [ 52.218821][ T9] ? reacquire_held_locks+0x660/0x660 [ 52.224186][ T9] ? synchronize_rcu+0x3f0/0x3f0 [ 52.229108][ T9] ? lockdep_unlock+0x165/0x300 [ 52.233949][ T9] ? look_up_lock_class+0x77/0x140 [ 52.239049][ T9] ? sync_rcu_exp_done_unlocked+0x140/0x140 [ 52.244930][ T9] ? is_dynamic_key+0x260/0x260 [ 52.249771][ T9] ? mark_lock+0x9a/0x340 [ 52.254095][ T9] ? __lock_acquire+0x125b/0x1f80 [ 52.259110][ T9] ? wake_bit_function+0x210/0x210 [ 52.264214][ T9] synchronize_rcu+0x11c/0x3f0 [ 52.268968][ T9] ? schedule_delayed_monitor_work+0x160/0x160 [ 52.275109][ T9] ? print_irqtrace_events+0x210/0x210 [ 52.280563][ T9] ? __local_bh_enable_ip+0x164/0x1f0 [ 52.285924][ T9] ? lockdep_hardirqs_on+0x94/0x130 [ 52.291108][ T9] ? __local_bh_enable_ip+0x164/0x1f0 [ 52.296469][ T9] ? sock_hash_free+0x335/0x820 [ 52.301315][ T9] ? _local_bh_enable+0xa0/0xa0 [ 52.306155][ T9] ? sock_hash_free+0x160/0x820 [ 52.310996][ T9] sock_hash_free+0x769/0x820 [ 52.315668][ T9] ? _raw_spin_unlock_irqrestore+0xd9/0x130 [ 52.321546][ T9] ? sock_hash_alloc+0x500/0x500 [ 52.326476][ T9] ? bpf_map_free_deferred+0x46/0xc0 [ 52.331750][ T9] ? bpf_map_free_deferred+0x46/0xc0 [ 52.337024][ T9] ? kfree+0x30/0x190 [ 52.340992][ T9] ? process_one_work+0x7a9/0x11d0 [ 52.346091][ T9] process_one_work+0x8a9/0x11d0 [ 52.351022][ T9] ? worker_detach_from_pool+0x260/0x260 [ 52.356650][ T9] ? _raw_spin_lock_irqsave+0x120/0x120 [ 52.362182][ T9] ? kthread_data+0x4e/0xc0 [ 52.366678][ T9] ? wq_worker_running+0x97/0x190 [ 52.371734][ T9] worker_thread+0xa47/0x1200 [ 52.376408][ T9] kthread+0x28d/0x320 [ 52.380472][ T9] ? worker_clr_flags+0x190/0x190 [ 52.385485][ T9] ? kthread_blkcg+0xd0/0xd0 [ 52.390066][ T9] ret_from_fork+0x1f/0x30 [ 52.394480][ T9] [ 52.397690][ T31] ------------[ cut here ]------------