[ 16.355006][ C0] [ 16.355149][ C0] ================================ [ 16.355358][ C0] WARNING: inconsistent lock state [ 16.355569][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 16.355776][ C0] -------------------------------- [ 16.355984][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.356241][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.356504][ C0] ffffffffaf7bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.356873][ C0] {SOFTIRQ-ON-W} state was registered at: [ 16.357084][ C0] __lock_acquire+0x3eb/0x9d0 [ 16.357304][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.357515][ C0] _raw_spin_lock+0x33/0x40 [ 16.357724][ C0] simple_pin_fs+0x24/0x150 [ 16.357933][ C0] start_creating.part.0+0x3f/0x2f0 [ 16.358146][ C0] debugfs_create_dir+0x6a/0x540 [ 16.358352][ C0] component_debug_init+0x17/0x30 [ 16.358563][ C0] do_one_initcall+0x8c/0x1e0 [ 16.358776][ C0] do_initcalls+0x176/0x280 [ 16.358986][ C0] kernel_init_freeable+0x22d/0x300 [ 16.359197][ C0] kernel_init+0x20/0x200 [ 16.359406][ C0] ret_from_fork+0x31/0x70 [ 16.359619][ C0] ret_from_fork_asm+0x1a/0x30 [ 16.359825][ C0] irq event stamp: 443852 [ 16.359983][ C0] hardirqs last enabled at (443852): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.360402][ C0] hardirqs last disabled at (443851): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.360810][ C0] softirqs last enabled at (441782): [] handle_softirqs+0x358/0x620 [ 16.361156][ C0] softirqs last disabled at (441789): [] __irq_exit_rcu+0xfa/0x160 [ 16.361496][ C0] [ 16.361496][ C0] other info that might help us debug this: [ 16.361781][ C0] Possible unsafe locking scenario: [ 16.361781][ C0] [ 16.362072][ C0] CPU0 [ 16.362235][ C0] ---- [ 16.362381][ C0] lock(pin_fs_lock); [ 16.362528][ C0] [ 16.362675][ C0] lock(pin_fs_lock); [ 16.362824][ C0] [ 16.362824][ C0] *** DEADLOCK *** [ 16.362824][ C0] [ 16.363112][ C0] 1 lock held by swapper/0/0: [ 16.363313][ C0] #0: ffffffffaf574480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.363694][ C0] [ 16.363694][ C0] stack backtrace: [ 16.363934][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.363939][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.363941][ C0] Call Trace: [ 16.363943][ C0] [ 16.363945][ C0] dump_stack_lvl+0x82/0xd0 [ 16.363951][ C0] print_usage_bug.part.0+0x25f/0x360 [ 16.363957][ C0] mark_lock_irq+0x343/0x400 [ 16.363960][ C0] ? is_bpf_text_address+0x67/0x120 [ 16.363966][ C0] ? __lock_release+0x5d/0x170 [ 16.363970][ C0] ? save_trace+0x52/0x170 [ 16.363974][ C0] mark_lock+0x174/0x2f0 [ 16.363978][ C0] mark_usage+0x46/0x150 [ 16.363982][ C0] __lock_acquire+0x3eb/0x9d0 [ 16.363987][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.363991][ C0] ? simple_pin_fs+0x24/0x150 [ 16.363996][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.364001][ C0] ? lock_acquire+0x10c/0x170 [ 16.364004][ C0] ? simple_pin_fs+0x24/0x150 [ 16.364008][ C0] _raw_spin_lock+0x33/0x40 [ 16.364012][ C0] ? simple_pin_fs+0x24/0x150 [ 16.364015][ C0] simple_pin_fs+0x24/0x150 [ 16.364019][ C0] debugfs_remove+0x35/0x70 [ 16.364022][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.364027][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.364030][ C0] ? __sk_destruct+0x383/0x780 [ 16.364035][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.364038][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.364041][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.364044][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.364048][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.364051][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.364054][ C0] ? default_idle+0x9/0x10 [ 16.364057][ C0] ? default_idle_call+0x6d/0xb0 [ 16.364059][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.364064][ C0] ? do_idle+0xf6/0x160 [ 16.364067][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.364070][ C0] ? rest_init+0x14b/0x260 [ 16.364072][ C0] ? start_kernel+0x350/0x410 [ 16.364078][ C0] __put_net+0x19/0x60 [ 16.364081][ C0] __sk_destruct+0x58a/0x780 [ 16.364085][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.364088][ C0] rcu_do_batch+0x34c/0xf20 [ 16.364092][ C0] ? find_held_lock+0x2b/0x80 [ 16.364095][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.364099][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.364102][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.364106][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.364110][ C0] rcu_core+0x2bb/0x500 [ 16.364114][ C0] handle_softirqs+0x218/0x620 [ 16.364118][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.364120][ C0] irq_exit_rcu+0xe/0x30 [ 16.364123][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.364126][ C0] [ 16.364127][ C0] [ 16.364129][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.364131][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.364135][ C0] Code: b0 b8 00 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d a3 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.364138][ C0] RSP: 0018:ffffffffaf207df8 EFLAGS: 00000246 [ 16.364141][ C0] RAX: 000000000006bdbb RBX: 1ffffffff5e40fc3 RCX: ffffffffae555a19 [ 16.364144][ C0] RDX: 0000000000000000 RSI: ffffffffaf085f31 RDI: ffffffffae850ce0 [ 16.364145][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 16.364147][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.364149][ C0] R13: ffffffffaf21f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.364153][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.364158][ C0] default_idle+0x9/0x10 [ 16.364161][ C0] default_idle_call+0x6d/0xb0 [ 16.364163][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.364167][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.364171][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.364177][ C0] do_idle+0xf6/0x160 [ 16.364181][ C0] cpu_startup_entry+0x54/0x60 [ 16.364184][ C0] rest_init+0x14b/0x260 [ 16.364188][ C0] start_kernel+0x350/0x410 [ 16.364191][ C0] x86_64_start_reservations+0x18/0x30 [ 16.364196][ C0] x86_64_start_kernel+0xba/0x110 [ 16.364199][ C0] common_startup_64+0x13e/0x148 [ 16.364207][ C0] [ 16.380427][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.380750][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 16.381071][ C0] preempt_count: 101, expected: 0 [ 16.381253][ C0] RCU nest depth: 0, expected: 0 [ 16.381445][ C0] INFO: lockdep is turned off. [ 16.381753][ C0] Preemption disabled at: [ 16.381755][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 16.382176][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.382181][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.382183][ C0] Call Trace: [ 16.382185][ C0] [ 16.382186][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.382192][ C0] __might_resched+0x360/0x5a0 [ 16.382197][ C0] down_write+0x72/0x210 [ 16.382201][ C0] ? __pfx_down_write+0x10/0x10 [ 16.382203][ C0] ? simple_recursive_removal+0x3a/0x860 [ 16.382207][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.382228][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.382232][ C0] simple_recursive_removal+0x166/0x860 [ 16.382235][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.382239][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.382243][ C0] debugfs_remove+0x44/0x70 [ 16.382246][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.382251][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.382254][ C0] ? __sk_destruct+0x383/0x780 [ 16.382259][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.382263][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.382266][ C0] ? irq_exit_rcu+0xe/0x30 [ 16.382269][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.382273][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.382277][ C0] ? pv_native_safe_halt+0xf/0x20 [ 16.382280][ C0] ? default_idle+0x9/0x10 [ 16.382282][ C0] ? default_idle_call+0x6d/0xb0 [ 16.382285][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.382289][ C0] ? do_idle+0xf6/0x160 [ 16.382292][ C0] ? cpu_startup_entry+0x54/0x60 [ 16.382295][ C0] ? rest_init+0x14b/0x260 [ 16.382297][ C0] ? start_kernel+0x350/0x410 [ 16.382304][ C0] __put_net+0x19/0x60 [ 16.382308][ C0] __sk_destruct+0x58a/0x780 [ 16.382312][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.382315][ C0] rcu_do_batch+0x34c/0xf20 [ 16.382318][ C0] ? find_held_lock+0x2b/0x80 [ 16.382323][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.382327][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.382331][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.382335][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.382339][ C0] rcu_core+0x2bb/0x500 [ 16.382342][ C0] handle_softirqs+0x218/0x620 [ 16.382347][ C0] __irq_exit_rcu+0xfa/0x160 [ 16.382350][ C0] irq_exit_rcu+0xe/0x30 [ 16.382352][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.382355][ C0] [ 16.382356][ C0] [ 16.382358][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.382360][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.382364][ C0] Code: b0 b8 00 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d a3 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.382367][ C0] RSP: 0018:ffffffffaf207df8 EFLAGS: 00000246 [ 16.382370][ C0] RAX: 000000000006bdbb RBX: 1ffffffff5e40fc3 RCX: ffffffffae555a19 [ 16.382372][ C0] RDX: 0000000000000000 RSI: ffffffffaf085f31 RDI: ffffffffae850ce0 [ 16.382374][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 16.382375][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.382377][ C0] R13: ffffffffaf21f240 R14: dffffc0000000000 R15: 0000000000014770 [ 16.382381][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.382386][ C0] default_idle+0x9/0x10 [ 16.382389][ C0] default_idle_call+0x6d/0xb0 [ 16.382391][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 16.382395][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.382399][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.382405][ C0] do_idle+0xf6/0x160 [ 16.382409][ C0] cpu_startup_entry+0x54/0x60 [ 16.382412][ C0] rest_init+0x14b/0x260 [ 16.382416][ C0] start_kernel+0x350/0x410 [ 16.382419][ C0] x86_64_start_reservations+0x18/0x30 [ 16.382424][ C0] x86_64_start_kernel+0xba/0x110 [ 16.382427][ C0] common_startup_64+0x13e/0x148 [ 16.382435][ C0] [ 18.803448][ T259] packetdrill (259) used greatest stack depth: 24600 bytes left [ 18.809444][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.809764][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 18.810048][ C3] preempt_count: 101, expected: 0 [ 18.810215][ C3] RCU nest depth: 0, expected: 0 [ 18.810380][ C3] INFO: lockdep is turned off. [ 18.810549][ C3] Preemption disabled at: [ 18.810551][ C3] [<0000000000000000>] 0x0 [ 18.810845][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.810850][ C3] Tainted: [W]=WARN [ 18.810852][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.810854][ C3] Call Trace: [ 18.810855][ C3] [ 18.810857][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.810866][ C3] __might_resched+0x360/0x5a0 [ 18.810873][ C3] down_write+0x72/0x210 [ 18.810877][ C3] ? __pfx_down_write+0x10/0x10 [ 18.810880][ C3] ? simple_recursive_removal+0x3a/0x860 [ 18.810884][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.810890][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.810895][ C3] simple_recursive_removal+0x166/0x860 [ 18.810897][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.810903][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.810907][ C3] debugfs_remove+0x44/0x70 [ 18.810910][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.810915][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.810918][ C3] ? __sk_destruct+0x383/0x780 [ 18.810923][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.810927][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.810930][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.810934][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.810939][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.810943][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.810946][ C3] ? default_idle+0x9/0x10 [ 18.810949][ C3] ? default_idle_call+0x6d/0xb0 [ 18.810951][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.810956][ C3] ? do_idle+0xf6/0x160 [ 18.810959][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.810962][ C3] ? start_secondary+0x213/0x2a0 [ 18.810967][ C3] ? common_startup_64+0x13e/0x148 [ 18.810971][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.810975][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.810980][ C3] __put_net+0x19/0x60 [ 18.810983][ C3] __sk_destruct+0x58a/0x780 [ 18.810987][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.810990][ C3] rcu_do_batch+0x34c/0xf20 [ 18.810994][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.810999][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.811003][ C3] rcu_core+0x2bb/0x500 [ 18.811007][ C3] handle_softirqs+0x218/0x620 [ 18.811012][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.811014][ C3] irq_exit_rcu+0xe/0x30 [ 18.811016][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.811020][ C3] [ 18.811021][ C3] [ 18.811022][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.811025][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.811029][ C3] Code: b0 b8 00 c3 cc cc cc cc 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d a3 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 18.811032][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 18.811035][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffae555a19 [ 18.811038][ C3] RDX: ffffed1006c3667b RSI: ffffffffae850c60 RDI: ffffffffabd84d8f [ 18.811039][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 18.811041][ C3] R10: ffff8880361b33d3 R11: ffff888001b9cb58 R12: 0000000000000000 [ 18.811043][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 18.811046][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.811051][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.811055][ C3] default_idle+0x9/0x10 [ 18.811057][ C3] default_idle_call+0x6d/0xb0 [ 18.811060][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.811063][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.811068][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.811073][ C3] do_idle+0xf6/0x160 [ 18.811077][ C3] cpu_startup_entry+0x54/0x60 [ 18.811081][ C3] start_secondary+0x213/0x2a0 [ 18.811084][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.811089][ C3] common_startup_64+0x13e/0x148 [ 18.811095][ C3]