[ 17.060884][ C0] [ 17.061088][ C0] ================================ [ 17.061340][ C0] WARNING: inconsistent lock state [ 17.061590][ C0] 6.15.0-rc7-virtme #1 Not tainted [ 17.061833][ C0] -------------------------------- [ 17.062093][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.062416][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.062746][ C0] ffffffffa47bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.063191][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.063437][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.063703][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.063957][ C0] _raw_spin_lock+0x33/0x40 [ 17.064220][ C0] simple_pin_fs+0x24/0x150 [ 17.064466][ C0] start_creating.part.0+0x3f/0x2f0 [ 17.064719][ C0] debugfs_create_dir+0x6a/0x540 [ 17.064965][ C0] component_debug_init+0x17/0x30 [ 17.065216][ C0] do_one_initcall+0x8f/0x1e0 [ 17.065463][ C0] do_initcalls+0x176/0x280 [ 17.065705][ C0] kernel_init_freeable+0x22d/0x300 [ 17.065950][ C0] kernel_init+0x20/0x200 [ 17.066196][ C0] ret_from_fork+0x31/0x70 [ 17.066442][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.066685][ C0] irq event stamp: 510798 [ 17.066873][ C0] hardirqs last enabled at (510798): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.067363][ C0] hardirqs last disabled at (510797): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.067849][ C0] softirqs last enabled at (509590): [] handle_softirqs+0x358/0x620 [ 17.068279][ C0] softirqs last disabled at (509609): [] __irq_exit_rcu+0xfa/0x160 [ 17.068705][ C0] [ 17.068705][ C0] other info that might help us debug this: [ 17.069066][ C0] Possible unsafe locking scenario: [ 17.069066][ C0] [ 17.069435][ C0] CPU0 [ 17.069621][ C0] ---- [ 17.069804][ C0] lock(pin_fs_lock); [ 17.069990][ C0] [ 17.070175][ C0] lock(pin_fs_lock); [ 17.070369][ C0] [ 17.070369][ C0] *** DEADLOCK *** [ 17.070369][ C0] [ 17.070732][ C0] 1 lock held by swapper/0/0: [ 17.070983][ C0] #0: ffffffffa45749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.071429][ C0] [ 17.071429][ C0] stack backtrace: [ 17.071735][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.071740][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.071742][ C0] Call Trace: [ 17.071744][ C0] [ 17.071745][ C0] dump_stack_lvl+0x82/0xd0 [ 17.071752][ C0] print_usage_bug.part.0+0x25f/0x360 [ 17.071758][ C0] mark_lock_irq+0x343/0x400 [ 17.071762][ C0] ? is_bpf_text_address+0x67/0x120 [ 17.071769][ C0] ? __lock_release+0x5d/0x170 [ 17.071776][ C0] ? save_trace+0x52/0x170 [ 17.071783][ C0] mark_lock+0x174/0x2f0 [ 17.071788][ C0] mark_usage+0x46/0x150 [ 17.071792][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.071798][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.071800][ C0] ? simple_pin_fs+0x24/0x150 [ 17.071804][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.071810][ C0] ? lock_acquire+0x10c/0x170 [ 17.071812][ C0] ? simple_pin_fs+0x24/0x150 [ 17.071815][ C0] _raw_spin_lock+0x33/0x40 [ 17.071818][ C0] ? simple_pin_fs+0x24/0x150 [ 17.071821][ C0] simple_pin_fs+0x24/0x150 [ 17.071824][ C0] debugfs_remove+0x35/0x70 [ 17.071827][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.071832][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.071835][ C0] ? __sk_destruct+0x383/0x780 [ 17.071840][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.071843][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.071846][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.071848][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.071853][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.071857][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.071860][ C0] ? default_idle+0x9/0x10 [ 17.071862][ C0] ? default_idle_call+0x6d/0xb0 [ 17.071865][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.071870][ C0] ? do_idle+0xf6/0x160 [ 17.071873][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.071876][ C0] ? rest_init+0x14b/0x260 [ 17.071879][ C0] ? start_kernel+0x350/0x410 [ 17.071886][ C0] __put_net+0x19/0x60 [ 17.071889][ C0] __sk_destruct+0x58a/0x780 [ 17.071893][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.071897][ C0] rcu_do_batch+0x34f/0xf20 [ 17.071900][ C0] ? find_held_lock+0x2b/0x80 [ 17.071904][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.071908][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.071912][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.071915][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.071920][ C0] rcu_core+0x2bb/0x500 [ 17.071924][ C0] handle_softirqs+0x218/0x620 [ 17.071929][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.071931][ C0] irq_exit_rcu+0xe/0x30 [ 17.071933][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.071937][ C0] [ 17.071938][ C0] [ 17.071939][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.071942][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.071946][ C0] Code: 60 b8 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 75 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 [ 17.071949][ C0] RSP: 0018:ffffffffa4207df8 EFLAGS: 00000242 [ 17.071952][ C0] RAX: 000000000007c6a7 RBX: 1ffffffff4840fc3 RCX: ffffffffa355ba19 [ 17.071954][ C0] RDX: 0000000000000000 RSI: ffffffffa4087785 RDI: ffffffffa3851260 [ 17.071956][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.071958][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.071960][ C0] R13: ffffffffa421f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.071964][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.071969][ C0] default_idle+0x9/0x10 [ 17.071971][ C0] default_idle_call+0x6d/0xb0 [ 17.071973][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.071977][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.071982][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.071989][ C0] do_idle+0xf6/0x160 [ 17.071993][ C0] cpu_startup_entry+0x54/0x60 [ 17.071997][ C0] rest_init+0x14b/0x260 [ 17.072000][ C0] start_kernel+0x350/0x410 [ 17.072004][ C0] x86_64_start_reservations+0x18/0x30 [ 17.072009][ C0] x86_64_start_kernel+0xba/0x110 [ 17.072013][ C0] common_startup_64+0x13e/0x148 [ 17.072021][ C0] [ 17.092886][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.093295][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.093837][ C0] preempt_count: 101, expected: 0 [ 17.094081][ C0] RCU nest depth: 0, expected: 0 [ 17.094319][ C0] INFO: lockdep is turned off. [ 17.094566][ C0] Preemption disabled at: [ 17.094568][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.095099][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.095104][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.095106][ C0] Call Trace: [ 17.095108][ C0] [ 17.095110][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.095116][ C0] __might_resched+0x360/0x5a0 [ 17.095122][ C0] down_write+0x72/0x210 [ 17.095127][ C0] ? __pfx_down_write+0x10/0x10 [ 17.095130][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.095134][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.095140][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.095145][ C0] simple_recursive_removal+0x166/0x860 [ 17.095148][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.095152][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.095157][ C0] debugfs_remove+0x44/0x70 [ 17.095160][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.095165][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.095168][ C0] ? __sk_destruct+0x383/0x780 [ 17.095173][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.095177][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.095180][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.095184][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.095189][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.095193][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.095196][ C0] ? default_idle+0x9/0x10 [ 17.095198][ C0] ? default_idle_call+0x6d/0xb0 [ 17.095201][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.095206][ C0] ? do_idle+0xf6/0x160 [ 17.095209][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.095212][ C0] ? rest_init+0x14b/0x260 [ 17.095214][ C0] ? start_kernel+0x350/0x410 [ 17.095222][ C0] __put_net+0x19/0x60 [ 17.095225][ C0] __sk_destruct+0x58a/0x780 [ 17.095229][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.095232][ C0] rcu_do_batch+0x34f/0xf20 [ 17.095236][ C0] ? find_held_lock+0x2b/0x80 [ 17.095241][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.095245][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.095250][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.095253][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.095258][ C0] rcu_core+0x2bb/0x500 [ 17.095262][ C0] handle_softirqs+0x218/0x620 [ 17.095267][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.095271][ C0] irq_exit_rcu+0xe/0x30 [ 17.095275][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.095281][ C0] [ 17.095282][ C0] [ 17.095285][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.095290][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.095295][ C0] Code: 60 b8 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 75 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 [ 17.095298][ C0] RSP: 0018:ffffffffa4207df8 EFLAGS: 00000242 [ 17.095304][ C0] RAX: 000000000007c6a7 RBX: 1ffffffff4840fc3 RCX: ffffffffa355ba19 [ 17.095306][ C0] RDX: 0000000000000000 RSI: ffffffffa4087785 RDI: ffffffffa3851260 [ 17.095308][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.095310][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.095312][ C0] R13: ffffffffa421f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.095316][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.095321][ C0] default_idle+0x9/0x10 [ 17.095323][ C0] default_idle_call+0x6d/0xb0 [ 17.095325][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.095329][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.095334][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.095341][ C0] do_idle+0xf6/0x160 [ 17.095345][ C0] cpu_startup_entry+0x54/0x60 [ 17.095349][ C0] rest_init+0x14b/0x260 [ 17.095352][ C0] start_kernel+0x350/0x410 [ 17.095356][ C0] x86_64_start_reservations+0x18/0x30 [ 17.095361][ C0] x86_64_start_kernel+0xba/0x110 [ 17.095365][ C0] common_startup_64+0x13e/0x148 [ 17.095373][ C0] [ 19.355414][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.355792][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 19.356095][ C3] preempt_count: 101, expected: 0 [ 19.356269][ C3] RCU nest depth: 0, expected: 0 [ 19.356447][ C3] INFO: lockdep is turned off. [ 19.356621][ C3] Preemption disabled at: [ 19.356623][ C3] [<0000000000000000>] 0x0 [ 19.356934][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 19.356940][ C3] Tainted: [W]=WARN [ 19.356941][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.356943][ C3] Call Trace: [ 19.356945][ C3] [ 19.356947][ C3] dump_stack_lvl+0xb0/0xd0 [ 19.356956][ C3] __might_resched+0x360/0x5a0 [ 19.356962][ C3] down_write+0x72/0x210 [ 19.356967][ C3] ? __pfx_down_write+0x10/0x10 [ 19.356970][ C3] ? simple_recursive_removal+0x3a/0x860 [ 19.356975][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.356981][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.356986][ C3] simple_recursive_removal+0x166/0x860 [ 19.356989][ C3] ? __pfx_remove_one+0x10/0x10 [ 19.356993][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 19.356998][ C3] debugfs_remove+0x44/0x70 [ 19.357001][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 19.357006][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.357009][ C3] ? __sk_destruct+0x383/0x780 [ 19.357015][ C3] ? rcu_do_batch+0x34f/0xf20 [ 19.357019][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.357022][ C3] ? irq_exit_rcu+0xe/0x30 [ 19.357026][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.357031][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.357035][ C3] ? pv_native_safe_halt+0xf/0x20 [ 19.357038][ C3] ? default_idle+0x9/0x10 [ 19.357041][ C3] ? default_idle_call+0x6d/0xb0 [ 19.357043][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.357048][ C3] ? do_idle+0xf6/0x160 [ 19.357051][ C3] ? cpu_startup_entry+0x54/0x60 [ 19.357054][ C3] ? start_secondary+0x213/0x2a0 [ 19.357059][ C3] ? common_startup_64+0x13e/0x148 [ 19.357064][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 19.357068][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.357073][ C3] __put_net+0x19/0x60 [ 19.357077][ C3] __sk_destruct+0x58a/0x780 [ 19.357081][ C3] ? rcu_do_batch+0x34a/0xf20 [ 19.357084][ C3] rcu_do_batch+0x34f/0xf20 [ 19.357089][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.357094][ C3] ? rcu_is_watching+0x12/0xc0 [ 19.357099][ C3] rcu_core+0x2bb/0x500 [ 19.357103][ C3] handle_softirqs+0x218/0x620 [ 19.357107][ C3] __irq_exit_rcu+0xfa/0x160 [ 19.357110][ C3] irq_exit_rcu+0xe/0x30 [ 19.357113][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.357116][ C3] [ 19.357117][ C3] [ 19.357119][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.357121][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 19.357126][ C3] Code: 60 b8 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 75 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 [ 19.357128][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 19.357132][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffa355ba19 [ 19.357134][ C3] RDX: ffffed1006c3667b RSI: ffffffffa38511e0 RDI: ffffffffa0d8633f [ 19.357136][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c3667a [ 19.357138][ C3] R10: ffff8880361b33d3 R11: ffff888001bdcb58 R12: 0000000000000000 [ 19.357140][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 19.357144][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 19.357147][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 19.357151][ C3] default_idle+0x9/0x10 [ 19.357154][ C3] default_idle_call+0x6d/0xb0 [ 19.357156][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 19.357160][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 19.357165][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 19.357170][ C3] do_idle+0xf6/0x160 [ 19.357174][ C3] cpu_startup_entry+0x54/0x60 [ 19.357178][ C3] start_secondary+0x213/0x2a0 [ 19.357181][ C3] ? __pfx_start_secondary+0x10/0x10 [ 19.357186][ C3] common_startup_64+0x13e/0x148 [ 19.357193][ C3]