[ 15.929671][ C2] [ 15.929822][ C2] ================================ [ 15.930030][ C2] WARNING: inconsistent lock state [ 15.930229][ C2] 6.15.0-rc7-virtme #1 Not tainted [ 15.930428][ C2] -------------------------------- [ 15.930629][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.930875][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.931135][ C2] ffffffffa13bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.931495][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.931694][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.931898][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.932099][ C2] _raw_spin_lock+0x33/0x40 [ 15.932306][ C2] simple_pin_fs+0x24/0x150 [ 15.932511][ C2] start_creating.part.0+0x3f/0x2f0 [ 15.932715][ C2] debugfs_create_dir+0x6a/0x540 [ 15.932920][ C2] component_debug_init+0x17/0x30 [ 15.933127][ C2] do_one_initcall+0x8f/0x1e0 [ 15.933330][ C2] do_initcalls+0x176/0x280 [ 15.933534][ C2] kernel_init_freeable+0x22d/0x300 [ 15.933739][ C2] kernel_init+0x20/0x200 [ 15.933941][ C2] ret_from_fork+0x31/0x70 [ 15.934146][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.934349][ C2] irq event stamp: 282758 [ 15.934504][ C2] hardirqs last enabled at (282758): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.934910][ C2] hardirqs last disabled at (282757): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.935315][ C2] softirqs last enabled at (280828): [] handle_softirqs+0x358/0x620 [ 15.935675][ C2] softirqs last disabled at (280835): [] __irq_exit_rcu+0xfa/0x160 [ 15.936029][ C2] [ 15.936029][ C2] other info that might help us debug this: [ 15.936340][ C2] Possible unsafe locking scenario: [ 15.936340][ C2] [ 15.936645][ C2] CPU0 [ 15.936799][ C2] ---- [ 15.936950][ C2] lock(pin_fs_lock); [ 15.937103][ C2] [ 15.937242][ C2] lock(pin_fs_lock); [ 15.937387][ C2] [ 15.937387][ C2] *** DEADLOCK *** [ 15.937387][ C2] [ 15.937666][ C2] 1 lock held by swapper/2/0: [ 15.937855][ C2] #0: ffffffffa11749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.938193][ C2] [ 15.938193][ C2] stack backtrace: [ 15.938425][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.938430][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.938432][ C2] Call Trace: [ 15.938434][ C2] [ 15.938436][ C2] dump_stack_lvl+0x82/0xd0 [ 15.938442][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.938447][ C2] mark_lock_irq+0x343/0x400 [ 15.938452][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.938458][ C2] ? save_trace+0x52/0x170 [ 15.938462][ C2] mark_lock+0x174/0x2f0 [ 15.938466][ C2] mark_usage+0x46/0x150 [ 15.938470][ C2] __lock_acquire+0x3eb/0x9d0 [ 15.938476][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.938478][ C2] ? simple_pin_fs+0x24/0x150 [ 15.938481][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.938487][ C2] ? lock_acquire+0x10c/0x170 [ 15.938489][ C2] ? simple_pin_fs+0x24/0x150 [ 15.938492][ C2] _raw_spin_lock+0x33/0x40 [ 15.938495][ C2] ? simple_pin_fs+0x24/0x150 [ 15.938498][ C2] simple_pin_fs+0x24/0x150 [ 15.938501][ C2] debugfs_remove+0x35/0x70 [ 15.938504][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.938509][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.938512][ C2] ? __sk_destruct+0x383/0x780 [ 15.938517][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.938520][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.938523][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.938525][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.938530][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.938533][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.938537][ C2] ? default_idle+0x9/0x10 [ 15.938539][ C2] ? default_idle_call+0x6d/0xb0 [ 15.938542][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.938546][ C2] ? do_idle+0xf6/0x160 [ 15.938549][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.938553][ C2] ? start_secondary+0x213/0x2a0 [ 15.938557][ C2] ? common_startup_64+0x13e/0x148 [ 15.938564][ C2] __put_net+0x19/0x60 [ 15.938568][ C2] __sk_destruct+0x58a/0x780 [ 15.938572][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.938575][ C2] rcu_do_batch+0x34f/0xf20 [ 15.938579][ C2] ? find_held_lock+0x2b/0x80 [ 15.938583][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.938586][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.938590][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.938593][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.938598][ C2] rcu_core+0x2bb/0x500 [ 15.938602][ C2] handle_softirqs+0x218/0x620 [ 15.938607][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.938609][ C2] irq_exit_rcu+0xe/0x30 [ 15.938612][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.938615][ C2] [ 15.938616][ C2] [ 15.938618][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.938620][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.938625][ 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 [ 15.938628][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.938631][ C2] RAX: 0000000000044901 RBX: 1ffff92000028fc1 RCX: ffffffffa015ba19 [ 15.938633][ C2] RDX: 0000000000000000 RSI: ffffffffa0c87785 RDI: ffffffffa0451260 [ 15.938635][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee667a [ 15.938636][ C2] R10: ffff88802f7333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.938638][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.938642][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.938646][ C2] default_idle+0x9/0x10 [ 15.938649][ C2] default_idle_call+0x6d/0xb0 [ 15.938651][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.938655][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.938659][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.938664][ C2] do_idle+0xf6/0x160 [ 15.938668][ C2] cpu_startup_entry+0x54/0x60 [ 15.938672][ C2] start_secondary+0x213/0x2a0 [ 15.938675][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.938680][ C2] common_startup_64+0x13e/0x148 [ 15.938687][ C2] [ 15.953702][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.954156][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.954474][ C2] preempt_count: 101, expected: 0 [ 15.954773][ C2] RCU nest depth: 0, expected: 0 [ 15.954973][ C2] INFO: lockdep is turned off. [ 15.955267][ C2] Preemption disabled at: [ 15.955269][ C2] [<0000000000000000>] 0x0 [ 15.955615][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.955619][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.955621][ C2] Call Trace: [ 15.955623][ C2] [ 15.955625][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.955632][ C2] __might_resched+0x360/0x5a0 [ 15.955638][ C2] down_write+0x72/0x210 [ 15.955642][ C2] ? __pfx_down_write+0x10/0x10 [ 15.955645][ C2] ? simple_recursive_removal+0x3a/0x860 [ 15.955650][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.955656][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.955661][ C2] simple_recursive_removal+0x166/0x860 [ 15.955663][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.955668][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.955672][ C2] debugfs_remove+0x44/0x70 [ 15.955675][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.955680][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.955683][ C2] ? __sk_destruct+0x383/0x780 [ 15.955687][ C2] ? rcu_do_batch+0x34f/0xf20 [ 15.955691][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.955694][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.955698][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.955702][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.955706][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.955709][ C2] ? default_idle+0x9/0x10 [ 15.955711][ C2] ? default_idle_call+0x6d/0xb0 [ 15.955714][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.955718][ C2] ? do_idle+0xf6/0x160 [ 15.955721][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.955724][ C2] ? start_secondary+0x213/0x2a0 [ 15.955728][ C2] ? common_startup_64+0x13e/0x148 [ 15.955734][ C2] __put_net+0x19/0x60 [ 15.955738][ C2] __sk_destruct+0x58a/0x780 [ 15.955742][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.955745][ C2] rcu_do_batch+0x34f/0xf20 [ 15.955749][ C2] ? find_held_lock+0x2b/0x80 [ 15.955754][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.955758][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.955762][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.955766][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.955770][ C2] rcu_core+0x2bb/0x500 [ 15.955774][ C2] handle_softirqs+0x218/0x620 [ 15.955779][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.955782][ C2] irq_exit_rcu+0xe/0x30 [ 15.955784][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.955788][ C2] [ 15.955788][ C2] [ 15.955790][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.955793][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.955797][ 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 [ 15.955799][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.955802][ C2] RAX: 0000000000044901 RBX: 1ffff92000028fc1 RCX: ffffffffa015ba19 [ 15.955805][ C2] RDX: 0000000000000000 RSI: ffffffffa0c87785 RDI: ffffffffa0451260 [ 15.955807][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee667a [ 15.955808][ C2] R10: ffff88802f7333d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.955810][ C2] R13: ffff888001bf2340 R14: dffffc0000000000 R15: 0000000000000000 [ 15.955814][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.955819][ C2] default_idle+0x9/0x10 [ 15.955821][ C2] default_idle_call+0x6d/0xb0 [ 15.955823][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.955827][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.955832][ C2] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.955837][ C2] do_idle+0xf6/0x160 [ 15.955841][ C2] cpu_startup_entry+0x54/0x60 [ 15.955844][ C2] start_secondary+0x213/0x2a0 [ 15.955848][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.955853][ C2] common_startup_64+0x13e/0x148 [ 15.955860][ C2] [ 17.930810][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.931159][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 17.931437][ C1] preempt_count: 100, expected: 0 [ 17.931595][ C1] RCU nest depth: 0, expected: 0 [ 17.931756][ C1] INFO: lockdep is turned off. [ 17.931921][ C1] Preemption disabled at: [ 17.931923][ C1] [] handle_softirqs+0xe5/0x620 [ 17.932251][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 17.932256][ C1] Tainted: [W]=WARN [ 17.932258][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.932259][ C1] Call Trace: [ 17.932261][ C1] [ 17.932264][ C1] dump_stack_lvl+0xb0/0xd0 [ 17.932270][ C1] __might_resched+0x360/0x5a0 [ 17.932276][ C1] down_write+0x72/0x210 [ 17.932281][ C1] ? __pfx_down_write+0x10/0x10 [ 17.932284][ C1] ? simple_recursive_removal+0x3a/0x860 [ 17.932289][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.932296][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.932301][ C1] simple_recursive_removal+0x166/0x860 [ 17.932304][ C1] ? __pfx_remove_one+0x10/0x10 [ 17.932308][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.932312][ C1] debugfs_remove+0x44/0x70 [ 17.932315][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.932320][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.932324][ C1] ? __sk_destruct+0x383/0x780 [ 17.932329][ C1] ? rcu_do_batch+0x34f/0xf20 [ 17.932333][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.932336][ C1] ? smpboot_thread_fn+0x307/0x960 [ 17.932340][ C1] ? kthread+0x37b/0x600 [ 17.932344][ C1] ? ret_from_fork+0x31/0x70 [ 17.932347][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.932353][ C1] ? migrate_enable+0x1f2/0x270 [ 17.932358][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.932362][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.932366][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.932371][ C1] __put_net+0x19/0x60 [ 17.932375][ C1] __sk_destruct+0x58a/0x780 [ 17.932379][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.932382][ C1] rcu_do_batch+0x34f/0xf20 [ 17.932387][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.932391][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.932395][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.932400][ C1] rcu_core+0x2bb/0x500 [ 17.932404][ C1] handle_softirqs+0x218/0x620 [ 17.932408][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.932411][ C1] run_ksoftirqd+0x3f/0x70 [ 17.932413][ C1] smpboot_thread_fn+0x307/0x960 [ 17.932417][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.932420][ C1] kthread+0x37b/0x600 [ 17.932424][ C1] ? __pfx_kthread+0x10/0x10 [ 17.932426][ C1] ? ret_from_fork+0x1b/0x70 [ 17.932428][ C1] ? __lock_release+0x5d/0x170 [ 17.932431][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.932435][ C1] ? __pfx_kthread+0x10/0x10 [ 17.932438][ C1] ret_from_fork+0x31/0x70 [ 17.932440][ C1] ? __pfx_kthread+0x10/0x10 [ 17.932444][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.932450][ C1]