[ 13.803091][ C2] [ 13.803267][ C2] ================================ [ 13.803492][ C2] WARNING: inconsistent lock state [ 13.803722][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 13.803964][ C2] -------------------------------- [ 13.804205][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.804486][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.804766][ C2] ffffffffbc3bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.805171][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.805391][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.805624][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.805861][ C2] _raw_spin_lock+0x33/0x40 [ 13.806086][ C2] simple_pin_fs+0x24/0x150 [ 13.806312][ C2] start_creating.part.0+0x3f/0x2f0 [ 13.806574][ C2] debugfs_create_dir+0x6a/0x540 [ 13.806803][ C2] component_debug_init+0x17/0x30 [ 13.807038][ C2] do_one_initcall+0x8f/0x1e0 [ 13.807265][ C2] do_initcalls+0x176/0x280 [ 13.807490][ C2] kernel_init_freeable+0x22d/0x300 [ 13.807725][ C2] kernel_init+0x20/0x200 [ 13.807949][ C2] ret_from_fork+0x31/0x70 [ 13.808197][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.808423][ C2] irq event stamp: 268340 [ 13.808592][ C2] hardirqs last enabled at (268340): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.809042][ C2] hardirqs last disabled at (268339): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.809495][ C2] softirqs last enabled at (267140): [] handle_softirqs+0x358/0x620 [ 13.809937][ C2] softirqs last disabled at (267153): [] __irq_exit_rcu+0xfa/0x160 [ 13.810270][ C2] [ 13.810270][ C2] other info that might help us debug this: [ 13.810548][ C2] Possible unsafe locking scenario: [ 13.810548][ C2] [ 13.810824][ C2] CPU0 [ 13.810966][ C2] ---- [ 13.811109][ C2] lock(pin_fs_lock); [ 13.811270][ C2] [ 13.811410][ C2] lock(pin_fs_lock); [ 13.811557][ C2] [ 13.811557][ C2] *** DEADLOCK *** [ 13.811557][ C2] [ 13.811839][ C2] 1 lock held by swapper/2/0: [ 13.812032][ C2] #0: ffffffffbc1749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.812377][ C2] [ 13.812377][ C2] stack backtrace: [ 13.812622][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.812628][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.812631][ C2] Call Trace: [ 13.812634][ C2] [ 13.812637][ C2] dump_stack_lvl+0x82/0xd0 [ 13.812646][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.812653][ C2] mark_lock_irq+0x343/0x400 [ 13.812660][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.812667][ C2] ? save_trace+0x52/0x170 [ 13.812676][ C2] mark_lock+0x174/0x2f0 [ 13.812682][ C2] mark_usage+0x46/0x150 [ 13.812688][ C2] __lock_acquire+0x3eb/0x9d0 [ 13.812695][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.812698][ C2] ? simple_pin_fs+0x24/0x150 [ 13.812703][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.812706][ C2] ? lock_acquire+0x10c/0x170 [ 13.812709][ C2] ? simple_pin_fs+0x24/0x150 [ 13.812713][ C2] _raw_spin_lock+0x33/0x40 [ 13.812716][ C2] ? simple_pin_fs+0x24/0x150 [ 13.812719][ C2] simple_pin_fs+0x24/0x150 [ 13.812722][ C2] debugfs_remove+0x35/0x70 [ 13.812726][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.812732][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.812736][ C2] ? __sk_destruct+0x383/0x780 [ 13.812740][ C2] ? rcu_do_batch+0x34f/0xf20 [ 13.812744][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.812748][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.812751][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.812755][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.812758][ C2] ? pv_native_safe_halt+0xf/0x20 [ 13.812762][ C2] ? default_idle+0x9/0x10 [ 13.812764][ C2] ? default_idle_call+0x6d/0xb0 [ 13.812766][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.812769][ C2] ? do_idle+0xf6/0x160 [ 13.812772][ C2] ? cpu_startup_entry+0x54/0x60 [ 13.812774][ C2] ? start_secondary+0x213/0x2a0 [ 13.812777][ C2] ? common_startup_64+0x13e/0x148 [ 13.812783][ C2] __put_net+0x19/0x60 [ 13.812787][ C2] __sk_destruct+0x58a/0x780 [ 13.812791][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.812794][ C2] rcu_do_batch+0x34f/0xf20 [ 13.812799][ C2] ? find_held_lock+0x2b/0x80 [ 13.812803][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.812807][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.812811][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.812814][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.812819][ C2] rcu_core+0x2bb/0x500 [ 13.812822][ C2] handle_softirqs+0x218/0x620 [ 13.812827][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.812830][ C2] irq_exit_rcu+0xe/0x30 [ 13.812833][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.812836][ C2] [ 13.812838][ C2] [ 13.812839][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.812842][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.812846][ 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 [ 13.812849][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 13.812852][ C2] RAX: 000000000004138f RBX: 1ffff92000028fc1 RCX: ffffffffbb16ea19 [ 13.812854][ C2] RDX: 0000000000000000 RSI: ffffffffbbc89a45 RDI: ffffffffbb4513a0 [ 13.812856][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 13.812858][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.812860][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 13.812864][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.812869][ C2] default_idle+0x9/0x10 [ 13.812871][ C2] default_idle_call+0x6d/0xb0 [ 13.812874][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 13.812877][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.812880][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.812885][ C2] do_idle+0xf6/0x160 [ 13.812888][ C2] cpu_startup_entry+0x54/0x60 [ 13.812891][ C2] start_secondary+0x213/0x2a0 [ 13.812894][ C2] ? __pfx_start_secondary+0x10/0x10 [ 13.812898][ C2] common_startup_64+0x13e/0x148 [ 13.812905][ C2] [ 13.831426][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.832062][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 13.832466][ C2] preempt_count: 101, expected: 0 [ 13.832694][ C2] RCU nest depth: 0, expected: 0 [ 13.832929][ C2] INFO: lockdep is turned off. [ 13.833184][ C2] Preemption disabled at: [ 13.833186][ C2] [<0000000000000000>] 0x0 [ 13.833591][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 13.833596][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.833598][ C2] Call Trace: [ 13.833600][ C2] [ 13.833602][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.833611][ C2] __might_resched+0x360/0x5a0 [ 13.833622][ C2] down_write+0x72/0x210 [ 13.833628][ C2] ? __pfx_down_write+0x10/0x10 [ 13.833632][ C2] ? simple_recursive_removal+0x3a/0x860 [ 13.833638][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.833643][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.833648][ C2] simple_recursive_removal+0x166/0x860 [ 13.833651][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.833656][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.833661][ C2] debugfs_remove+0x44/0x70 [ 13.833664][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.833670][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.833673][ C2] ? __sk_destruct+0x383/0x780 [ 13.833679][ C2] ? rcu_do_batch+0x34f/0xf20 [ 13.833683][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.833686][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.833691][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.833695][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.833698][ C2] ? pv_native_safe_halt+0xf/0x20 [ 13.833702][ C2] ? default_idle+0x9/0x10 [ 13.833704][ C2] ? default_idle_call+0x6d/0xb0 [ 13.833706][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 13.833710][ C2] ? do_idle+0xf6/0x160 [ 13.833712][ C2] ? cpu_startup_entry+0x54/0x60 [ 13.833714][ C2] ? start_secondary+0x213/0x2a0 [ 13.833718][ C2] ? common_startup_64+0x13e/0x148 [ 13.833724][ C2] __put_net+0x19/0x60 [ 13.833728][ C2] __sk_destruct+0x58a/0x780 [ 13.833732][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.833735][ C2] rcu_do_batch+0x34f/0xf20 [ 13.833739][ C2] ? find_held_lock+0x2b/0x80 [ 13.833745][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.833749][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.833754][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.833757][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.833762][ C2] rcu_core+0x2bb/0x500 [ 13.833766][ C2] handle_softirqs+0x218/0x620 [ 13.833771][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.833774][ C2] irq_exit_rcu+0xe/0x30 [ 13.833776][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.833780][ C2] [ 13.833781][ C2] [ 13.833783][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.833786][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 13.833790][ 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 [ 13.833792][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 13.833796][ C2] RAX: 000000000004138f RBX: 1ffff92000028fc1 RCX: ffffffffbb16ea19 [ 13.833798][ C2] RDX: 0000000000000000 RSI: ffffffffbbc89a45 RDI: ffffffffbb4513a0 [ 13.833800][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2667a [ 13.833802][ C2] R10: ffff8880361333d3 R11: 0000000000000000 R12: 0000000000000000 [ 13.833804][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 13.833808][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 13.833813][ C2] default_idle+0x9/0x10 [ 13.833816][ C2] default_idle_call+0x6d/0xb0 [ 13.833818][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 13.833821][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 13.833825][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 13.833829][ C2] do_idle+0xf6/0x160 [ 13.833832][ C2] cpu_startup_entry+0x54/0x60 [ 13.833835][ C2] start_secondary+0x213/0x2a0 [ 13.833838][ C2] ? __pfx_start_secondary+0x10/0x10 [ 13.833842][ C2] common_startup_64+0x13e/0x148 [ 13.833849][ C2]