[ 20.664720][ C2] [ 20.664880][ C2] ================================ [ 20.665096][ C2] WARNING: inconsistent lock state [ 20.665307][ C2] 6.15.0-rc5-virtme #1 Not tainted [ 20.665510][ C2] -------------------------------- [ 20.665705][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.665949][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.666190][ C2] ffffffff871bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.666591][ C2] {SOFTIRQ-ON-W} state was registered at: [ 20.666781][ C2] __lock_acquire+0x3eb/0x9d0 [ 20.666983][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.667177][ C2] _raw_spin_lock+0x33/0x40 [ 20.667400][ C2] simple_pin_fs+0x24/0x150 [ 20.667599][ C2] start_creating.part.0+0x3f/0x2f0 [ 20.667821][ C2] debugfs_create_dir+0x6a/0x540 [ 20.668016][ C2] component_debug_init+0x17/0x30 [ 20.668214][ C2] do_one_initcall+0x8c/0x1e0 [ 20.668413][ C2] do_initcalls+0x176/0x280 [ 20.668615][ C2] kernel_init_freeable+0x22d/0x300 [ 20.668813][ C2] kernel_init+0x20/0x200 [ 20.669017][ C2] ret_from_fork+0x31/0x70 [ 20.669213][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.669419][ C2] irq event stamp: 310684 [ 20.669579][ C2] hardirqs last enabled at (310684): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.670017][ C2] hardirqs last disabled at (310683): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.670428][ C2] softirqs last enabled at (309742): [] handle_softirqs+0x358/0x620 [ 20.670790][ C2] softirqs last disabled at (309767): [] __irq_exit_rcu+0xfa/0x160 [ 20.671154][ C2] [ 20.671154][ C2] other info that might help us debug this: [ 20.671461][ C2] Possible unsafe locking scenario: [ 20.671461][ C2] [ 20.671762][ C2] CPU0 [ 20.671918][ C2] ---- [ 20.672068][ C2] lock(pin_fs_lock); [ 20.672226][ C2] [ 20.672387][ C2] lock(pin_fs_lock); [ 20.672546][ C2] [ 20.672546][ C2] *** DEADLOCK *** [ 20.672546][ C2] [ 20.672851][ C2] 1 lock held by swapper/2/0: [ 20.673056][ C2] #0: ffffffff86f74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.673449][ C2] [ 20.673449][ C2] stack backtrace: [ 20.673711][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 20.673716][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.673718][ C2] Call Trace: [ 20.673720][ C2] [ 20.673722][ C2] dump_stack_lvl+0x82/0xd0 [ 20.673728][ C2] print_usage_bug.part.0+0x25f/0x360 [ 20.673734][ C2] mark_lock_irq+0x343/0x400 [ 20.673739][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.673745][ C2] ? save_trace+0x52/0x170 [ 20.673749][ C2] mark_lock+0x174/0x2f0 [ 20.673753][ C2] mark_usage+0x46/0x150 [ 20.673757][ C2] __lock_acquire+0x3eb/0x9d0 [ 20.673762][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.673766][ C2] ? simple_pin_fs+0x24/0x150 [ 20.673770][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.673776][ C2] ? lock_acquire+0x10c/0x170 [ 20.673780][ C2] ? simple_pin_fs+0x24/0x150 [ 20.673784][ C2] _raw_spin_lock+0x33/0x40 [ 20.673787][ C2] ? simple_pin_fs+0x24/0x150 [ 20.673790][ C2] simple_pin_fs+0x24/0x150 [ 20.673794][ C2] debugfs_remove+0x35/0x70 [ 20.673798][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.673802][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.673805][ C2] ? __sk_destruct+0x383/0x780 [ 20.673809][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.673812][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.673815][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.673817][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.673822][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.673825][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.673828][ C2] ? default_idle+0x9/0x10 [ 20.673830][ C2] ? default_idle_call+0x6d/0xb0 [ 20.673833][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.673838][ C2] ? do_idle+0xf6/0x160 [ 20.673840][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.673844][ C2] ? start_secondary+0x213/0x2a0 [ 20.673848][ C2] ? common_startup_64+0x13e/0x148 [ 20.673854][ C2] __put_net+0x19/0x60 [ 20.673858][ C2] __sk_destruct+0x58a/0x780 [ 20.673862][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.673864][ C2] rcu_do_batch+0x34c/0xf20 [ 20.673868][ C2] ? find_held_lock+0x2b/0x80 [ 20.673872][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.673875][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.673879][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.673882][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.673887][ C2] rcu_core+0x2bb/0x500 [ 20.673890][ C2] handle_softirqs+0x218/0x620 [ 20.673894][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.673897][ C2] irq_exit_rcu+0xe/0x30 [ 20.673899][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.673902][ C2] [ 20.673903][ C2] [ 20.673905][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.673908][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.673911][ C2] 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 [ 20.673914][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 20.673918][ C2] RAX: 000000000004ba05 RBX: 1ffff92000028fc1 RCX: ffffffff85f55a19 [ 20.673920][ C2] RDX: 0000000000000000 RSI: ffffffff86a85f31 RDI: ffffffff86250ce0 [ 20.673922][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 20.673924][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.673925][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 20.673929][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.673935][ C2] default_idle+0x9/0x10 [ 20.673937][ C2] default_idle_call+0x6d/0xb0 [ 20.673939][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.673943][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.673947][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.673952][ C2] do_idle+0xf6/0x160 [ 20.673956][ C2] cpu_startup_entry+0x54/0x60 [ 20.673959][ C2] start_secondary+0x213/0x2a0 [ 20.673962][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.673967][ C2] common_startup_64+0x13e/0x148 [ 20.673973][ C2] [ 20.690427][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.690785][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 20.691146][ C2] preempt_count: 101, expected: 0 [ 20.691354][ C2] RCU nest depth: 0, expected: 0 [ 20.691561][ C2] INFO: lockdep is turned off. [ 20.691771][ C2] Preemption disabled at: [ 20.691773][ C2] [<0000000000000000>] 0x0 [ 20.692176][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 20.692181][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.692183][ C2] Call Trace: [ 20.692185][ C2] [ 20.692187][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.692195][ C2] __might_resched+0x360/0x5a0 [ 20.692201][ C2] down_write+0x72/0x210 [ 20.692205][ C2] ? __pfx_down_write+0x10/0x10 [ 20.692207][ C2] ? simple_recursive_removal+0x3a/0x860 [ 20.692212][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.692218][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.692222][ C2] simple_recursive_removal+0x166/0x860 [ 20.692225][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.692228][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.692233][ C2] debugfs_remove+0x44/0x70 [ 20.692236][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.692241][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.692244][ C2] ? __sk_destruct+0x383/0x780 [ 20.692249][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.692253][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.692256][ C2] ? irq_exit_rcu+0xe/0x30 [ 20.692259][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.692264][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.692268][ C2] ? pv_native_safe_halt+0xf/0x20 [ 20.692271][ C2] ? default_idle+0x9/0x10 [ 20.692273][ C2] ? default_idle_call+0x6d/0xb0 [ 20.692275][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 20.692279][ C2] ? do_idle+0xf6/0x160 [ 20.692282][ C2] ? cpu_startup_entry+0x54/0x60 [ 20.692285][ C2] ? start_secondary+0x213/0x2a0 [ 20.692290][ C2] ? common_startup_64+0x13e/0x148 [ 20.692296][ C2] __put_net+0x19/0x60 [ 20.692300][ C2] __sk_destruct+0x58a/0x780 [ 20.692303][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.692306][ C2] rcu_do_batch+0x34c/0xf20 [ 20.692310][ C2] ? find_held_lock+0x2b/0x80 [ 20.692314][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.692318][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.692322][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.692326][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 20.692330][ C2] rcu_core+0x2bb/0x500 [ 20.692334][ C2] handle_softirqs+0x218/0x620 [ 20.692338][ C2] __irq_exit_rcu+0xfa/0x160 [ 20.692341][ C2] irq_exit_rcu+0xe/0x30 [ 20.692343][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 20.692347][ C2] [ 20.692348][ C2] [ 20.692349][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 20.692352][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 20.692355][ C2] 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 [ 20.692359][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 20.692362][ C2] RAX: 000000000004ba05 RBX: 1ffff92000028fc1 RCX: ffffffff85f55a19 [ 20.692364][ C2] RDX: 0000000000000000 RSI: ffffffff86a85f31 RDI: ffffffff86250ce0 [ 20.692366][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 20.692367][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 20.692369][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 20.692373][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 20.692378][ C2] default_idle+0x9/0x10 [ 20.692380][ C2] default_idle_call+0x6d/0xb0 [ 20.692383][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 20.692386][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 20.692390][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 20.692395][ C2] do_idle+0xf6/0x160 [ 20.692399][ C2] cpu_startup_entry+0x54/0x60 [ 20.692402][ C2] start_secondary+0x213/0x2a0 [ 20.692406][ C2] ? __pfx_start_secondary+0x10/0x10 [ 20.692411][ C2] common_startup_64+0x13e/0x148 [ 20.692417][ C2] [ 26.804231][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 26.804596][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 26.804917][ C2] preempt_count: 100, expected: 0 [ 26.805120][ C2] RCU nest depth: 0, expected: 0 [ 26.805310][ C2] INFO: lockdep is turned off. [ 26.805476][ C2] Preemption disabled at: [ 26.805478][ C2] [] handle_softirqs+0xe5/0x620 [ 26.805836][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 26.805842][ C2] Tainted: [W]=WARN [ 26.805844][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 26.805846][ C2] Call Trace: [ 26.805849][ C2] [ 26.805851][ C2] dump_stack_lvl+0xb0/0xd0 [ 26.805864][ C2] __might_resched+0x360/0x5a0 [ 26.805871][ C2] down_write+0x72/0x210 [ 26.805875][ C2] ? __pfx_down_write+0x10/0x10 [ 26.805878][ C2] ? simple_recursive_removal+0x3a/0x860 [ 26.805885][ C2] ? rcu_is_watching+0x12/0xc0 [ 26.805895][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 26.805902][ C2] simple_recursive_removal+0x166/0x860 [ 26.805908][ C2] ? __pfx_remove_one+0x10/0x10 [ 26.805917][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 26.805924][ C2] debugfs_remove+0x44/0x70 [ 26.805930][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 26.805938][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 26.805941][ C2] ? __sk_destruct+0x383/0x780 [ 26.805948][ C2] ? rcu_do_batch+0x34c/0xf20 [ 26.805953][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 26.805956][ C2] ? smpboot_thread_fn+0x307/0x960 [ 26.805961][ C2] ? kthread+0x37b/0x600 [ 26.805966][ C2] ? ret_from_fork+0x31/0x70 [ 26.805972][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 26.805979][ C2] ? migrate_enable+0x1f2/0x270 [ 26.805984][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 26.805988][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 26.805993][ C2] ? rcu_is_watching+0x12/0xc0 [ 26.805998][ C2] __put_net+0x19/0x60 [ 26.806002][ C2] __sk_destruct+0x58a/0x780 [ 26.806006][ C2] ? rcu_do_batch+0x34a/0xf20 [ 26.806009][ C2] rcu_do_batch+0x34c/0xf20 [ 26.806014][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 26.806018][ C2] ? rcu_is_watching+0x12/0xc0 [ 26.806021][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 26.806028][ C2] rcu_core+0x2bb/0x500 [ 26.806031][ C2] handle_softirqs+0x218/0x620 [ 26.806035][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 26.806038][ C2] run_ksoftirqd+0x3f/0x70 [ 26.806041][ C2] smpboot_thread_fn+0x307/0x960 [ 26.806044][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 26.806048][ C2] kthread+0x37b/0x600 [ 26.806051][ C2] ? __pfx_kthread+0x10/0x10 [ 26.806054][ C2] ? ret_from_fork+0x1b/0x70 [ 26.806057][ C2] ? __lock_release+0x5d/0x170 [ 26.806063][ C2] ? rcu_is_watching+0x12/0xc0 [ 26.806066][ C2] ? __pfx_kthread+0x10/0x10 [ 26.806070][ C2] ret_from_fork+0x31/0x70 [ 26.806073][ C2] ? __pfx_kthread+0x10/0x10 [ 26.806076][ C2] ret_from_fork_asm+0x1a/0x30 [ 26.806083][ C2]