[ 14.246016][ C2] [ 14.246254][ C2] ================================ [ 14.246573][ C2] WARNING: inconsistent lock state [ 14.246933][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 14.247318][ C2] -------------------------------- [ 14.247656][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.248074][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.248489][ C2] ffffffffa55bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.249025][ C2] {SOFTIRQ-ON-W} state was registered at: [ 14.249349][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.249693][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.250033][ C2] _raw_spin_lock+0x33/0x40 [ 14.250331][ C2] simple_pin_fs+0x24/0x150 [ 14.250670][ C2] start_creating.part.0+0x3f/0x2f0 [ 14.251019][ C2] debugfs_create_dir+0x6a/0x540 [ 14.251379][ C2] component_debug_init+0x17/0x30 [ 14.251716][ C2] do_one_initcall+0x8f/0x1e0 [ 14.252052][ C2] do_initcalls+0x176/0x280 [ 14.252364][ C2] kernel_init_freeable+0x22d/0x300 [ 14.252715][ C2] kernel_init+0x20/0x200 [ 14.253058][ C2] ret_from_fork+0x31/0x70 [ 14.253417][ C2] ret_from_fork_asm+0x1a/0x30 [ 14.253748][ C2] irq event stamp: 277574 [ 14.254003][ C2] hardirqs last enabled at (277574): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.254655][ C2] hardirqs last disabled at (277573): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.255280][ C2] softirqs last enabled at (276198): [] handle_softirqs+0x358/0x620 [ 14.255871][ C2] softirqs last disabled at (276223): [] __irq_exit_rcu+0xfa/0x160 [ 14.256455][ C2] [ 14.256455][ C2] other info that might help us debug this: [ 14.256955][ C2] Possible unsafe locking scenario: [ 14.256955][ C2] [ 14.257451][ C2] CPU0 [ 14.257706][ C2] ---- [ 14.257969][ C2] lock(pin_fs_lock); [ 14.258228][ C2] [ 14.258490][ C2] lock(pin_fs_lock); [ 14.258758][ C2] [ 14.258758][ C2] *** DEADLOCK *** [ 14.258758][ C2] [ 14.259268][ C2] 1 lock held by swapper/2/0: [ 14.259620][ C2] #0: ffffffffa53749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.260240][ C2] [ 14.260240][ C2] stack backtrace: [ 14.260670][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.260679][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.260682][ C2] Call Trace: [ 14.260685][ C2] [ 14.260689][ C2] dump_stack_lvl+0x82/0xd0 [ 14.260699][ C2] print_usage_bug.part.0+0x25f/0x360 [ 14.260708][ C2] mark_lock_irq+0x343/0x400 [ 14.260715][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.260722][ C2] ? save_trace+0x52/0x170 [ 14.260732][ C2] mark_lock+0x174/0x2f0 [ 14.260738][ C2] mark_usage+0x46/0x150 [ 14.260744][ C2] __lock_acquire+0x3eb/0x9d0 [ 14.260752][ C2] lock_acquire.part.0+0xb6/0x240 [ 14.260757][ C2] ? simple_pin_fs+0x24/0x150 [ 14.260765][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.260770][ C2] ? lock_acquire+0x10c/0x170 [ 14.260775][ C2] ? simple_pin_fs+0x24/0x150 [ 14.260782][ C2] _raw_spin_lock+0x33/0x40 [ 14.260788][ C2] ? simple_pin_fs+0x24/0x150 [ 14.260791][ C2] simple_pin_fs+0x24/0x150 [ 14.260796][ C2] debugfs_remove+0x35/0x70 [ 14.260802][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.260810][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.260816][ C2] ? __sk_destruct+0x383/0x780 [ 14.260823][ C2] ? rcu_do_batch+0x34f/0xf20 [ 14.260829][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.260834][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.260840][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.260846][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.260851][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.260857][ C2] ? default_idle+0x9/0x10 [ 14.260861][ C2] ? default_idle_call+0x6d/0xb0 [ 14.260865][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.260870][ C2] ? do_idle+0xf6/0x160 [ 14.260873][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.260877][ C2] ? start_secondary+0x213/0x2a0 [ 14.260883][ C2] ? common_startup_64+0x13e/0x148 [ 14.260893][ C2] __put_net+0x19/0x60 [ 14.260899][ C2] __sk_destruct+0x58a/0x780 [ 14.260905][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.260910][ C2] rcu_do_batch+0x34f/0xf20 [ 14.260918][ C2] ? find_held_lock+0x2b/0x80 [ 14.260926][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.260933][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.260939][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.260945][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.260953][ C2] rcu_core+0x2bb/0x500 [ 14.260959][ C2] handle_softirqs+0x218/0x620 [ 14.260970][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.260974][ C2] irq_exit_rcu+0xe/0x30 [ 14.260978][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.260984][ C2] [ 14.260986][ C2] [ 14.260989][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.260994][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.261001][ 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.261006][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.261011][ C2] RAX: 00000000000436fd RBX: 1ffff92000028fc1 RCX: ffffffffa436ea19 [ 14.261015][ C2] RDX: 0000000000000000 RSI: ffffffffa4e89a45 RDI: ffffffffa46513a0 [ 14.261018][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.261020][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.261023][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.261031][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.261041][ C2] default_idle+0x9/0x10 [ 14.261045][ C2] default_idle_call+0x6d/0xb0 [ 14.261050][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.261056][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.261062][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.261070][ C2] do_idle+0xf6/0x160 [ 14.261077][ C2] cpu_startup_entry+0x54/0x60 [ 14.261082][ C2] start_secondary+0x213/0x2a0 [ 14.261087][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.261096][ C2] common_startup_64+0x13e/0x148 [ 14.261110][ C2] [ 14.281272][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.281654][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 14.282023][ C2] preempt_count: 101, expected: 0 [ 14.282230][ C2] RCU nest depth: 0, expected: 0 [ 14.282524][ C2] INFO: lockdep is turned off. [ 14.283099][ C2] Preemption disabled at: [ 14.283102][ C2] [<0000000000000000>] 0x0 [ 14.283622][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 14.283628][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.283630][ C2] Call Trace: [ 14.283632][ C2] [ 14.283635][ C2] dump_stack_lvl+0xb0/0xd0 [ 14.283643][ C2] __might_resched+0x360/0x5a0 [ 14.283649][ C2] down_write+0x72/0x210 [ 14.283654][ C2] ? __pfx_down_write+0x10/0x10 [ 14.283657][ C2] ? simple_recursive_removal+0x3a/0x860 [ 14.283662][ C2] ? rcu_is_watching+0x12/0xc0 [ 14.283666][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.283671][ C2] simple_recursive_removal+0x166/0x860 [ 14.283675][ C2] ? __pfx_remove_one+0x10/0x10 [ 14.283679][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 14.283684][ C2] debugfs_remove+0x44/0x70 [ 14.283687][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 14.283693][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.283696][ C2] ? __sk_destruct+0x383/0x780 [ 14.283701][ C2] ? rcu_do_batch+0x34f/0xf20 [ 14.283705][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.283709][ C2] ? irq_exit_rcu+0xe/0x30 [ 14.283714][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.283718][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.283721][ C2] ? pv_native_safe_halt+0xf/0x20 [ 14.283724][ C2] ? default_idle+0x9/0x10 [ 14.283727][ C2] ? default_idle_call+0x6d/0xb0 [ 14.283729][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.283732][ C2] ? do_idle+0xf6/0x160 [ 14.283734][ C2] ? cpu_startup_entry+0x54/0x60 [ 14.283736][ C2] ? start_secondary+0x213/0x2a0 [ 14.283740][ C2] ? common_startup_64+0x13e/0x148 [ 14.283746][ C2] __put_net+0x19/0x60 [ 14.283750][ C2] __sk_destruct+0x58a/0x780 [ 14.283754][ C2] ? rcu_do_batch+0x34a/0xf20 [ 14.283758][ C2] rcu_do_batch+0x34f/0xf20 [ 14.283762][ C2] ? find_held_lock+0x2b/0x80 [ 14.283767][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.283772][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.283776][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.283779][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.283784][ C2] rcu_core+0x2bb/0x500 [ 14.283788][ C2] handle_softirqs+0x218/0x620 [ 14.283793][ C2] __irq_exit_rcu+0xfa/0x160 [ 14.283796][ C2] irq_exit_rcu+0xe/0x30 [ 14.283798][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.283801][ C2] [ 14.283803][ C2] [ 14.283804][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.283807][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.283811][ 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.283814][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 14.283817][ C2] RAX: 00000000000436fd RBX: 1ffff92000028fc1 RCX: ffffffffa436ea19 [ 14.283819][ C2] RDX: 0000000000000000 RSI: ffffffffa4e89a45 RDI: ffffffffa46513a0 [ 14.283822][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 14.283823][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.283825][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 14.283829][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.283835][ C2] default_idle+0x9/0x10 [ 14.283837][ C2] default_idle_call+0x6d/0xb0 [ 14.283839][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 14.283842][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.283846][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.283850][ C2] do_idle+0xf6/0x160 [ 14.283853][ C2] cpu_startup_entry+0x54/0x60 [ 14.283856][ C2] start_secondary+0x213/0x2a0 [ 14.283859][ C2] ? __pfx_start_secondary+0x10/0x10 [ 14.283863][ C2] common_startup_64+0x13e/0x148 [ 14.283870][ C2]