[ 14.071282][ C3] [ 14.071421][ C3] ================================ [ 14.071622][ C3] WARNING: inconsistent lock state [ 14.071815][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 14.072011][ C3] -------------------------------- [ 14.072205][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.072441][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.072678][ C3] ffffffffb8fbf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.073023][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.073222][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.073424][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.073618][ C3] _raw_spin_lock+0x33/0x40 [ 14.073817][ C3] simple_pin_fs+0x24/0x150 [ 14.074008][ C3] start_creating.part.0+0x3f/0x2f0 [ 14.074203][ C3] debugfs_create_dir+0x6a/0x540 [ 14.074418][ C3] component_debug_init+0x17/0x30 [ 14.074625][ C3] do_one_initcall+0x8c/0x1e0 [ 14.074825][ C3] do_initcalls+0x176/0x280 [ 14.075028][ C3] kernel_init_freeable+0x22d/0x300 [ 14.075226][ C3] kernel_init+0x20/0x200 [ 14.075418][ C3] ret_from_fork+0x31/0x70 [ 14.075626][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.075818][ C3] irq event stamp: 297410 [ 14.075967][ C3] hardirqs last enabled at (297410): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.076347][ C3] hardirqs last disabled at (297409): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.076729][ C3] softirqs last enabled at (296492): [] handle_softirqs+0x358/0x620 [ 14.077068][ C3] softirqs last disabled at (296499): [] __irq_exit_rcu+0xfa/0x160 [ 14.077439][ C3] [ 14.077439][ C3] other info that might help us debug this: [ 14.077729][ C3] Possible unsafe locking scenario: [ 14.077729][ C3] [ 14.078014][ C3] CPU0 [ 14.078162][ C3] ---- [ 14.078311][ C3] lock(pin_fs_lock); [ 14.078462][ C3] [ 14.078618][ C3] lock(pin_fs_lock); [ 14.078757][ C3] [ 14.078757][ C3] *** DEADLOCK *** [ 14.078757][ C3] [ 14.079039][ C3] 1 lock held by swapper/3/0: [ 14.079236][ C3] #0: ffffffffb8d74480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.079585][ C3] [ 14.079585][ C3] stack backtrace: [ 14.079821][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.079825][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.079827][ C3] Call Trace: [ 14.079828][ C3] [ 14.079831][ C3] dump_stack_lvl+0x82/0xd0 [ 14.079837][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.079843][ C3] mark_lock_irq+0x343/0x400 [ 14.079847][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.079854][ C3] ? save_trace+0x52/0x170 [ 14.079858][ C3] mark_lock+0x174/0x2f0 [ 14.079862][ C3] mark_usage+0x46/0x150 [ 14.079865][ C3] __lock_acquire+0x3eb/0x9d0 [ 14.079870][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.079874][ C3] ? simple_pin_fs+0x24/0x150 [ 14.079878][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.079885][ C3] ? lock_acquire+0x10c/0x170 [ 14.079888][ C3] ? simple_pin_fs+0x24/0x150 [ 14.079892][ C3] _raw_spin_lock+0x33/0x40 [ 14.079896][ C3] ? simple_pin_fs+0x24/0x150 [ 14.079899][ C3] simple_pin_fs+0x24/0x150 [ 14.079903][ C3] debugfs_remove+0x35/0x70 [ 14.079905][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.079912][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.079915][ C3] ? __sk_destruct+0x383/0x780 [ 14.079920][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.079923][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.079926][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.079928][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.079932][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.079936][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.079938][ C3] ? default_idle+0x9/0x10 [ 14.079940][ C3] ? default_idle_call+0x6d/0xb0 [ 14.079943][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.079947][ C3] ? do_idle+0xf6/0x160 [ 14.079950][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.079952][ C3] ? start_secondary+0x213/0x2a0 [ 14.079957][ C3] ? common_startup_64+0x13e/0x148 [ 14.079964][ C3] __put_net+0x19/0x60 [ 14.079968][ C3] __sk_destruct+0x58a/0x780 [ 14.079972][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.079974][ C3] rcu_do_batch+0x34c/0xf20 [ 14.079978][ C3] ? find_held_lock+0x2b/0x80 [ 14.079982][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.079985][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.079989][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.079992][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.079996][ C3] rcu_core+0x2bb/0x500 [ 14.079999][ C3] handle_softirqs+0x218/0x620 [ 14.080004][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.080006][ C3] irq_exit_rcu+0xe/0x30 [ 14.080008][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.080011][ C3] [ 14.080012][ C3] [ 14.080014][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.080017][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.080021][ C3] 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 [ 14.080023][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.080027][ C3] RAX: 0000000000048631 RBX: 1ffff9200002afc1 RCX: ffffffffb7d55a19 [ 14.080029][ C3] RDX: 0000000000000000 RSI: ffffffffb8885f31 RDI: ffffffffb8050ce0 [ 14.080030][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.080032][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.080034][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.080037][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.080043][ C3] default_idle+0x9/0x10 [ 14.080045][ C3] default_idle_call+0x6d/0xb0 [ 14.080047][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.080050][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.080054][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.080059][ C3] do_idle+0xf6/0x160 [ 14.080063][ C3] cpu_startup_entry+0x54/0x60 [ 14.080066][ C3] start_secondary+0x213/0x2a0 [ 14.080069][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.080074][ C3] common_startup_64+0x13e/0x148 [ 14.080080][ C3] [ 14.095649][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.095963][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.096280][ C3] preempt_count: 101, expected: 0 [ 14.096459][ C3] RCU nest depth: 0, expected: 0 [ 14.096647][ C3] INFO: lockdep is turned off. [ 14.096929][ C3] Preemption disabled at: [ 14.096931][ C3] [<0000000000000000>] 0x0 [ 14.097371][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 14.097375][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.097377][ C3] Call Trace: [ 14.097378][ C3] [ 14.097380][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.097385][ C3] __might_resched+0x360/0x5a0 [ 14.097391][ C3] down_write+0x72/0x210 [ 14.097395][ C3] ? __pfx_down_write+0x10/0x10 [ 14.097397][ C3] ? simple_recursive_removal+0x3a/0x860 [ 14.097401][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.097406][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.097411][ C3] simple_recursive_removal+0x166/0x860 [ 14.097414][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.097417][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.097421][ C3] debugfs_remove+0x44/0x70 [ 14.097424][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.097429][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.097432][ C3] ? __sk_destruct+0x383/0x780 [ 14.097435][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.097439][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.097442][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.097445][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.097448][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.097452][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.097455][ C3] ? default_idle+0x9/0x10 [ 14.097457][ C3] ? default_idle_call+0x6d/0xb0 [ 14.097459][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.097463][ C3] ? do_idle+0xf6/0x160 [ 14.097466][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.097469][ C3] ? start_secondary+0x213/0x2a0 [ 14.097472][ C3] ? common_startup_64+0x13e/0x148 [ 14.097477][ C3] __put_net+0x19/0x60 [ 14.097480][ C3] __sk_destruct+0x58a/0x780 [ 14.097487][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.097490][ C3] rcu_do_batch+0x34c/0xf20 [ 14.097493][ C3] ? find_held_lock+0x2b/0x80 [ 14.097498][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.097501][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.097505][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.097509][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.097513][ C3] rcu_core+0x2bb/0x500 [ 14.097516][ C3] handle_softirqs+0x218/0x620 [ 14.097521][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.097523][ C3] irq_exit_rcu+0xe/0x30 [ 14.097526][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.097529][ C3] [ 14.097530][ C3] [ 14.097531][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.097534][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.097537][ C3] 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 [ 14.097540][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.097543][ C3] RAX: 0000000000048631 RBX: 1ffff9200002afc1 RCX: ffffffffb7d55a19 [ 14.097545][ C3] RDX: 0000000000000000 RSI: ffffffffb8885f31 RDI: ffffffffb8050ce0 [ 14.097547][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 14.097548][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 14.097550][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 14.097553][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.097559][ C3] default_idle+0x9/0x10 [ 14.097561][ C3] default_idle_call+0x6d/0xb0 [ 14.097563][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.097567][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.097571][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 14.097576][ C3] do_idle+0xf6/0x160 [ 14.097580][ C3] cpu_startup_entry+0x54/0x60 [ 14.097583][ C3] start_secondary+0x213/0x2a0 [ 14.097587][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.097592][ C3] common_startup_64+0x13e/0x148 [ 14.097598][ C3] [ 15.658833][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.659274][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.659615][ C0] preempt_count: 101, expected: 0 [ 15.659802][ C0] RCU nest depth: 0, expected: 0 [ 15.659991][ C0] INFO: lockdep is turned off. [ 15.660183][ C0] Preemption disabled at: [ 15.660185][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.660633][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 15.660640][ C0] Tainted: [W]=WARN [ 15.660641][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.660643][ C0] Call Trace: [ 15.660645][ C0] [ 15.660647][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.660654][ C0] __might_resched+0x360/0x5a0 [ 15.660661][ C0] down_write+0x72/0x210 [ 15.660666][ C0] ? __pfx_down_write+0x10/0x10 [ 15.660668][ C0] ? simple_recursive_removal+0x3a/0x860 [ 15.660674][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.660682][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.660688][ C0] simple_recursive_removal+0x166/0x860 [ 15.660690][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.660696][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.660700][ C0] debugfs_remove+0x44/0x70 [ 15.660703][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.660709][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.660712][ C0] ? __sk_destruct+0x383/0x780 [ 15.660719][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.660724][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.660726][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.660731][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.660737][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.660742][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.660745][ C0] ? default_idle+0x9/0x10 [ 15.660748][ C0] ? default_idle_call+0x6d/0xb0 [ 15.660750][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.660756][ C0] ? do_idle+0xf6/0x160 [ 15.660759][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.660762][ C0] ? rest_init+0x14b/0x260 [ 15.660764][ C0] ? start_kernel+0x350/0x410 [ 15.660771][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 15.660777][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.660781][ C0] __put_net+0x19/0x60 [ 15.660785][ C0] __sk_destruct+0x58a/0x780 [ 15.660789][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.660792][ C0] rcu_do_batch+0x34c/0xf20 [ 15.660797][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.660801][ C0] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 15.660807][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.660813][ C0] rcu_core+0x2bb/0x500 [ 15.660816][ C0] handle_softirqs+0x218/0x620 [ 15.660821][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.660823][ C0] irq_exit_rcu+0xe/0x30 [ 15.660826][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.660829][ C0] [ 15.660830][ C0] [ 15.660832][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.660834][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.660839][ C0] 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 [ 15.660842][ C0] RSP: 0018:ffffffffb8a07df8 EFLAGS: 00000246 [ 15.660846][ C0] RAX: 0000000000000000 RBX: 1ffffffff7140fc3 RCX: ffffffffb7d55a19 [ 15.660848][ C0] RDX: ffffed1006c0667b RSI: ffffffffb8050c60 RDI: ffffffffb5584d8f [ 15.660850][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c0667a [ 15.660852][ C0] R10: ffff8880360333d3 R11: ffffffffbb62fba8 R12: 0000000000000000 [ 15.660854][ C0] R13: ffffffffb8a1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.660858][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.660862][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.660866][ C0] default_idle+0x9/0x10 [ 15.660868][ C0] default_idle_call+0x6d/0xb0 [ 15.660871][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.660874][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.660879][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.660887][ C0] do_idle+0xf6/0x160 [ 15.660890][ C0] cpu_startup_entry+0x54/0x60 [ 15.660894][ C0] rest_init+0x14b/0x260 [ 15.660897][ C0] start_kernel+0x350/0x410 [ 15.660901][ C0] x86_64_start_reservations+0x18/0x30 [ 15.660906][ C0] x86_64_start_kernel+0xba/0x110 [ 15.660910][ C0] common_startup_64+0x13e/0x148 [ 15.660919][ C0]