[ 15.322516][ C0] [ 15.322644][ C0] ================================ [ 15.322822][ C0] WARNING: inconsistent lock state [ 15.322993][ C0] 6.15.0-virtme #1 Not tainted [ 15.323175][ C0] -------------------------------- [ 15.323359][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.323576][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.323794][ C0] ffffffffb51c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.324112][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.324285][ C0] __lock_acquire+0x20b/0x7e0 [ 15.324469][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.324644][ C0] _raw_spin_lock+0x33/0x40 [ 15.324818][ C0] simple_pin_fs+0x24/0x150 [ 15.324987][ C0] start_creating.part.0+0x52/0x310 [ 15.325156][ C0] debugfs_create_dir+0x6a/0x540 [ 15.325325][ C0] component_debug_init+0x17/0x30 [ 15.325496][ C0] do_one_initcall+0x8f/0x1e0 [ 15.325669][ C0] do_initcalls+0x176/0x280 [ 15.325842][ C0] kernel_init_freeable+0x22d/0x300 [ 15.326011][ C0] kernel_init+0x20/0x200 [ 15.326181][ C0] ret_from_fork+0x240/0x320 [ 15.326379][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.326549][ C0] irq event stamp: 222242 [ 15.326680][ C0] hardirqs last enabled at (222242): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.327014][ C0] hardirqs last disabled at (222241): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.327357][ C0] softirqs last enabled at (221404): [] handle_softirqs+0x358/0x620 [ 15.327655][ C0] softirqs last disabled at (221409): [] run_ksoftirqd+0x3f/0x70 [ 15.327955][ C0] [ 15.327955][ C0] other info that might help us debug this: [ 15.328202][ C0] Possible unsafe locking scenario: [ 15.328202][ C0] [ 15.328452][ C0] CPU0 [ 15.328583][ C0] ---- [ 15.328711][ C0] lock(pin_fs_lock); [ 15.328843][ C0] [ 15.328972][ C0] lock(pin_fs_lock); [ 15.329101][ C0] [ 15.329101][ C0] *** DEADLOCK *** [ 15.329101][ C0] [ 15.329350][ C0] 1 lock held by ksoftirqd/0/14: [ 15.329524][ C0] #0: ffffffffb4f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.329826][ C0] [ 15.329826][ C0] stack backtrace: [ 15.330038][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.330042][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.330045][ C0] Call Trace: [ 15.330047][ C0] [ 15.330049][ C0] dump_stack_lvl+0x82/0xd0 [ 15.330056][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.330061][ C0] mark_lock_irq+0x343/0x400 [ 15.330065][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.330070][ C0] ? save_trace+0x52/0x170 [ 15.330076][ C0] mark_lock+0x174/0x2f0 [ 15.330079][ C0] mark_usage+0x46/0x150 [ 15.330083][ C0] __lock_acquire+0x20b/0x7e0 [ 15.330086][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.330090][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.330093][ C0] ? simple_pin_fs+0x24/0x150 [ 15.330097][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.330102][ C0] ? lock_acquire+0x10c/0x170 [ 15.330104][ C0] ? simple_pin_fs+0x24/0x150 [ 15.330109][ C0] _raw_spin_lock+0x33/0x40 [ 15.330112][ C0] ? simple_pin_fs+0x24/0x150 [ 15.330116][ C0] simple_pin_fs+0x24/0x150 [ 15.330119][ C0] debugfs_remove+0x35/0x70 [ 15.330123][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.330128][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.330132][ C0] ? __sk_destruct+0x383/0x780 [ 15.330137][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.330140][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.330143][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 15.330147][ C0] ? kthread+0x37e/0x600 [ 15.330150][ C0] ? ret_from_fork+0x240/0x320 [ 15.330153][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 15.330156][ C0] ? migrate_enable+0x1f2/0x270 [ 15.330159][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 15.330165][ C0] __put_net+0x19/0x60 [ 15.330168][ C0] __sk_destruct+0x58a/0x780 [ 15.330172][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.330174][ C0] rcu_do_batch+0x34c/0xf20 [ 15.330179][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.330182][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.330185][ C0] ? note_gp_changes+0x182/0x1e0 [ 15.330188][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.330192][ C0] rcu_core+0x2bb/0x500 [ 15.330196][ C0] handle_softirqs+0x218/0x620 [ 15.330200][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.330204][ C0] run_ksoftirqd+0x3f/0x70 [ 15.330206][ C0] smpboot_thread_fn+0x30a/0x960 [ 15.330210][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.330214][ C0] kthread+0x37e/0x600 [ 15.330217][ C0] ? __pfx_kthread+0x10/0x10 [ 15.330219][ C0] ? ret_from_fork+0x1b/0x320 [ 15.330221][ C0] ? __lock_release+0x5d/0x170 [ 15.330224][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.330228][ C0] ? __pfx_kthread+0x10/0x10 [ 15.330230][ C0] ret_from_fork+0x240/0x320 [ 15.330233][ C0] ? __pfx_kthread+0x10/0x10 [ 15.330235][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.330243][ C0] [ 15.340200][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.340498][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 15.340787][ C0] preempt_count: 100, expected: 0 [ 15.340951][ C0] RCU nest depth: 0, expected: 0 [ 15.341116][ C0] INFO: lockdep is turned off. [ 15.341279][ C0] Preemption disabled at: [ 15.341281][ C0] [] handle_softirqs+0xe5/0x620 [ 15.341624][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.341628][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.341630][ C0] Call Trace: [ 15.341631][ C0] [ 15.341633][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.341639][ C0] __might_resched+0x360/0x5a0 [ 15.341645][ C0] down_write+0x72/0x210 [ 15.341649][ C0] ? __pfx_down_write+0x10/0x10 [ 15.341652][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.341656][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.341660][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.341665][ C0] simple_recursive_removal+0x6a/0x610 [ 15.341668][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.341671][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.341676][ C0] debugfs_remove+0x44/0x70 [ 15.341679][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.341683][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.341687][ C0] ? __sk_destruct+0x383/0x780 [ 15.341691][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.341694][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.341697][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 15.341701][ C0] ? kthread+0x37e/0x600 [ 15.341704][ C0] ? ret_from_fork+0x240/0x320 [ 15.341707][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 15.341710][ C0] ? migrate_enable+0x1f2/0x270 [ 15.341714][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 15.341719][ C0] __put_net+0x19/0x60 [ 15.341722][ C0] __sk_destruct+0x58a/0x780 [ 15.341726][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.341728][ C0] rcu_do_batch+0x34c/0xf20 [ 15.341733][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.341737][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.341740][ C0] ? note_gp_changes+0x182/0x1e0 [ 15.341742][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.341747][ C0] rcu_core+0x2bb/0x500 [ 15.341750][ C0] handle_softirqs+0x218/0x620 [ 15.341754][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.341758][ C0] run_ksoftirqd+0x3f/0x70 [ 15.341761][ C0] smpboot_thread_fn+0x30a/0x960 [ 15.341765][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.341769][ C0] kthread+0x37e/0x600 [ 15.341771][ C0] ? __pfx_kthread+0x10/0x10 [ 15.341773][ C0] ? ret_from_fork+0x1b/0x320 [ 15.341776][ C0] ? __lock_release+0x5d/0x170 [ 15.341779][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.341782][ C0] ? __pfx_kthread+0x10/0x10 [ 15.341785][ C0] ret_from_fork+0x240/0x320 [ 15.341788][ C0] ? __pfx_kthread+0x10/0x10 [ 15.341790][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.341798][ C0] [ 16.994288][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.994721][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 16.995032][ C3] preempt_count: 101, expected: 0 [ 16.995212][ C3] RCU nest depth: 0, expected: 0 [ 16.995405][ C3] INFO: lockdep is turned off. [ 16.995608][ C3] Preemption disabled at: [ 16.995610][ C3] [<0000000000000000>] 0x0 [ 16.995929][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.995935][ C3] Tainted: [W]=WARN [ 16.995936][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.995939][ C3] Call Trace: [ 16.995940][ C3] [ 16.995943][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.995952][ C3] __might_resched+0x360/0x5a0 [ 16.995959][ C3] down_write+0x72/0x210 [ 16.995964][ C3] ? __pfx_down_write+0x10/0x10 [ 16.995966][ C3] ? simple_recursive_removal+0x33/0x610 [ 16.995971][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.995976][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.995982][ C3] simple_recursive_removal+0x6a/0x610 [ 16.995984][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.995988][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.995993][ C3] debugfs_remove+0x44/0x70 [ 16.995996][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.996002][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.996005][ C3] ? __sk_destruct+0x383/0x780 [ 16.996012][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.996015][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.996019][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.996024][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.996028][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.996032][ C3] ? pv_native_safe_halt+0xf/0x20 [ 16.996036][ C3] ? default_idle+0x9/0x10 [ 16.996038][ C3] ? default_idle_call+0x6d/0xb0 [ 16.996041][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.996045][ C3] ? do_idle+0xf6/0x160 [ 16.996047][ C3] ? cpu_startup_entry+0x54/0x60 [ 16.996050][ C3] ? start_secondary+0x213/0x2a0 [ 16.996053][ C3] ? common_startup_64+0x13e/0x148 [ 16.996058][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.996063][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.996067][ C3] __put_net+0x19/0x60 [ 16.996071][ C3] __sk_destruct+0x58a/0x780 [ 16.996075][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.996077][ C3] rcu_do_batch+0x34c/0xf20 [ 16.996082][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.996086][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.996092][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.996098][ C3] rcu_core+0x2bb/0x500 [ 16.996103][ C3] handle_softirqs+0x218/0x620 [ 16.996108][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.996111][ C3] irq_exit_rcu+0xe/0x30 [ 16.996114][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.996118][ C3] [ 16.996119][ C3] [ 16.996120][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.996123][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.996128][ C3] Code: a2 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 47 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.996130][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 16.996134][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffffb3f8f5d9 [ 16.996136][ C3] RDX: ffffed1006c366fb RSI: ffffffffb4253b60 RDI: ffffffffb178d18f [ 16.996138][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 16.996139][ C3] R10: ffff8880361b37d3 R11: ffffffffb792a648 R12: 0000000000000000 [ 16.996141][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 16.996145][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.996148][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.996152][ C3] default_idle+0x9/0x10 [ 16.996154][ C3] default_idle_call+0x6d/0xb0 [ 16.996157][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 16.996160][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.996164][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.996168][ C3] do_idle+0xf6/0x160 [ 16.996172][ C3] cpu_startup_entry+0x54/0x60 [ 16.996175][ C3] start_secondary+0x213/0x2a0 [ 16.996178][ C3] ? __pfx_start_secondary+0x10/0x10 [ 16.996182][ C3] common_startup_64+0x13e/0x148 [ 16.996196][ C3]