[ 16.380524][ C2] [ 16.380663][ C2] ================================ [ 16.380868][ C2] WARNING: inconsistent lock state [ 16.381058][ C2] 6.15.0-virtme #1 Not tainted [ 16.381250][ C2] -------------------------------- [ 16.381435][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.381668][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.381898][ C2] ffffffffb43c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.382229][ C2] {SOFTIRQ-ON-W} state was registered at: [ 16.382420][ C2] __lock_acquire+0x20b/0x7e0 [ 16.382610][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.382795][ C2] _raw_spin_lock+0x33/0x40 [ 16.382983][ C2] simple_pin_fs+0x24/0x150 [ 16.383169][ C2] start_creating.part.0+0x52/0x310 [ 16.383359][ C2] debugfs_create_dir+0x6a/0x540 [ 16.383549][ C2] component_debug_init+0x17/0x30 [ 16.383737][ C2] do_one_initcall+0x8f/0x1e0 [ 16.383928][ C2] do_initcalls+0x176/0x280 [ 16.384120][ C2] kernel_init_freeable+0x22d/0x300 [ 16.384306][ C2] kernel_init+0x20/0x200 [ 16.384493][ C2] ret_from_fork+0x240/0x320 [ 16.384682][ C2] ret_from_fork_asm+0x1a/0x30 [ 16.384869][ C2] irq event stamp: 249676 [ 16.385011][ C2] hardirqs last enabled at (249676): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.385380][ C2] hardirqs last disabled at (249675): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.385760][ C2] softirqs last enabled at (249650): [] handle_softirqs+0x358/0x620 [ 16.386089][ C2] softirqs last disabled at (249657): [] __irq_exit_rcu+0xfa/0x160 [ 16.386415][ C2] [ 16.386415][ C2] other info that might help us debug this: [ 16.386688][ C2] Possible unsafe locking scenario: [ 16.386688][ C2] [ 16.386959][ C2] CPU0 [ 16.387099][ C2] ---- [ 16.387239][ C2] lock(pin_fs_lock); [ 16.387385][ C2] [ 16.387525][ C2] lock(pin_fs_lock); [ 16.387668][ C2] [ 16.387668][ C2] *** DEADLOCK *** [ 16.387668][ C2] [ 16.387944][ C2] 1 lock held by swapper/2/0: [ 16.388132][ C2] #0: ffffffffb41774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.388466][ C2] [ 16.388466][ C2] stack backtrace: [ 16.388699][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.388703][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.388705][ C2] Call Trace: [ 16.388707][ C2] [ 16.388709][ C2] dump_stack_lvl+0x82/0xd0 [ 16.388715][ C2] print_usage_bug.part.0+0x25f/0x360 [ 16.388719][ C2] mark_lock_irq+0x343/0x400 [ 16.388724][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 16.388729][ C2] ? save_trace+0x52/0x170 [ 16.388735][ C2] mark_lock+0x174/0x2f0 [ 16.388738][ C2] mark_usage+0x46/0x150 [ 16.388741][ C2] __lock_acquire+0x20b/0x7e0 [ 16.388744][ C2] ? __lock_acquire+0x44d/0x7e0 [ 16.388748][ C2] lock_acquire.part.0+0xb6/0x240 [ 16.388751][ C2] ? simple_pin_fs+0x24/0x150 [ 16.388755][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.388760][ C2] ? lock_acquire+0x10c/0x170 [ 16.388762][ C2] ? simple_pin_fs+0x24/0x150 [ 16.388767][ C2] _raw_spin_lock+0x33/0x40 [ 16.388770][ C2] ? simple_pin_fs+0x24/0x150 [ 16.388774][ C2] simple_pin_fs+0x24/0x150 [ 16.388778][ C2] debugfs_remove+0x35/0x70 [ 16.388781][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.388786][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.388790][ C2] ? __sk_destruct+0x383/0x780 [ 16.388795][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.388798][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.388801][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.388804][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.388809][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.388813][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.388816][ C2] ? default_idle+0x9/0x10 [ 16.388818][ C2] ? default_idle_call+0x6d/0xb0 [ 16.388821][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.388824][ C2] ? do_idle+0xf6/0x160 [ 16.388826][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.388829][ C2] ? start_secondary+0x213/0x2a0 [ 16.388832][ C2] ? common_startup_64+0x13e/0x148 [ 16.388840][ C2] __put_net+0x19/0x60 [ 16.388843][ C2] __sk_destruct+0x58a/0x780 [ 16.388847][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.388850][ C2] rcu_do_batch+0x34c/0xf20 [ 16.388853][ C2] ? find_held_lock+0x2b/0x80 [ 16.388858][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.388861][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.388865][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.388867][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.388872][ C2] rcu_core+0x2bb/0x500 [ 16.388877][ C2] handle_softirqs+0x218/0x620 [ 16.388882][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.388885][ C2] irq_exit_rcu+0xe/0x30 [ 16.388888][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.388891][ C2] [ 16.388893][ C2] [ 16.388894][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.388897][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.388901][ C2] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.388904][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 16.388907][ C2] RAX: 000000000003cf37 RBX: 1ffff92000028fc1 RCX: ffffffffb31905d9 [ 16.388909][ C2] RDX: 0000000000000000 RSI: ffffffffb3c8f4e4 RDI: ffffffffb3453be0 [ 16.388911][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 16.388913][ C2] R10: ffff8880361337d3 R11: ffffffffb3e11288 R12: 0000000000000000 [ 16.388914][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.388918][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.388923][ C2] default_idle+0x9/0x10 [ 16.388925][ C2] default_idle_call+0x6d/0xb0 [ 16.388928][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.388931][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.388935][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.388940][ C2] do_idle+0xf6/0x160 [ 16.388943][ C2] cpu_startup_entry+0x54/0x60 [ 16.388946][ C2] start_secondary+0x213/0x2a0 [ 16.388949][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.388953][ C2] common_startup_64+0x13e/0x148 [ 16.388961][ C2] [ 16.403789][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.404104][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.404419][ C2] preempt_count: 101, expected: 0 [ 16.404613][ C2] RCU nest depth: 0, expected: 0 [ 16.404800][ C2] INFO: lockdep is turned off. [ 16.404984][ C2] Preemption disabled at: [ 16.404986][ C2] [<0000000000000000>] 0x0 [ 16.405313][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.405318][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.405319][ C2] Call Trace: [ 16.405321][ C2] [ 16.405323][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.405330][ C2] __might_resched+0x360/0x5a0 [ 16.405337][ C2] down_write+0x72/0x210 [ 16.405341][ C2] ? __pfx_down_write+0x10/0x10 [ 16.405344][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.405348][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.405353][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.405359][ C2] simple_recursive_removal+0x6a/0x610 [ 16.405362][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.405365][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.405371][ C2] debugfs_remove+0x44/0x70 [ 16.405373][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.405379][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.405382][ C2] ? __sk_destruct+0x383/0x780 [ 16.405387][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.405391][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.405394][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.405398][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.405402][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.405406][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.405409][ C2] ? default_idle+0x9/0x10 [ 16.405412][ C2] ? default_idle_call+0x6d/0xb0 [ 16.405414][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.405417][ C2] ? do_idle+0xf6/0x160 [ 16.405419][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.405422][ C2] ? start_secondary+0x213/0x2a0 [ 16.405425][ C2] ? common_startup_64+0x13e/0x148 [ 16.405432][ C2] __put_net+0x19/0x60 [ 16.405436][ C2] __sk_destruct+0x58a/0x780 [ 16.405440][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.405442][ C2] rcu_do_batch+0x34c/0xf20 [ 16.405446][ C2] ? find_held_lock+0x2b/0x80 [ 16.405451][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.405454][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.405459][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.405461][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.405466][ C2] rcu_core+0x2bb/0x500 [ 16.405470][ C2] handle_softirqs+0x218/0x620 [ 16.405476][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.405479][ C2] irq_exit_rcu+0xe/0x30 [ 16.405482][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.405487][ C2] [ 16.405488][ C2] [ 16.405490][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.405492][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.405496][ C2] Code: 92 b5 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 83 37 10 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 16.405499][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 16.405503][ C2] RAX: 000000000003cf37 RBX: 1ffff92000028fc1 RCX: ffffffffb31905d9 [ 16.405505][ C2] RDX: 0000000000000000 RSI: ffffffffb3c8f4e4 RDI: ffffffffb3453be0 [ 16.405506][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 16.405508][ C2] R10: ffff8880361337d3 R11: ffffffffb3e11288 R12: 0000000000000000 [ 16.405510][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.405513][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.405518][ C2] default_idle+0x9/0x10 [ 16.405521][ C2] default_idle_call+0x6d/0xb0 [ 16.405523][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.405526][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.405530][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.405534][ C2] do_idle+0xf6/0x160 [ 16.405538][ C2] cpu_startup_entry+0x54/0x60 [ 16.405540][ C2] start_secondary+0x213/0x2a0 [ 16.405543][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.405548][ C2] common_startup_64+0x13e/0x148 [ 16.405555][ C2] [ 18.736332][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.736740][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 18.737016][ C1] preempt_count: 100, expected: 0 [ 18.737173][ C1] RCU nest depth: 0, expected: 0 [ 18.737327][ C1] INFO: lockdep is turned off. [ 18.737495][ C1] Preemption disabled at: [ 18.737496][ C1] [] handle_softirqs+0xe5/0x620 [ 18.737822][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.737827][ C1] Tainted: [W]=WARN [ 18.737829][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.737831][ C1] Call Trace: [ 18.737833][ C1] [ 18.737835][ C1] dump_stack_lvl+0xb0/0xd0 [ 18.737842][ C1] __might_resched+0x360/0x5a0 [ 18.737849][ C1] down_write+0x72/0x210 [ 18.737854][ C1] ? __pfx_down_write+0x10/0x10 [ 18.737857][ C1] ? simple_recursive_removal+0x33/0x610 [ 18.737861][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.737866][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.737872][ C1] simple_recursive_removal+0x6a/0x610 [ 18.737875][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 18.737878][ C1] ? __pfx_remove_one+0x10/0x10 [ 18.737884][ C1] debugfs_remove+0x44/0x70 [ 18.737887][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 18.737892][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.737896][ C1] ? __sk_destruct+0x383/0x780 [ 18.737901][ C1] ? rcu_do_batch+0x34c/0xf20 [ 18.737904][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.737908][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 18.737912][ C1] ? kthread+0x37e/0x600 [ 18.737914][ C1] ? ret_from_fork+0x240/0x320 [ 18.737918][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 18.737924][ C1] ? migrate_enable+0x1f2/0x270 [ 18.737928][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 18.737931][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.737935][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.737940][ C1] __put_net+0x19/0x60 [ 18.737943][ C1] __sk_destruct+0x58a/0x780 [ 18.737947][ C1] ? rcu_do_batch+0x34a/0xf20 [ 18.737950][ C1] rcu_do_batch+0x34c/0xf20 [ 18.737954][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.737958][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.737961][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.737968][ C1] rcu_core+0x2bb/0x500 [ 18.737973][ C1] handle_softirqs+0x218/0x620 [ 18.737977][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 18.737980][ C1] run_ksoftirqd+0x3f/0x70 [ 18.737983][ C1] smpboot_thread_fn+0x30a/0x960 [ 18.737987][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 18.737991][ C1] kthread+0x37e/0x600 [ 18.737994][ C1] ? __pfx_kthread+0x10/0x10 [ 18.737996][ C1] ? ret_from_fork+0x1b/0x320 [ 18.737998][ C1] ? __lock_release+0x5d/0x170 [ 18.738002][ C1] ? rcu_is_watching+0x12/0xc0 [ 18.738005][ C1] ? __pfx_kthread+0x10/0x10 [ 18.738008][ C1] ret_from_fork+0x240/0x320 [ 18.738011][ C1] ? __pfx_kthread+0x10/0x10 [ 18.738013][ C1] ret_from_fork_asm+0x1a/0x30 [ 18.738020][ C1]