[ 16.279849][ C3] [ 16.280004][ C3] ================================ [ 16.280203][ C3] WARNING: inconsistent lock state [ 16.280395][ C3] 6.15.0-rc5-virtme #1 Not tainted [ 16.280588][ C3] -------------------------------- [ 16.280778][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.281018][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.281264][ C3] ffffffff975bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.281611][ C3] {SOFTIRQ-ON-W} state was registered at: [ 16.281805][ C3] __lock_acquire+0x3eb/0x9d0 [ 16.282002][ C3] lock_acquire.part.0+0xb6/0x240 [ 16.282201][ C3] _raw_spin_lock+0x33/0x40 [ 16.282394][ C3] simple_pin_fs+0x24/0x150 [ 16.282589][ C3] start_creating.part.0+0x3f/0x2f0 [ 16.282781][ C3] debugfs_create_dir+0x6a/0x540 [ 16.282972][ C3] component_debug_init+0x17/0x30 [ 16.283166][ C3] do_one_initcall+0x8c/0x1e0 [ 16.283362][ C3] do_initcalls+0x176/0x280 [ 16.283564][ C3] kernel_init_freeable+0x22d/0x300 [ 16.283759][ C3] kernel_init+0x20/0x200 [ 16.283954][ C3] ret_from_fork+0x31/0x70 [ 16.284149][ C3] ret_from_fork_asm+0x1a/0x30 [ 16.284342][ C3] irq event stamp: 300490 [ 16.284488][ C3] hardirqs last enabled at (300490): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.284881][ C3] hardirqs last disabled at (300489): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.285264][ C3] softirqs last enabled at (299128): [] handle_softirqs+0x358/0x620 [ 16.285604][ C3] softirqs last disabled at (299153): [] __irq_exit_rcu+0xfa/0x160 [ 16.285945][ C3] [ 16.285945][ C3] other info that might help us debug this: [ 16.286230][ C3] Possible unsafe locking scenario: [ 16.286230][ C3] [ 16.286520][ C3] CPU0 [ 16.286661][ C3] ---- [ 16.286802][ C3] lock(pin_fs_lock); [ 16.286948][ C3] [ 16.287093][ C3] lock(pin_fs_lock); [ 16.287236][ C3] [ 16.287236][ C3] *** DEADLOCK *** [ 16.287236][ C3] [ 16.287530][ C3] 1 lock held by swapper/3/0: [ 16.287728][ C3] #0: ffffffff97374480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.288069][ C3] [ 16.288069][ C3] stack backtrace: [ 16.288309][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.288314][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.288316][ C3] Call Trace: [ 16.288318][ C3] [ 16.288320][ C3] dump_stack_lvl+0x82/0xd0 [ 16.288327][ C3] print_usage_bug.part.0+0x25f/0x360 [ 16.288332][ C3] mark_lock_irq+0x343/0x400 [ 16.288337][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.288342][ C3] ? save_trace+0x52/0x170 [ 16.288346][ C3] mark_lock+0x174/0x2f0 [ 16.288351][ C3] mark_usage+0x46/0x150 [ 16.288354][ C3] __lock_acquire+0x3eb/0x9d0 [ 16.288360][ C3] lock_acquire.part.0+0xb6/0x240 [ 16.288363][ C3] ? simple_pin_fs+0x24/0x150 [ 16.288368][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.288374][ C3] ? lock_acquire+0x10c/0x170 [ 16.288377][ C3] ? simple_pin_fs+0x24/0x150 [ 16.288381][ C3] _raw_spin_lock+0x33/0x40 [ 16.288385][ C3] ? simple_pin_fs+0x24/0x150 [ 16.288388][ C3] simple_pin_fs+0x24/0x150 [ 16.288392][ C3] debugfs_remove+0x35/0x70 [ 16.288395][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.288400][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.288403][ C3] ? __sk_destruct+0x383/0x780 [ 16.288408][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.288411][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.288414][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.288417][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.288421][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.288425][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.288428][ C3] ? default_idle+0x9/0x10 [ 16.288430][ C3] ? default_idle_call+0x6d/0xb0 [ 16.288432][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.288436][ C3] ? do_idle+0xf6/0x160 [ 16.288439][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.288442][ C3] ? start_secondary+0x213/0x2a0 [ 16.288446][ C3] ? common_startup_64+0x13e/0x148 [ 16.288452][ C3] __put_net+0x19/0x60 [ 16.288456][ C3] __sk_destruct+0x58a/0x780 [ 16.288460][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.288463][ C3] rcu_do_batch+0x34c/0xf20 [ 16.288467][ C3] ? find_held_lock+0x2b/0x80 [ 16.288471][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.288474][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.288478][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.288481][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.288486][ C3] rcu_core+0x2bb/0x500 [ 16.288489][ C3] handle_softirqs+0x218/0x620 [ 16.288494][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.288496][ C3] irq_exit_rcu+0xe/0x30 [ 16.288498][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.288502][ C3] [ 16.288503][ C3] [ 16.288504][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.288507][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.288512][ 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 [ 16.288515][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 16.288518][ C3] RAX: 000000000004908f RBX: 1ffff9200002afc1 RCX: ffffffff96355a19 [ 16.288520][ C3] RDX: 0000000000000000 RSI: ffffffff96e85f31 RDI: ffffffff96650ce0 [ 16.288522][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 16.288524][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.288525][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 16.288529][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.288535][ C3] default_idle+0x9/0x10 [ 16.288537][ C3] default_idle_call+0x6d/0xb0 [ 16.288539][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.288543][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.288547][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.288552][ C3] do_idle+0xf6/0x160 [ 16.288556][ C3] cpu_startup_entry+0x54/0x60 [ 16.288560][ C3] start_secondary+0x213/0x2a0 [ 16.288563][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.288568][ C3] common_startup_64+0x13e/0x148 [ 16.288574][ C3] [ 16.304095][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.304416][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 16.304838][ C3] preempt_count: 101, expected: 0 [ 16.305019][ C3] RCU nest depth: 0, expected: 0 [ 16.305303][ C3] INFO: lockdep is turned off. [ 16.305489][ C3] Preemption disabled at: [ 16.305490][ C3] [<0000000000000000>] 0x0 [ 16.305814][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 16.305819][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.305822][ C3] Call Trace: [ 16.305823][ C3] [ 16.305826][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.305833][ C3] __might_resched+0x360/0x5a0 [ 16.305840][ C3] down_write+0x72/0x210 [ 16.305844][ C3] ? __pfx_down_write+0x10/0x10 [ 16.305847][ C3] ? simple_recursive_removal+0x3a/0x860 [ 16.305851][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.305857][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.305862][ C3] simple_recursive_removal+0x166/0x860 [ 16.305864][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.305869][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.305873][ C3] debugfs_remove+0x44/0x70 [ 16.305876][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.305881][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.305884][ C3] ? __sk_destruct+0x383/0x780 [ 16.305889][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.305893][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.305896][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.305899][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.305904][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.305908][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.305911][ C3] ? default_idle+0x9/0x10 [ 16.305914][ C3] ? default_idle_call+0x6d/0xb0 [ 16.305916][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.305920][ C3] ? do_idle+0xf6/0x160 [ 16.305923][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.305926][ C3] ? start_secondary+0x213/0x2a0 [ 16.305931][ C3] ? common_startup_64+0x13e/0x148 [ 16.305936][ C3] __put_net+0x19/0x60 [ 16.305940][ C3] __sk_destruct+0x58a/0x780 [ 16.305943][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.305946][ C3] rcu_do_batch+0x34c/0xf20 [ 16.305950][ C3] ? find_held_lock+0x2b/0x80 [ 16.305955][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.305959][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.305963][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.305966][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.305971][ C3] rcu_core+0x2bb/0x500 [ 16.305974][ C3] handle_softirqs+0x218/0x620 [ 16.305979][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.305981][ C3] irq_exit_rcu+0xe/0x30 [ 16.305984][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.305987][ C3] [ 16.305988][ C3] [ 16.305989][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.305992][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.305996][ 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 [ 16.305998][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 16.306002][ C3] RAX: 000000000004908f RBX: 1ffff9200002afc1 RCX: ffffffff96355a19 [ 16.306004][ C3] RDX: 0000000000000000 RSI: ffffffff96e85f31 RDI: ffffffff96650ce0 [ 16.306005][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 16.306007][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 16.306009][ C3] R13: ffff888001bb4640 R14: dffffc0000000000 R15: 0000000000000000 [ 16.306012][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.306018][ C3] default_idle+0x9/0x10 [ 16.306020][ C3] default_idle_call+0x6d/0xb0 [ 16.306023][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.306026][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.306030][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 16.306035][ C3] do_idle+0xf6/0x160 [ 16.306039][ C3] cpu_startup_entry+0x54/0x60 [ 16.306043][ C3] start_secondary+0x213/0x2a0 [ 16.306046][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.306051][ C3] common_startup_64+0x13e/0x148 [ 16.306058][ C3] [ 18.731829][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.732196][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 18.732509][ C2] preempt_count: 101, expected: 0 [ 18.732738][ C2] RCU nest depth: 0, expected: 0 [ 18.732919][ C2] INFO: lockdep is turned off. [ 18.733094][ C2] Preemption disabled at: [ 18.733096][ C2] [<0000000000000000>] 0x0 [ 18.733415][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 18.733421][ C2] Tainted: [W]=WARN [ 18.733422][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.733424][ C2] Call Trace: [ 18.733426][ C2] [ 18.733428][ C2] dump_stack_lvl+0xb0/0xd0 [ 18.733437][ C2] __might_resched+0x360/0x5a0 [ 18.733444][ C2] down_write+0x72/0x210 [ 18.733448][ C2] ? __pfx_down_write+0x10/0x10 [ 18.733450][ C2] ? simple_recursive_removal+0x3a/0x860 [ 18.733455][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.733461][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.733466][ C2] simple_recursive_removal+0x166/0x860 [ 18.733468][ C2] ? __pfx_remove_one+0x10/0x10 [ 18.733473][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 18.733480][ C2] debugfs_remove+0x44/0x70 [ 18.733484][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 18.733490][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.733495][ C2] ? __sk_destruct+0x383/0x780 [ 18.733501][ C2] ? rcu_do_batch+0x34c/0xf20 [ 18.733507][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.733509][ C2] ? irq_exit_rcu+0xe/0x30 [ 18.733513][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.733518][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.733522][ C2] ? pv_native_safe_halt+0xf/0x20 [ 18.733525][ C2] ? default_idle+0x9/0x10 [ 18.733528][ C2] ? default_idle_call+0x6d/0xb0 [ 18.733530][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.733535][ C2] ? do_idle+0xf6/0x160 [ 18.733538][ C2] ? cpu_startup_entry+0x54/0x60 [ 18.733541][ C2] ? start_secondary+0x213/0x2a0 [ 18.733546][ C2] ? common_startup_64+0x13e/0x148 [ 18.733551][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.733555][ C2] ? rcu_is_watching+0x12/0xc0 [ 18.733560][ C2] __put_net+0x19/0x60 [ 18.733563][ C2] __sk_destruct+0x58a/0x780 [ 18.733570][ C2] ? rcu_do_batch+0x34a/0xf20 [ 18.733573][ C2] rcu_do_batch+0x34c/0xf20 [ 18.733578][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.733582][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.733587][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.733592][ C2] rcu_core+0x2bb/0x500 [ 18.733596][ C2] handle_softirqs+0x218/0x620 [ 18.733601][ C2] __irq_exit_rcu+0xfa/0x160 [ 18.733603][ C2] irq_exit_rcu+0xe/0x30 [ 18.733605][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.733609][ C2] [ 18.733610][ C2] [ 18.733611][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.733614][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.733618][ 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 [ 18.733621][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 18.733625][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff96355a19 [ 18.733627][ C2] RDX: ffffed1006c2667b RSI: ffffffff96650c60 RDI: ffffffff93b84d8f [ 18.733629][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c2667a [ 18.733631][ C2] R10: ffff8880361333d3 R11: ffff888001d5a858 R12: 0000000000000000 [ 18.733633][ C2] R13: ffff888001bb2340 R14: dffffc0000000000 R15: 0000000000000000 [ 18.733637][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.733641][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.733645][ C2] default_idle+0x9/0x10 [ 18.733647][ C2] default_idle_call+0x6d/0xb0 [ 18.733650][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 18.733653][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.733658][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 18.733662][ C2] do_idle+0xf6/0x160 [ 18.733666][ C2] cpu_startup_entry+0x54/0x60 [ 18.733670][ C2] start_secondary+0x213/0x2a0 [ 18.733673][ C2] ? __pfx_start_secondary+0x10/0x10 [ 18.733678][ C2] common_startup_64+0x13e/0x148 [ 18.733684][ C2]