[ 576.711417][ T5329] netem: version 1.3
[ 648.488560][ C0]
[ 648.488759][ C0] ======================================================
[ 648.488981][ C0] WARNING: possible circular locking dependency detected
[ 648.489194][ C0] 6.9.0-rc2-virtme #1 Not tainted
[ 648.489392][ C0] ------------------------------------------------------
[ 648.489611][ C0] mptcp_join.sh/5666 is trying to acquire lock:
[ 648.489866][ C0] ffff888003ee3918 (&hashinfo->ehash_locks[i]){+.-.}-{2:2}, at: tw_timer_handler+0xe9/0x130
[ 648.490236][ C0]
[ 648.490236][ C0] but task is already holding lock:
[ 648.490511][ C0] ffffc90000007d68 ((&tw->tw_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230
[ 648.490831][ C0]
[ 648.490831][ C0] which lock already depends on the new lock.
[ 648.490831][ C0]
[ 648.491177][ C0]
[ 648.491177][ C0] the existing dependency chain (in reverse order) is:
[ 648.491499][ C0]
[ 648.491499][ C0] -> #1 ((&tw->tw_timer)){+.-.}-{0:0}:
[ 648.491760][ C0] __lock_acquire+0xaf0/0x1570
[ 648.491950][ C0] lock_acquire.part.0+0xeb/0x330
[ 648.492117][ C0] __timer_delete_sync+0xe1/0x110
[ 648.492303][ C0] inet_twsk_deschedule_put+0xec/0x150
[ 648.492550][ C0] inet_twsk_purge+0x4c8/0x660
[ 648.492721][ C0] tcp_twsk_purge+0x112/0x160
[ 648.492910][ C0] tcp_sk_exit_batch+0x17/0x120
[ 648.493078][ C0] cleanup_net+0x4f3/0xa20
[ 648.493273][ C0] process_one_work+0xe2c/0x1730
[ 648.493450][ C0] worker_thread+0x587/0xd30
[ 648.493619][ C0] kthread+0x28a/0x350
[ 648.493793][ C0] ret_from_fork+0x31/0x70
[ 648.493979][ C0] ret_from_fork_asm+0x1a/0x30
[ 648.494147][ C0]
[ 648.494147][ C0] -> #0 (&hashinfo->ehash_locks[i]){+.-.}-{2:2}:
[ 648.494416][ C0] check_prev_add+0x182/0xce0
[ 648.494589][ C0] validate_chain+0x71d/0x9b0
[ 648.494789][ C0] __lock_acquire+0xaf0/0x1570
[ 648.494963][ C0] lock_acquire.part.0+0xeb/0x330
[ 648.495158][ C0] _raw_spin_lock+0x30/0x40
[ 648.495346][ C0] tw_timer_handler+0xe9/0x130
[ 648.495534][ C0] call_timer_fn+0x13b/0x230
[ 648.495721][ C0] __run_timers+0x545/0x810
[ 648.495905][ C0] run_timer_softirq+0x7a/0x1b0
[ 648.496132][ C0] __do_softirq+0x1f8/0x5df
[ 648.496311][ C0] irq_exit_rcu+0x97/0xc0
[ 648.496491][ C0] sysvec_apic_timer_interrupt+0x75/0x80
[ 648.496718][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 648.496943][ C0] _raw_spin_unlock_irqrestore+0x43/0x70
[ 648.497161][ C0] free_to_partial_list+0x1a5/0x340
[ 648.497334][ C0] qlist_free_all+0x4c/0x140
[ 648.497504][ C0] kasan_quarantine_reduce+0x192/0x1e0
[ 648.497712][ C0] __kasan_slab_alloc+0x49/0x70
[ 648.497880][ C0] kmalloc_trace+0x101/0x280
[ 648.498063][ C0] load_elf_binary+0x5b7/0x2840
[ 648.498245][ C0] search_binary_handler+0x152/0x550
[ 648.498461][ C0] exec_binprm+0x120/0x400
[ 648.498632][ C0] bprm_execve+0xe9/0x4f0
[ 648.498802][ C0] do_execveat_common.isra.0+0x4a6/0x6a0
[ 648.499028][ C0] __x64_sys_execve+0x8c/0xb0
[ 648.499201][ C0] do_syscall_64+0xc6/0x1e0
[ 648.499383][ C0] entry_SYSCALL_64_after_hwframe+0x72/0x7a
[ 648.499608][ C0]
[ 648.499608][ C0] other info that might help us debug this:
[ 648.499608][ C0]
[ 648.499937][ C0] Possible unsafe locking scenario:
[ 648.499937][ C0]
[ 648.500183][ C0] CPU0 CPU1
[ 648.500362][ C0] ---- ----
[ 648.500537][ C0] lock((&tw->tw_timer));
[ 648.500714][ C0] lock(&hashinfo->ehash_locks[i]);
[ 648.500972][ C0] lock((&tw->tw_timer));
[ 648.501182][ C0] lock(&hashinfo->ehash_locks[i]);
[ 648.501352][ C0]
[ 648.501352][ C0] *** DEADLOCK ***
[ 648.501352][ C0]
[ 648.501596][ C0] 3 locks held by mptcp_join.sh/5666:
[ 648.501767][ C0] #0: ffff8880051734b8 (&sig->cred_guard_mutex){+.+.}-{3:3}, at: bprm_execve+0x51/0x4f0
[ 648.502070][ C0] #1: ffffffffad745f50 (remove_cache_srcu){.+.+}-{0:0}, at: kasan_quarantine_reduce+0x85/0x1e0
[ 648.502413][ C0] #2: ffffc90000007d68 ((&tw->tw_timer)){+.-.}-{0:0}, at: call_timer_fn+0xe8/0x230
[ 648.502715][ C0]
[ 648.502715][ C0] stack backtrace:
[ 648.502945][ C0] CPU: 0 PID: 5666 Comm: mptcp_join.sh Not tainted 6.9.0-rc2-virtme #1
[ 648.503202][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 648.503594][ C0] Call Trace:
[ 648.503727][ C0]
[ 648.503812][ C0] dump_stack_lvl+0x82/0xd0
[ 648.504008][ C0] check_noncircular+0x2f9/0x3e0
[ 648.504182][ C0] ? __pfx_check_noncircular+0x10/0x10
[ 648.504367][ C0] ? lock_release+0x13/0x110
[ 648.504558][ C0] ? is_bpf_text_address+0x71/0x120
[ 648.504738][ C0] ? alloc_chain_hlocks+0x4e0/0x720
[ 648.504940][ C0] check_prev_add+0x182/0xce0
[ 648.505141][ C0] validate_chain+0x71d/0x9b0
[ 648.505342][ C0] ? __pfx_validate_chain+0x10/0x10
[ 648.505530][ C0] ? hlock_class+0x4e/0x130
[ 648.505731][ C0] ? mark_lock+0x38/0x3e0
[ 648.505895][ C0] __lock_acquire+0xaf0/0x1570
[ 648.506111][ C0] ? __pfx_tw_timer_handler+0x10/0x10
[ 648.506330][ C0] lock_acquire.part.0+0xeb/0x330
[ 648.506551][ C0] ? tw_timer_handler+0xe9/0x130
[ 648.506728][ C0] ? __pfx_tw_timer_handler+0x10/0x10
[ 648.506917][ C0] ? lock_acquire.part.0+0xeb/0x330
[ 648.507085][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 648.507257][ C0] ? trace_lock_acquire+0x135/0x1c0
[ 648.507422][ C0] ? tw_timer_handler+0xe9/0x130
[ 648.507617][ C0] ? lock_acquire+0x32/0xc0
[ 648.507786][ C0] ? tw_timer_handler+0xe9/0x130
[ 648.507965][ C0] _raw_spin_lock+0x30/0x40
[ 648.508138][ C0] ? tw_timer_handler+0xe9/0x130
[ 648.508316][ C0] tw_timer_handler+0xe9/0x130
[ 648.508505][ C0] call_timer_fn+0x13b/0x230
[ 648.508677][ C0] ? call_timer_fn+0xe8/0x230
[ 648.508865][ C0] ? call_timer_fn+0xe8/0x230
[ 648.509030][ C0] ? __pfx_call_timer_fn+0x10/0x10
[ 648.509204][ C0] ? hlock_class+0x4e/0x130
[ 648.509381][ C0] ? mark_held_locks+0x9e/0xe0
[ 648.509574][ C0] __run_timers+0x545/0x810
[ 648.509750][ C0] ? __pfx_tw_timer_handler+0x10/0x10
[ 648.509941][ C0] ? __pfx___run_timers+0x10/0x10
[ 648.510119][ C0] ? do_raw_spin_lock+0x131/0x270
[ 648.510302][ C0] ? __pfx_do_raw_spin_lock+0x10/0x10
[ 648.510480][ C0] ? lock_acquire+0x32/0xc0
[ 648.510667][ C0] ? run_timer_softirq+0x72/0x1b0
[ 648.510852][ C0] run_timer_softirq+0x7a/0x1b0
[ 648.511037][ C0] __do_softirq+0x1f8/0x5df
[ 648.511228][ C0] irq_exit_rcu+0x97/0xc0
[ 648.511355][ C0] sysvec_apic_timer_interrupt+0x75/0x80
[ 648.511521][ C0]
[ 648.511628][ C0]
[ 648.511713][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20
[ 648.511941][ C0] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70
[ 648.512162][ C0] Code: 10 e8 a1 79 91 fd 48 89 ef e8 d9 e9 91 fd 81 e3 00 02 00 00 75 1d 9c 58 f6 c4 02 75 29 48 85 db 74 01 fb 65 ff 0d 35 f2 c5 53 <74> 0e 5b 5d c3 cc cc cc cc e8 9f e5 b4 fd eb dc 0f 1f 44 00 00 5b
[ 648.512855][ C0] RSP: 0018:ffffc9000136faa8 EFLAGS: 00000286
[ 648.513086][ C0] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff5eb4355
[ 648.513353][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffac3dd7a1
[ 648.513636][ C0] RBP: ffff888001041080 R08: 0000000000000001 R09: fffffbfff5eb22a9
[ 648.513894][ C0] R10: ffffffffaf59154f R11: 0000000000001000 R12: ffff8880010433c0
[ 648.514156][ C0] R13: ffff88800f04c000 R14: 0000000000000286 R15: ffff888001041080
[ 648.514415][ C0] ? _raw_spin_unlock_irqrestore+0x51/0x70
[ 648.514630][ C0] free_to_partial_list+0x1a5/0x340
[ 648.514802][ C0] ? qlist_free_all+0x47/0x140
[ 648.514999][ C0] qlist_free_all+0x4c/0x140
[ 648.515172][ C0] kasan_quarantine_reduce+0x192/0x1e0
[ 648.515370][ C0] __kasan_slab_alloc+0x49/0x70
[ 648.515546][ C0] kmalloc_trace+0x101/0x280
[ 648.515725][ C0] load_elf_binary+0x5b7/0x2840
[ 648.515893][ C0] ? find_held_lock+0x2c/0x110
[ 648.516101][ C0] ? __lock_release+0x103/0x460
[ 648.516270][ C0] ? search_binary_handler+0x134/0x550
[ 648.516461][ C0] ? __pfx___lock_release+0x10/0x10
[ 648.516649][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 648.516862][ C0] ? __pfx_load_elf_binary+0x10/0x10
[ 648.517035][ C0] ? search_binary_handler+0x134/0x550
[ 648.517232][ C0] search_binary_handler+0x152/0x550
[ 648.517413][ C0] ? __pfx_search_binary_handler+0x10/0x10
[ 648.517648][ C0] ? __task_pid_nr_ns+0x11f/0x410
[ 648.517840][ C0] ? exec_binprm+0x100/0x400
[ 648.518029][ C0] exec_binprm+0x120/0x400
[ 648.518202][ C0] bprm_execve+0xe9/0x4f0
[ 648.518333][ C0] do_execveat_common.isra.0+0x4a6/0x6a0
[ 648.518505][ C0] ? getname_flags+0xbd/0x3d0
[ 648.518683][ C0] __x64_sys_execve+0x8c/0xb0
[ 648.518846][ C0] do_syscall_64+0xc6/0x1e0
[ 648.519014][ C0] entry_SYSCALL_64_after_hwframe+0x72/0x7a
[ 648.519224][ C0] RIP: 0033:0x7f0c9f1dd40b
[ 648.519398][ C0] Code: c0 75 03 5f ff e7 c3 48 8b 0d f1 a9 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 80 00 00 00 00 f3 0f 1e fa b8 3b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c5 a9 1b 00 f7 d8 64 89 01 48
[ 648.520024][ C0] RSP: 002b:00007fffbbb40748 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
[ 648.520286][ C0] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0c9f1dd40b
[ 648.520543][ C0] RDX: 0000557b4bdb6340 RSI: 0000557b4bdaef40 RDI: 0000557b4bdb3fe0
[ 648.520803][ C0] RBP: 0000557b4bdb3fe0 R08: 0000557b4bd8f1e0 R09: 0000000000000020
[ 648.521184][ C0] R10: 00000000000001b6 R11: 0000000000000246 R12: 00000000ffffffff
[ 648.521457][ C0] R13: 0000557b4bdaef40 R14: 0000557b4bdb6340 R15: 0000557b4bd88680
[ 648.521728][ C0]