[ 19.808879][ C2] [ 19.809075][ C2] ================================ [ 19.809258][ C2] WARNING: inconsistent lock state [ 19.809440][ C2] 6.15.0-virtme #1 Not tainted [ 19.809644][ C2] -------------------------------- [ 19.809814][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 19.810041][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 19.810258][ C2] ffffffff925c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 19.810561][ C2] {SOFTIRQ-ON-W} state was registered at: [ 19.810731][ C2] __lock_acquire+0x20b/0x7e0 [ 19.810906][ C2] lock_acquire.part.0+0xb6/0x240 [ 19.811078][ C2] _raw_spin_lock+0x33/0x40 [ 19.811250][ C2] simple_pin_fs+0x24/0x150 [ 19.811421][ C2] start_creating.part.0+0x52/0x310 [ 19.811593][ C2] debugfs_create_dir+0x6a/0x540 [ 19.811762][ C2] component_debug_init+0x17/0x30 [ 19.811938][ C2] do_one_initcall+0x8f/0x1e0 [ 19.812109][ C2] do_initcalls+0x176/0x280 [ 19.812277][ C2] kernel_init_freeable+0x22d/0x300 [ 19.812448][ C2] kernel_init+0x20/0x200 [ 19.812620][ C2] ret_from_fork+0x240/0x320 [ 19.812790][ C2] ret_from_fork_asm+0x1a/0x30 [ 19.812959][ C2] irq event stamp: 206102 [ 19.813088][ C2] hardirqs last enabled at (206102): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 19.813427][ C2] hardirqs last disabled at (206101): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 19.813768][ C2] softirqs last enabled at (205878): [] handle_softirqs+0x358/0x620 [ 19.814062][ C2] softirqs last disabled at (205885): [] run_ksoftirqd+0x3f/0x70 [ 19.814352][ C2] [ 19.814352][ C2] other info that might help us debug this: [ 19.814598][ C2] Possible unsafe locking scenario: [ 19.814598][ C2] [ 19.814861][ C2] CPU0 [ 19.814987][ C2] ---- [ 19.815115][ C2] lock(pin_fs_lock); [ 19.815246][ C2] [ 19.815374][ C2] lock(pin_fs_lock); [ 19.815507][ C2] [ 19.815507][ C2] *** DEADLOCK *** [ 19.815507][ C2] [ 19.815755][ C2] 1 lock held by ksoftirqd/2/27: [ 19.815928][ C2] #0: ffffffff923774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 19.816238][ C2] [ 19.816238][ C2] stack backtrace: [ 19.816449][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 19.816453][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.816455][ C2] Call Trace: [ 19.816457][ C2] [ 19.816459][ C2] dump_stack_lvl+0x82/0xd0 [ 19.816465][ C2] print_usage_bug.part.0+0x25f/0x360 [ 19.816470][ C2] mark_lock_irq+0x343/0x400 [ 19.816474][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.816479][ C2] ? save_trace+0x52/0x170 [ 19.816484][ C2] mark_lock+0x174/0x2f0 [ 19.816488][ C2] mark_usage+0x46/0x150 [ 19.816491][ C2] __lock_acquire+0x20b/0x7e0 [ 19.816494][ C2] ? __lock_acquire+0x44d/0x7e0 [ 19.816498][ C2] lock_acquire.part.0+0xb6/0x240 [ 19.816501][ C2] ? simple_pin_fs+0x24/0x150 [ 19.816505][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.816509][ C2] ? lock_acquire+0x10c/0x170 [ 19.816512][ C2] ? simple_pin_fs+0x24/0x150 [ 19.816516][ C2] _raw_spin_lock+0x33/0x40 [ 19.816520][ C2] ? simple_pin_fs+0x24/0x150 [ 19.816523][ C2] simple_pin_fs+0x24/0x150 [ 19.816527][ C2] debugfs_remove+0x35/0x70 [ 19.816530][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.816536][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.816540][ C2] ? __sk_destruct+0x383/0x780 [ 19.816545][ C2] ? rcu_do_batch+0x34c/0xf20 [ 19.816548][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.816551][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 19.816556][ C2] ? kthread+0x37e/0x600 [ 19.816558][ C2] ? ret_from_fork+0x240/0x320 [ 19.816561][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 19.816564][ C2] ? migrate_enable+0x1f2/0x270 [ 19.816568][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 19.816574][ C2] __put_net+0x19/0x60 [ 19.816578][ C2] __sk_destruct+0x58a/0x780 [ 19.816582][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.816584][ C2] rcu_do_batch+0x34c/0xf20 [ 19.816589][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.816592][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.816595][ C2] ? note_gp_changes+0x182/0x1e0 [ 19.816598][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.816602][ C2] rcu_core+0x2bb/0x500 [ 19.816606][ C2] handle_softirqs+0x218/0x620 [ 19.816610][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 19.816614][ C2] run_ksoftirqd+0x3f/0x70 [ 19.816617][ C2] smpboot_thread_fn+0x30a/0x960 [ 19.816620][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.816624][ C2] kthread+0x37e/0x600 [ 19.816627][ C2] ? __pfx_kthread+0x10/0x10 [ 19.816629][ C2] ? ret_from_fork+0x1b/0x320 [ 19.816632][ C2] ? __lock_release+0x5d/0x170 [ 19.816635][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.816638][ C2] ? __pfx_kthread+0x10/0x10 [ 19.816641][ C2] ret_from_fork+0x240/0x320 [ 19.816644][ C2] ? __pfx_kthread+0x10/0x10 [ 19.816646][ C2] ret_from_fork_asm+0x1a/0x30 [ 19.816653][ C2] [ 19.826228][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.826519][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 19.826816][ C2] preempt_count: 100, expected: 0 [ 19.826984][ C2] RCU nest depth: 0, expected: 0 [ 19.827160][ C2] INFO: lockdep is turned off. [ 19.827327][ C2] Preemption disabled at: [ 19.827329][ C2] [] handle_softirqs+0xe5/0x620 [ 19.827683][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 19.827687][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.827689][ C2] Call Trace: [ 19.827691][ C2] [ 19.827693][ C2] dump_stack_lvl+0xb0/0xd0 [ 19.827698][ C2] __might_resched+0x360/0x5a0 [ 19.827705][ C2] down_write+0x72/0x210 [ 19.827709][ C2] ? __pfx_down_write+0x10/0x10 [ 19.827712][ C2] ? simple_recursive_removal+0x33/0x610 [ 19.827715][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.827719][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.827725][ C2] simple_recursive_removal+0x6a/0x610 [ 19.827728][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.827731][ C2] ? __pfx_remove_one+0x10/0x10 [ 19.827736][ C2] debugfs_remove+0x44/0x70 [ 19.827739][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.827745][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.827748][ C2] ? __sk_destruct+0x383/0x780 [ 19.827753][ C2] ? rcu_do_batch+0x34c/0xf20 [ 19.827756][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.827759][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 19.827763][ C2] ? kthread+0x37e/0x600 [ 19.827765][ C2] ? ret_from_fork+0x240/0x320 [ 19.827769][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 19.827773][ C2] ? migrate_enable+0x1f2/0x270 [ 19.827776][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 19.827782][ C2] __put_net+0x19/0x60 [ 19.827785][ C2] __sk_destruct+0x58a/0x780 [ 19.827789][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.827791][ C2] rcu_do_batch+0x34c/0xf20 [ 19.827796][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.827799][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.827802][ C2] ? note_gp_changes+0x182/0x1e0 [ 19.827805][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 19.827809][ C2] rcu_core+0x2bb/0x500 [ 19.827813][ C2] handle_softirqs+0x218/0x620 [ 19.827817][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 19.827821][ C2] run_ksoftirqd+0x3f/0x70 [ 19.827823][ C2] smpboot_thread_fn+0x30a/0x960 [ 19.827827][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.827831][ C2] kthread+0x37e/0x600 [ 19.827834][ C2] ? __pfx_kthread+0x10/0x10 [ 19.827836][ C2] ? ret_from_fork+0x1b/0x320 [ 19.827839][ C2] ? __lock_release+0x5d/0x170 [ 19.827842][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.827845][ C2] ? __pfx_kthread+0x10/0x10 [ 19.827848][ C2] ret_from_fork+0x240/0x320 [ 19.827851][ C2] ? __pfx_kthread+0x10/0x10 [ 19.827854][ C2] ret_from_fork_asm+0x1a/0x30 [ 19.827861][ C2] [ 25.917826][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 25.918563][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 25.918903][ C2] preempt_count: 101, expected: 0 [ 25.919102][ C2] RCU nest depth: 0, expected: 0 [ 25.919305][ C2] INFO: lockdep is turned off. [ 25.919523][ C2] Preemption disabled at: [ 25.919526][ C2] [<0000000000000000>] 0x0 [ 25.919920][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 25.919927][ C2] Tainted: [W]=WARN [ 25.919930][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 25.919934][ C2] Call Trace: [ 25.919939][ C2] [ 25.919941][ C2] dump_stack_lvl+0xb0/0xd0 [ 25.919977][ C2] __might_resched+0x360/0x5a0 [ 25.919997][ C2] down_write+0x72/0x210 [ 25.920003][ C2] ? __pfx_down_write+0x10/0x10 [ 25.920006][ C2] ? simple_recursive_removal+0x33/0x610 [ 25.920020][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.920029][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 25.920039][ C2] simple_recursive_removal+0x6a/0x610 [ 25.920042][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 25.920045][ C2] ? __pfx_remove_one+0x10/0x10 [ 25.920055][ C2] debugfs_remove+0x44/0x70 [ 25.920058][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 25.920073][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 25.920077][ C2] ? __sk_destruct+0x383/0x780 [ 25.920092][ C2] ? rcu_do_batch+0x34c/0xf20 [ 25.920097][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 25.920100][ C2] ? irq_exit_rcu+0xe/0x30 [ 25.920115][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.920122][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.920132][ C2] ? pv_native_safe_halt+0xf/0x20 [ 25.920135][ C2] ? default_idle+0x9/0x10 [ 25.920138][ C2] ? default_idle_call+0x6d/0xb0 [ 25.920141][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.920146][ C2] ? do_idle+0xf6/0x160 [ 25.920148][ C2] ? cpu_startup_entry+0x54/0x60 [ 25.920150][ C2] ? start_secondary+0x213/0x2a0 [ 25.920159][ C2] ? common_startup_64+0x13e/0x148 [ 25.920170][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 25.920178][ C2] ? rcu_is_watching+0x12/0xc0 [ 25.920182][ C2] __put_net+0x19/0x60 [ 25.920187][ C2] __sk_destruct+0x58a/0x780 [ 25.920192][ C2] ? rcu_do_batch+0x34a/0xf20 [ 25.920194][ C2] rcu_do_batch+0x34c/0xf20 [ 25.920199][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 25.920202][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 25.920215][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 25.920223][ C2] rcu_core+0x2bb/0x500 [ 25.920227][ C2] handle_softirqs+0x218/0x620 [ 25.920232][ C2] __irq_exit_rcu+0xfa/0x160 [ 25.920235][ C2] irq_exit_rcu+0xe/0x30 [ 25.920238][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 25.920242][ C2] [ 25.920243][ C2] [ 25.920245][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 25.920248][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 25.920254][ 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 [ 25.920256][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 25.920265][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffff913905d9 [ 25.920267][ C2] RDX: ffffed1006c266fb RSI: ffffffff91653b60 RDI: ffffffff8eb8d18f [ 25.920268][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 25.920270][ C2] R10: ffff8880361337d3 R11: ffff88800934cad8 R12: 0000000000000000 [ 25.920272][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 25.920276][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 25.920279][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 25.920283][ C2] default_idle+0x9/0x10 [ 25.920286][ C2] default_idle_call+0x6d/0xb0 [ 25.920289][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 25.920292][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 25.920296][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 25.920300][ C2] do_idle+0xf6/0x160 [ 25.920303][ C2] cpu_startup_entry+0x54/0x60 [ 25.920306][ C2] start_secondary+0x213/0x2a0 [ 25.920309][ C2] ? __pfx_start_secondary+0x10/0x10 [ 25.920313][ C2] common_startup_64+0x13e/0x148 [ 25.920320][ C2]