[ 15.620419][ C3] [ 15.620558][ C3] ================================ [ 15.620773][ C3] WARNING: inconsistent lock state [ 15.620967][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 15.621167][ C3] -------------------------------- [ 15.621366][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.621607][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.621857][ C3] ffffffff9efbff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.622204][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.622397][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.622605][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.622803][ C3] _raw_spin_lock+0x33/0x40 [ 15.623006][ C3] simple_pin_fs+0x24/0x150 [ 15.623201][ C3] start_creating.part.0+0x3f/0x2f0 [ 15.623400][ C3] debugfs_create_dir+0x6a/0x540 [ 15.623594][ C3] component_debug_init+0x17/0x30 [ 15.623793][ C3] do_one_initcall+0x8f/0x1e0 [ 15.623991][ C3] do_initcalls+0x176/0x280 [ 15.624188][ C3] kernel_init_freeable+0x22d/0x300 [ 15.624386][ C3] kernel_init+0x20/0x200 [ 15.624583][ C3] ret_from_fork+0x31/0x70 [ 15.624778][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.624972][ C3] irq event stamp: 243908 [ 15.625129][ C3] hardirqs last enabled at (243908): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.625526][ C3] hardirqs last disabled at (243907): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.625918][ C3] softirqs last enabled at (241844): [] handle_softirqs+0x358/0x620 [ 15.626255][ C3] softirqs last disabled at (241851): [] __irq_exit_rcu+0xfa/0x160 [ 15.626593][ C3] [ 15.626593][ C3] other info that might help us debug this: [ 15.626879][ C3] Possible unsafe locking scenario: [ 15.626879][ C3] [ 15.627166][ C3] CPU0 [ 15.627312][ C3] ---- [ 15.627457][ C3] lock(pin_fs_lock); [ 15.627609][ C3] [ 15.627759][ C3] lock(pin_fs_lock); [ 15.627913][ C3] [ 15.627913][ C3] *** DEADLOCK *** [ 15.627913][ C3] [ 15.628200][ C3] 1 lock held by swapper/3/0: [ 15.628416][ C3] #0: ffffffff9ed749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.628770][ C3] [ 15.628770][ C3] stack backtrace: [ 15.629018][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.629023][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.629025][ C3] Call Trace: [ 15.629027][ C3] [ 15.629029][ C3] dump_stack_lvl+0x82/0xd0 [ 15.629034][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.629040][ C3] mark_lock_irq+0x343/0x400 [ 15.629045][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.629050][ C3] ? save_trace+0x52/0x170 [ 15.629055][ C3] mark_lock+0x174/0x2f0 [ 15.629059][ C3] mark_usage+0x46/0x150 [ 15.629063][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.629068][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.629071][ C3] ? simple_pin_fs+0x24/0x150 [ 15.629074][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.629079][ C3] ? lock_acquire+0x10c/0x170 [ 15.629081][ C3] ? simple_pin_fs+0x24/0x150 [ 15.629084][ C3] _raw_spin_lock+0x33/0x40 [ 15.629087][ C3] ? simple_pin_fs+0x24/0x150 [ 15.629090][ C3] simple_pin_fs+0x24/0x150 [ 15.629093][ C3] debugfs_remove+0x35/0x70 [ 15.629096][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.629101][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.629104][ C3] ? __sk_destruct+0x383/0x780 [ 15.629109][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.629112][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.629115][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.629118][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.629121][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.629124][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.629128][ C3] ? default_idle+0x9/0x10 [ 15.629130][ C3] ? default_idle_call+0x6d/0xb0 [ 15.629133][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.629137][ C3] ? do_idle+0xf6/0x160 [ 15.629140][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.629143][ C3] ? start_secondary+0x213/0x2a0 [ 15.629147][ C3] ? common_startup_64+0x13e/0x148 [ 15.629153][ C3] __put_net+0x19/0x60 [ 15.629157][ C3] __sk_destruct+0x58a/0x780 [ 15.629161][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.629164][ C3] rcu_do_batch+0x34f/0xf20 [ 15.629168][ C3] ? find_held_lock+0x2b/0x80 [ 15.629172][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.629176][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.629179][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.629183][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.629187][ C3] rcu_core+0x2bb/0x500 [ 15.629191][ C3] handle_softirqs+0x218/0x620 [ 15.629196][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.629198][ C3] irq_exit_rcu+0xe/0x30 [ 15.629201][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.629204][ C3] [ 15.629205][ C3] [ 15.629206][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.629209][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.629213][ 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 [ 15.629216][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 15.629219][ C3] RAX: 000000000003b0b9 RBX: 1ffff9200002afc1 RCX: ffffffff9dd5ba19 [ 15.629221][ C3] RDX: 0000000000000000 RSI: ffffffff9e887785 RDI: ffffffff9e051260 [ 15.629223][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb667a [ 15.629224][ C3] R10: ffff88802f5b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.629226][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 15.629230][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.629235][ C3] default_idle+0x9/0x10 [ 15.629237][ C3] default_idle_call+0x6d/0xb0 [ 15.629239][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.629243][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.629247][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.629253][ C3] do_idle+0xf6/0x160 [ 15.629257][ C3] cpu_startup_entry+0x54/0x60 [ 15.629260][ C3] start_secondary+0x213/0x2a0 [ 15.629264][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.629269][ C3] common_startup_64+0x13e/0x148 [ 15.629275][ C3] [ 15.644809][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.645236][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.645560][ C3] preempt_count: 101, expected: 0 [ 15.645746][ C3] RCU nest depth: 0, expected: 0 [ 15.645928][ C3] INFO: lockdep is turned off. [ 15.646111][ C3] Preemption disabled at: [ 15.646113][ C3] [<0000000000000000>] 0x0 [ 15.646422][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.646426][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.646428][ C3] Call Trace: [ 15.646429][ C3] [ 15.646431][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.646437][ C3] __might_resched+0x360/0x5a0 [ 15.646443][ C3] down_write+0x72/0x210 [ 15.646447][ C3] ? __pfx_down_write+0x10/0x10 [ 15.646450][ C3] ? simple_recursive_removal+0x3a/0x860 [ 15.646454][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.646459][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.646464][ C3] simple_recursive_removal+0x166/0x860 [ 15.646466][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.646470][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.646474][ C3] debugfs_remove+0x44/0x70 [ 15.646477][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.646482][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.646484][ C3] ? __sk_destruct+0x383/0x780 [ 15.646489][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.646492][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.646495][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.646498][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.646502][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.646506][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.646509][ C3] ? default_idle+0x9/0x10 [ 15.646511][ C3] ? default_idle_call+0x6d/0xb0 [ 15.646513][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.646517][ C3] ? do_idle+0xf6/0x160 [ 15.646521][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.646524][ C3] ? start_secondary+0x213/0x2a0 [ 15.646528][ C3] ? common_startup_64+0x13e/0x148 [ 15.646533][ C3] __put_net+0x19/0x60 [ 15.646537][ C3] __sk_destruct+0x58a/0x780 [ 15.646543][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.646546][ C3] rcu_do_batch+0x34f/0xf20 [ 15.646550][ C3] ? find_held_lock+0x2b/0x80 [ 15.646554][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.646558][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.646562][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.646566][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.646571][ C3] rcu_core+0x2bb/0x500 [ 15.646575][ C3] handle_softirqs+0x218/0x620 [ 15.646579][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.646582][ C3] irq_exit_rcu+0xe/0x30 [ 15.646584][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.646588][ C3] [ 15.646589][ C3] [ 15.646590][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.646593][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.646597][ 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 [ 15.646600][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 15.646602][ C3] RAX: 000000000003b0b9 RBX: 1ffff9200002afc1 RCX: ffffffff9dd5ba19 [ 15.646605][ C3] RDX: 0000000000000000 RSI: ffffffff9e887785 RDI: ffffffff9e051260 [ 15.646607][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb667a [ 15.646609][ C3] R10: ffff88802f5b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.646610][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 15.646614][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.646619][ C3] default_idle+0x9/0x10 [ 15.646621][ C3] default_idle_call+0x6d/0xb0 [ 15.646623][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.646627][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.646632][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.646636][ C3] do_idle+0xf6/0x160 [ 15.646640][ C3] cpu_startup_entry+0x54/0x60 [ 15.646644][ C3] start_secondary+0x213/0x2a0 [ 15.646648][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.646653][ C3] common_startup_64+0x13e/0x148 [ 15.646659][ C3] [ 17.327633][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.328115][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 17.328478][ C2] preempt_count: 101, expected: 0 [ 17.328694][ C2] RCU nest depth: 0, expected: 0 [ 17.328898][ C2] INFO: lockdep is turned off. [ 17.329119][ C2] Preemption disabled at: [ 17.329121][ C2] [<0000000000000000>] 0x0 [ 17.329494][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.329500][ C2] Tainted: [W]=WARN [ 17.329501][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.329504][ C2] Call Trace: [ 17.329506][ C2] [ 17.329508][ C2] dump_stack_lvl+0xb0/0xd0 [ 17.329519][ C2] __might_resched+0x360/0x5a0 [ 17.329527][ C2] down_write+0x72/0x210 [ 17.329533][ C2] ? __pfx_down_write+0x10/0x10 [ 17.329536][ C2] ? simple_recursive_removal+0x3a/0x860 [ 17.329545][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.329553][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.329559][ C2] simple_recursive_removal+0x166/0x860 [ 17.329562][ C2] ? __pfx_remove_one+0x10/0x10 [ 17.329567][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 17.329572][ C2] debugfs_remove+0x44/0x70 [ 17.329575][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 17.329581][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.329584][ C2] ? __sk_destruct+0x383/0x780 [ 17.329591][ C2] ? rcu_do_batch+0x34f/0xf20 [ 17.329596][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.329599][ C2] ? irq_exit_rcu+0xe/0x30 [ 17.329605][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.329610][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.329615][ C2] ? pv_native_safe_halt+0xf/0x20 [ 17.329618][ C2] ? default_idle+0x9/0x10 [ 17.329621][ C2] ? default_idle_call+0x6d/0xb0 [ 17.329623][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.329629][ C2] ? do_idle+0xf6/0x160 [ 17.329632][ C2] ? cpu_startup_entry+0x54/0x60 [ 17.329635][ C2] ? start_secondary+0x213/0x2a0 [ 17.329641][ C2] ? common_startup_64+0x13e/0x148 [ 17.329647][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.329652][ C2] ? rcu_is_watching+0x12/0xc0 [ 17.329657][ C2] __put_net+0x19/0x60 [ 17.329662][ C2] __sk_destruct+0x58a/0x780 [ 17.329666][ C2] ? rcu_do_batch+0x34a/0xf20 [ 17.329669][ C2] rcu_do_batch+0x34f/0xf20 [ 17.329674][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.329679][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.329684][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.329691][ C2] rcu_core+0x2bb/0x500 [ 17.329695][ C2] handle_softirqs+0x218/0x620 [ 17.329700][ C2] __irq_exit_rcu+0xfa/0x160 [ 17.329703][ C2] irq_exit_rcu+0xe/0x30 [ 17.329705][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.329709][ C2] [ 17.329710][ C2] [ 17.329711][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.329714][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.329719][ C2] 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.329722][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 17.329726][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff9dd5ba19 [ 17.329728][ C2] RDX: ffffed1005ea667b RSI: ffffffff9e0511e0 RDI: ffffffff9b58633f [ 17.329730][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1005ea667a [ 17.329732][ C2] R10: ffff88802f5333d3 R11: ffffffffa17348d0 R12: 0000000000000000 [ 17.329734][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 17.329737][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.329741][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.329745][ C2] default_idle+0x9/0x10 [ 17.329747][ C2] default_idle_call+0x6d/0xb0 [ 17.329750][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 17.329754][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.329758][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.329763][ C2] do_idle+0xf6/0x160 [ 17.329767][ C2] cpu_startup_entry+0x54/0x60 [ 17.329771][ C2] start_secondary+0x213/0x2a0 [ 17.329775][ C2] ? __pfx_start_secondary+0x10/0x10 [ 17.329780][ C2] common_startup_64+0x13e/0x148 [ 17.329787][ C2]