[ 14.148386][ C2] [ 14.148532][ C2] ================================ [ 14.148757][ C2] WARNING: inconsistent lock state [ 14.148964][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 14.149157][ C2] -------------------------------- [ 14.149360][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.149600][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.149841][ C2] ffffffffb23bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.150189][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.150379][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.150593][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.150790][ C2] _raw_spin_lock+0x33/0x40 [ 14.150996][ C2] simple_pin_fs+0x24/0x150 [ 14.151189][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.151382][ C2] debugfs_create_dir+0x6a/0x540 [ 14.151571][ C2] component_debug_init+0x17/0x30 [ 14.151764][ C2] do_one_initcall+0x8f/0x1e0 [ 14.151958][ C2] do_initcalls+0x176/0x280 [ 14.152152][ C2] kernel_init_freeable+0x22d/0x300 [ 14.152347][ C2] kernel_init+0x20/0x200 [ 14.152558][ C2] ret_from_fork+0x31/0x70 [ 14.152756][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.152952][ C2] irq event stamp: 247736 [ 14.153098][ C2] hardirqs last enabled at (247736): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.153486][ C2] hardirqs last disabled at (247735): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.153872][ C2] softirqs last enabled at (247548): [] handle_softirqs+0x358/0x620 [ 14.154217][ C2] softirqs last disabled at (247555): [] __irq_exit_rcu+0xfa/0x160 [ 14.154554][ C2] [ 14.154554][ C2] other info that might help us debug this: [ 14.154839][ C2] Possible unsafe locking scenario: [ 14.154839][ C2] [ 14.155122][ C2] CPU0 [ 14.155266][ C2] ---- [ 14.155407][ C2] lock(pin_fs_lock); [ 14.155551][ C2] [ 14.155696][ C2] lock(pin_fs_lock); [ 14.155842][ C2] [ 14.155842][ C2] *** DEADLOCK *** [ 14.155842][ C2] [ 14.156127][ C2] 1 lock held by swapper/2/0: [ 14.156319][ C2] #0: ffffffffb21749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.156666][ C2] [ 14.156666][ C2] stack backtrace: [ 14.156907][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.156913][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.156916][ C2] Call Trace: [ 14.156918][ C2] [ 14.156921][ C2] dump_stack_lvl+0x82/0xd0 [ 14.156928][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.156932][ C2] mark_lock_irq+0x343/0x400 [ 14.156936][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.156942][ C2] ? save_trace+0x52/0x170 [ 14.156948][ C2] mark_lock+0x174/0x2f0 [ 14.156952][ C2] mark_usage+0x46/0x150 [ 14.156955][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.156959][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.156962][ C2] ? simple_pin_fs+0x24/0x150 [ 14.156966][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.156969][ C2] ? lock_acquire+0x10c/0x170 [ 14.156971][ C2] ? simple_pin_fs+0x24/0x150 [ 14.156975][ C2] _raw_spin_lock+0x33/0x40 [ 14.156978][ C2] ? simple_pin_fs+0x24/0x150 [ 14.156981][ C2] simple_pin_fs+0x24/0x150 [ 14.156984][ C2] debugfs_remove+0x35/0x70 [ 14.156988][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.156995][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.156998][ C2] ? __sk_destruct+0x383/0x780 [ 14.157004][ C2] ? rcu_do_batch+0x34f/0xf20 [ 14.157008][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.157011][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.157013][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.157018][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.157022][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.157025][ C2] ? default_idle+0x9/0x10 [ 14.157028][ C2] ? default_idle_call+0x6d/0xb0 [ 14.157030][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.157034][ C2] ? do_idle+0xf6/0x160 [ 14.157036][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.157039][ C2] ? start_secondary+0x213/0x2a0 [ 14.157042][ C2] ? common_startup_64+0x13e/0x148 [ 14.157050][ C2] __put_net+0x19/0x60 [ 14.157054][ C2] __sk_destruct+0x58a/0x780 [ 14.157059][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.157062][ C2] rcu_do_batch+0x34f/0xf20 [ 14.157067][ C2] ? find_held_lock+0x2b/0x80 [ 14.157071][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.157076][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.157080][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.157083][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.157087][ C2] rcu_core+0x2bb/0x500 [ 14.157091][ C2] handle_softirqs+0x218/0x620 [ 14.157096][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.157099][ C2] irq_exit_rcu+0xe/0x30 [ 14.157102][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.157105][ C2] [ 14.157106][ C2] [ 14.157108][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.157110][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.157115][ C2] Code: 50 b7 00 e9 c3 57 02 00 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 c3 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.157118][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.157121][ C2] RAX: 000000000003c701 RBX: 1ffff92000028fc1 RCX: ffffffffb116ea19 [ 14.157124][ C2] RDX: 0000000000000000 RSI: ffffffffb1c89a45 RDI: ffffffffb14513a0 [ 14.157126][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.157127][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.157129][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.157133][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.157139][ C2] default_idle+0x9/0x10 [ 14.157141][ C2] default_idle_call+0x6d/0xb0 [ 14.157144][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.157147][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.157150][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.157155][ C2] do_idle+0xf6/0x160 [ 14.157158][ C2] cpu_startup_entry+0x54/0x60 [ 14.157161][ C2] start_secondary+0x213/0x2a0 [ 14.157164][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.157168][ C2] common_startup_64+0x13e/0x148 [ 14.157175][ C2] [ 14.174152][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.174491][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 14.174807][ C2] preempt_count: 101, expected: 0 [ 14.174997][ C2] RCU nest depth: 0, expected: 0 [ 14.175188][ C2] INFO: lockdep is turned off. [ 14.175383][ C2] Preemption disabled at: [ 14.175385][ C2] [<0000000000000000>] 0x0 [ 14.175836][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.175841][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.175843][ C2] Call Trace: [ 14.175846][ C2] [ 14.175849][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.175858][ C2] __might_resched+0x360/0x5a0 [ 14.175867][ C2] down_write+0x72/0x210 [ 14.175871][ C2] ? __pfx_down_write+0x10/0x10 [ 14.175874][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.175880][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.175885][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.175890][ C2] simple_recursive_removal+0x166/0x860 [ 14.175894][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.175899][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.175904][ C2] debugfs_remove+0x44/0x70 [ 14.175907][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.175914][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.175918][ C2] ? __sk_destruct+0x383/0x780 [ 14.175923][ C2] ? rcu_do_batch+0x34f/0xf20 [ 14.175928][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.175931][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.175936][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.175941][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.175944][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.175948][ C2] ? default_idle+0x9/0x10 [ 14.175950][ C2] ? default_idle_call+0x6d/0xb0 [ 14.175953][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.175956][ C2] ? do_idle+0xf6/0x160 [ 14.175958][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.175960][ C2] ? start_secondary+0x213/0x2a0 [ 14.175964][ C2] ? common_startup_64+0x13e/0x148 [ 14.175971][ C2] __put_net+0x19/0x60 [ 14.175975][ C2] __sk_destruct+0x58a/0x780 [ 14.175979][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.175983][ C2] rcu_do_batch+0x34f/0xf20 [ 14.175987][ C2] ? find_held_lock+0x2b/0x80 [ 14.175992][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.175996][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.176001][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.176005][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.176009][ C2] rcu_core+0x2bb/0x500 [ 14.176013][ C2] handle_softirqs+0x218/0x620 [ 14.176018][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.176021][ C2] irq_exit_rcu+0xe/0x30 [ 14.176023][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.176027][ C2] [ 14.176028][ C2] [ 14.176029][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.176032][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.176036][ C2] Code: 50 b7 00 e9 c3 57 02 00 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 c3 45 12 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 14.176039][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.176043][ C2] RAX: 000000000003c701 RBX: 1ffff92000028fc1 RCX: ffffffffb116ea19 [ 14.176045][ C2] RDX: 0000000000000000 RSI: ffffffffb1c89a45 RDI: ffffffffb14513a0 [ 14.176047][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.176049][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.176051][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.176055][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.176061][ C2] default_idle+0x9/0x10 [ 14.176063][ C2] default_idle_call+0x6d/0xb0 [ 14.176065][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.176068][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.176072][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.176077][ C2] do_idle+0xf6/0x160 [ 14.176080][ C2] cpu_startup_entry+0x54/0x60 [ 14.176082][ C2] start_secondary+0x213/0x2a0 [ 14.176085][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.176089][ C2] common_startup_64+0x13e/0x148 [ 14.176097][ C2]