Warning: Permanently added '10.128.0.192' (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 [ 74.425326][ T18] [ 74.427756][ T18] ===================================================== [ 74.434724][ T18] WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected [ 74.442185][ T18] 6.8.0-syzkaller-05236-g443574b03387 #0 Not tainted [ 74.448907][ T18] ----------------------------------------------------- [ 74.456215][ T18] rcu_exp_gp_kthr/18 [HC0[0]:SC0[2]:HE0:SE0] is trying to acquire: [ 74.464928][ T18] ffff88802a1f38f8 (&htab->buckets[i].lock){+...}-{2:2}, at: sock_hash_delete_elem+0xb0/0x300 [ 74.476041][ T18] [ 74.476041][ T18] and this task is already holding: [ 74.483663][ T18] ffff8880b953e158 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 [ 74.493254][ T18] which would create a new lock dependency: [ 74.500300][ T18] (&rq->__lock){-.-.}-{2:2} -> (&htab->buckets[i].lock){+...}-{2:2} [ 74.510018][ T18] [ 74.510018][ T18] but this new dependency connects a HARDIRQ-irq-safe lock: [ 74.519824][ T18] (&rq->__lock){-.-.}-{2:2} [ 74.519854][ T18] [ 74.519854][ T18] ... which became HARDIRQ-irq-safe at: [ 74.532639][ T18] lock_acquire+0x1e4/0x530 [ 74.538073][ T18] _raw_spin_lock_nested+0x31/0x40 [ 74.543423][ T18] raw_spin_rq_lock_nested+0x2a/0x140 [ 74.549735][ T18] scheduler_tick+0xa1/0x6e0 [ 74.555277][ T18] update_process_times+0x202/0x230 [ 74.560779][ T18] tick_periodic+0x190/0x220 [ 74.565661][ T18] tick_handle_periodic+0x4a/0x160 [ 74.571277][ T18] timer_interrupt+0x5c/0x70 [ 74.576790][ T18] __handle_irq_event_percpu+0x28c/0xa30 [ 74.583851][ T18] handle_irq_event+0x89/0x1f0 [ 74.588983][ T18] handle_level_irq+0x3c5/0x6e0 [ 74.594056][ T18] __common_interrupt+0x13a/0x230 [ 74.599510][ T18] common_interrupt+0xa5/0xd0 [ 74.604479][ T18] asm_common_interrupt+0x26/0x40 [ 74.609730][ T18] console_flush_all+0x9cd/0xec0 [ 74.615041][ T18] console_unlock+0x13b/0x4d0 [ 74.619929][ T18] vprintk_emit+0x509/0x720 [ 74.624829][ T18] _printk+0xd5/0x120 [ 74.629250][ T18] apic_intr_mode_init+0x5a/0xb0 [ 74.634323][ T18] x86_late_time_init+0x8f/0xc0 [ 74.639293][ T18] start_kernel+0x3f3/0x500 [ 74.643908][ T18] x86_64_start_reservations+0x2a/0x30 [ 74.649789][ T18] x86_64_start_kernel+0x99/0xa0 [ 74.654848][ T18] common_startup_64+0x13e/0x147 [ 74.660029][ T18] [ 74.660029][ T18] to a HARDIRQ-irq-unsafe lock: [ 74.667328][ T18] (&htab->buckets[i].lock){+...}-{2:2} [ 74.667358][ T18] [ 74.667358][ T18] ... which became HARDIRQ-irq-unsafe at: [ 74.681386][ T18] ... [ 74.681397][ T18] lock_acquire+0x1e4/0x530 [ 74.688959][ T18] _raw_spin_lock_bh+0x35/0x50 [ 74.693844][ T18] sock_hash_free+0x164/0x820 [ 74.698814][ T18] bpf_map_free_deferred+0xe6/0x110 [ 74.704307][ T18] process_scheduled_works+0xa00/0x1770 [ 74.710010][ T18] worker_thread+0x86d/0xd70 [ 74.714724][ T18] kthread+0x2f0/0x390 [ 74.718914][ T18] ret_from_fork+0x4b/0x80 [ 74.723610][ T18] ret_from_fork_asm+0x1a/0x30 [ 74.728495][ T18] [ 74.728495][ T18] other info that might help us debug this: [ 74.728495][ T18] [ 74.738797][ T18] Possible interrupt unsafe locking scenario: [ 74.738797][ T18] [ 74.747138][ T18] CPU0 CPU1 [ 74.752616][ T18] ---- ---- [ 74.758046][ T18] lock(&htab->buckets[i].lock); [ 74.763349][ T18] local_irq_disable(); [ 74.770898][ T18] lock(&rq->__lock); [ 74.777752][ T18] lock(&htab->buckets[i].lock); [ 74.785295][ T18] [ 74.788757][ T18] lock(&rq->__lock); [ 74.793037][ T18] [ 74.793037][ T18] *** DEADLOCK *** [ 74.793037][ T18] [ 74.801549][ T18] 3 locks held by rcu_exp_gp_kthr/18: [ 74.807179][ T18] #0: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: newidle_balance+0x2a8/0x1080 [ 74.817242][ T18] #1: ffff8880b953e158 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 [ 74.827383][ T18] #2: ffffffff8e131920 (rcu_read_lock){....}-{1:2}, at: bpf_trace_run2+0x114/0x420 [ 74.837267][ T18] [ 74.837267][ T18] the dependencies between HARDIRQ-irq-safe lock and the holding lock: [ 74.847983][ T18] -> (&rq->__lock){-.-.}-{2:2} { [ 74.852966][ T18] IN-HARDIRQ-W at: [ 74.857006][ T18] lock_acquire+0x1e4/0x530 [ 74.863271][ T18] _raw_spin_lock_nested+0x31/0x40 [ 74.870076][ T18] raw_spin_rq_lock_nested+0x2a/0x140 [ 74.877289][ T18] scheduler_tick+0xa1/0x6e0 [ 74.883922][ T18] update_process_times+0x202/0x230 [ 74.890789][ T18] tick_periodic+0x190/0x220 [ 74.897061][ T18] tick_handle_periodic+0x4a/0x160 [ 74.904093][ T18] timer_interrupt+0x5c/0x70 [ 74.910639][ T18] __handle_irq_event_percpu+0x28c/0xa30 [ 74.918233][ T18] handle_irq_event+0x89/0x1f0 [ 74.924657][ T18] handle_level_irq+0x3c5/0x6e0 [ 74.931448][ T18] __common_interrupt+0x13a/0x230 [ 74.938230][ T18] common_interrupt+0xa5/0xd0 [ 74.944729][ T18] asm_common_interrupt+0x26/0x40 [ 74.951450][ T18] console_flush_all+0x9cd/0xec0 [ 74.958045][ T18] console_unlock+0x13b/0x4d0 [ 74.964393][ T18] vprintk_emit+0x509/0x720 [ 74.970547][ T18] _printk+0xd5/0x120 [ 74.976201][ T18] apic_intr_mode_init+0x5a/0xb0 [ 74.982813][ T18] x86_late_time_init+0x8f/0xc0 [ 74.989595][ T18] start_kernel+0x3f3/0x500 [ 74.996005][ T18] x86_64_start_reservations+0x2a/0x30 [ 75.003507][ T18] x86_64_start_kernel+0x99/0xa0 [ 75.010474][ T18] common_startup_64+0x13e/0x147 [ 75.017077][ T18] IN-SOFTIRQ-W at: [ 75.021263][ T18] lock_acquire+0x1e4/0x530 [ 75.027473][ T18] _raw_spin_lock_nested+0x31/0x40 [ 75.034384][ T18] raw_spin_rq_lock_nested+0x2a/0x140 [ 75.041546][ T18] try_to_wake_up+0x7d3/0x1470 [ 75.048288][ T18] kick_pool+0x41b/0x5c0 [ 75.054822][ T18] __queue_work+0xc20/0xec0 [ 75.061537][ T18] call_timer_fn+0x17e/0x600 [ 75.067930][ T18] __run_timer_base+0x695/0x8e0 [ 75.074478][ T18] run_timer_softirq+0xb7/0x170 [ 75.081220][ T18] __do_softirq+0x2bc/0x943 [ 75.087852][ T18] __irq_exit_rcu+0xf2/0x1c0 [ 75.095365][ T18] irq_exit_rcu+0x9/0x30 [ 75.101823][ T18] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 75.109703][ T18] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 75.118355][ T18] default_idle+0x13/0x20 [ 75.124712][ T18] default_idle_call+0x74/0xb0 [ 75.131256][ T18] do_idle+0x22f/0x5d0 [ 75.137062][ T18] cpu_startup_entry+0x42/0x60 [ 75.143518][ T18] rest_init+0x2e0/0x300 [ 75.149653][ T18] arch_call_rest_init+0xe/0x10 [ 75.156251][ T18] start_kernel+0x47a/0x500 [ 75.163000][ T18] x86_64_start_reservations+0x2a/0x30 [ 75.171815][ T18] x86_64_start_kernel+0x99/0xa0 [ 75.179711][ T18] common_startup_64+0x13e/0x147 [ 75.187785][ T18] INITIAL USE at: [ 75.193269][ T18] lock_acquire+0x1e4/0x530 [ 75.199601][ T18] _raw_spin_lock_nested+0x31/0x40 [ 75.206559][ T18] raw_spin_rq_lock_nested+0x2a/0x140 [ 75.213534][ T18] rq_attach_root+0xee/0x540 [ 75.219717][ T18] sched_init+0x64e/0xc30 [ 75.225827][ T18] start_kernel+0x1ab/0x500 [ 75.232091][ T18] x86_64_start_reservations+0x2a/0x30 [ 75.239674][ T18] x86_64_start_kernel+0x99/0xa0 [ 75.246293][ T18] common_startup_64+0x13e/0x147 [ 75.253465][ T18] } [ 75.255993][ T18] ... key at: [] sched_init.__key+0x0/0x20 [ 75.264095][ T18] [ 75.264095][ T18] the dependencies between the lock to be acquired [ 75.264107][ T18] and HARDIRQ-irq-unsafe lock: [ 75.277847][ T18] -> (&htab->buckets[i].lock){+...}-{2:2} { [ 75.283871][ T18] HARDIRQ-ON-W at: [ 75.288385][ T18] lock_acquire+0x1e4/0x530 [ 75.294677][ T18] _raw_spin_lock_bh+0x35/0x50 [ 75.301597][ T18] sock_hash_free+0x164/0x820 [ 75.307980][ T18] bpf_map_free_deferred+0xe6/0x110 [ 75.315876][ T18] process_scheduled_works+0xa00/0x1770 [ 75.323131][ T18] worker_thread+0x86d/0xd70 [ 75.329442][ T18] kthread+0x2f0/0x390 [ 75.335639][ T18] ret_from_fork+0x4b/0x80 [ 75.342202][ T18] ret_from_fork_asm+0x1a/0x30 [ 75.348907][ T18] INITIAL USE at: [ 75.353162][ T18] lock_acquire+0x1e4/0x530 [ 75.359890][ T18] _raw_spin_lock_bh+0x35/0x50 [ 75.366273][ T18] sock_hash_free+0x164/0x820 [ 75.372717][ T18] bpf_map_free_deferred+0xe6/0x110 [ 75.379492][ T18] process_scheduled_works+0xa00/0x1770 [ 75.386740][ T18] worker_thread+0x86d/0xd70 [ 75.393069][ T18] kthread+0x2f0/0x390 [ 75.398744][ T18] ret_from_fork+0x4b/0x80 [ 75.404741][ T18] ret_from_fork_asm+0x1a/0x30 [ 75.411168][ T18] } [ 75.413658][ T18] ... key at: [] sock_hash_alloc.__key+0x0/0x20 [ 75.422010][ T18] ... acquired at: [ 75.425818][ T18] lock_acquire+0x1e4/0x530 [ 75.430589][ T18] _raw_spin_lock_bh+0x35/0x50 [ 75.435536][ T18] sock_hash_delete_elem+0xb0/0x300 [ 75.440939][ T18] bpf_prog_d3215eaf8d73ae13+0x42/0x67 [ 75.446607][ T18] bpf_trace_run2+0x204/0x420 [ 75.451470][ T18] set_task_cpu+0x53d/0x5b0 [ 75.456256][ T18] load_balance+0x60f5/0x8840 [ 75.461107][ T18] newidle_balance+0x6be/0x1080 [ 75.466262][ T18] pick_next_task_fair+0x27a/0xde0 [ 75.471711][ T18] __pick_next_task+0xb0/0x2c0 [ 75.476692][ T18] __schedule+0x726/0x4a20 [ 75.481396][ T18] schedule+0x14b/0x320 [ 75.485827][ T18] kthread_worker_fn+0x491/0xab0 [ 75.491504][ T18] kthread+0x2f0/0x390 [ 75.495767][ T18] ret_from_fork+0x4b/0x80 [ 75.500488][ T18] ret_from_fork_asm+0x1a/0x30 [ 75.505464][ T18] [ 75.507808][ T18] [ 75.507808][ T18] stack backtrace: [ 75.513749][ T18] CPU: 0 PID: 18 Comm: rcu_exp_gp_kthr Not tainted 6.8.0-syzkaller-05236-g443574b03387 #0 [ 75.523673][ T18] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 [ 75.534043][ T18] Call Trace: [ 75.537462][ T18] [ 75.540596][ T18] dump_stack_lvl+0x1e7/0x2e0 [ 75.545289][ T18] ? __pfx_dump_stack_lvl+0x10/0x10 [ 75.550682][ T18] ? __pfx__printk+0x10/0x10 [ 75.555525][ T18] ? print_shortest_lock_dependencies+0xf2/0x160 [ 75.562332][ T18] validate_chain+0x4dc7/0x58e0 [ 75.567589][ T18] ? __pfx_validate_chain+0x10/0x10 [ 75.572998][ T18] ? validate_chain+0x11b/0x58e0 [ 75.578139][ T18] ? __pfx_validate_chain+0x10/0x10 [ 75.583363][ T18] ? __pfx_validate_chain+0x10/0x10 [ 75.588667][ T18] ? register_lock_class+0x102/0x980 [ 75.594172][ T18] ? __pfx_register_lock_class+0x10/0x10 [ 75.599831][ T18] ? __pfx_validate_chain+0x10/0x10 [ 75.605241][ T18] ? mark_lock+0x9a/0x350 [ 75.609755][ T18] __lock_acquire+0x1346/0x1fd0 [ 75.614669][ T18] lock_acquire+0x1e4/0x530 [ 75.619236][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 75.624628][ T18] ? __pfx_lockdep_softirqs_off+0x10/0x10 [ 75.630354][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 75.635443][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 75.640856][ T18] ? __pfx___local_bh_disable_ip+0x10/0x10 [ 75.646667][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 75.651715][ T18] ? cpufreq_update_util+0x94/0x250 [ 75.656952][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 75.662362][ T18] _raw_spin_lock_bh+0x35/0x50 [ 75.667309][ T18] ? sock_hash_delete_elem+0xb0/0x300 [ 75.672681][ T18] sock_hash_delete_elem+0xb0/0x300 [ 75.677974][ T18] bpf_prog_d3215eaf8d73ae13+0x42/0x67 [ 75.683562][ T18] bpf_trace_run2+0x204/0x420 [ 75.688273][ T18] ? bpf_trace_run2+0x114/0x420 [ 75.693127][ T18] ? __pfx_bpf_trace_run2+0x10/0x10 [ 75.698344][ T18] ? set_task_cpu+0x4b1/0x5b0 [ 75.703051][ T18] set_task_cpu+0x53d/0x5b0 [ 75.707608][ T18] load_balance+0x60f5/0x8840 [ 75.712333][ T18] ? __pfx_load_balance+0x10/0x10 [ 75.717404][ T18] ? rcu_read_lock_sched_held+0x8d/0x130 [ 75.723067][ T18] ? __lock_acquire+0x1346/0x1fd0 [ 75.728376][ T18] ? __pfx_lock_acquire+0x10/0x10 [ 75.733423][ T18] ? __pfx_sched_clock_cpu+0x10/0x10 [ 75.738827][ T18] newidle_balance+0x6be/0x1080 [ 75.743696][ T18] ? newidle_balance+0x2a8/0x1080 [ 75.748753][ T18] ? __pfx_newidle_balance+0x10/0x10 [ 75.754045][ T18] pick_next_task_fair+0x27a/0xde0 [ 75.759167][ T18] __pick_next_task+0xb0/0x2c0 [ 75.763941][ T18] __schedule+0x726/0x4a20 [ 75.768375][ T18] ? __pfx___schedule+0x10/0x10 [ 75.773231][ T18] ? schedule+0x90/0x320 [ 75.777512][ T18] ? __pfx_lock_release+0x10/0x10 [ 75.782580][ T18] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 75.788587][ T18] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 75.795026][ T18] ? _raw_spin_lock_irq+0xdf/0x120 [ 75.800284][ T18] ? schedule+0x90/0x320 [ 75.804661][ T18] schedule+0x14b/0x320 [ 75.808950][ T18] kthread_worker_fn+0x491/0xab0 [ 75.814009][ T18] ? kthread_worker_fn+0xdc/0xab0 [ 75.819035][ T18] ? __pfx_wait_rcu_exp_gp+0x10/0x10 [ 75.824341][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 75.829901][ T18] kthread+0x2f0/0x390 [ 75.833993][ T18] ? __pfx_kthread_worker_fn+0x10/0x10 [ 75.839482][ T18] ? __pfx_kthread+0x10/0x10 [ 75.844096][ T18] ret_from_fork+0x4b/0x80 [ 75.848562][ T18] ? __pfx_kthread+0x10/0x10 [ 75.853178][ T18] ret_from_fork_asm+0x1a/0x30 [ 75.858177][ T18]