[ 15.148474][ C2] [ 15.148624][ C2] ================================ [ 15.148824][ C2] WARNING: inconsistent lock state [ 15.149023][ C2] 6.15.0-virtme #1 Not tainted [ 15.149232][ C2] -------------------------------- [ 15.149429][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.149677][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.149920][ C2] ffffffff95dc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.150279][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.150475][ C2] __lock_acquire+0x20b/0x7e0 [ 15.150681][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.150877][ C2] _raw_spin_lock+0x33/0x40 [ 15.151075][ C2] simple_pin_fs+0x24/0x150 [ 15.151271][ C2] start_creating.part.0+0x52/0x310 [ 15.151459][ C2] debugfs_create_dir+0x6a/0x540 [ 15.151658][ C2] component_debug_init+0x17/0x30 [ 15.151848][ C2] do_one_initcall+0x8f/0x1e0 [ 15.152041][ C2] do_initcalls+0x176/0x280 [ 15.152233][ C2] kernel_init_freeable+0x22d/0x300 [ 15.152424][ C2] kernel_init+0x20/0x200 [ 15.152616][ C2] ret_from_fork+0x240/0x320 [ 15.152812][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.153001][ C2] irq event stamp: 305496 [ 15.153147][ C2] hardirqs last enabled at (305496): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.153530][ C2] hardirqs last disabled at (305495): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.153914][ C2] softirqs last enabled at (303440): [] handle_softirqs+0x358/0x620 [ 15.154247][ C2] softirqs last disabled at (303471): [] __irq_exit_rcu+0xfa/0x160 [ 15.154575][ C2] [ 15.154575][ C2] other info that might help us debug this: [ 15.154851][ C2] Possible unsafe locking scenario: [ 15.154851][ C2] [ 15.155126][ C2] CPU0 [ 15.155267][ C2] ---- [ 15.155409][ C2] lock(pin_fs_lock); [ 15.155553][ C2] [ 15.155697][ C2] lock(pin_fs_lock); [ 15.155841][ C2] [ 15.155841][ C2] *** DEADLOCK *** [ 15.155841][ C2] [ 15.156118][ C2] 1 lock held by swapper/2/0: [ 15.156310][ C2] #0: ffffffff95b774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.156648][ C2] [ 15.156648][ C2] stack backtrace: [ 15.156883][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.156887][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.156889][ C2] Call Trace: [ 15.156891][ C2] [ 15.156893][ C2] dump_stack_lvl+0x82/0xd0 [ 15.156900][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.156905][ C2] mark_lock_irq+0x343/0x400 [ 15.156909][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.156913][ C2] ? save_trace+0x52/0x170 [ 15.156920][ C2] mark_lock+0x174/0x2f0 [ 15.156924][ C2] mark_usage+0x46/0x150 [ 15.156927][ C2] __lock_acquire+0x20b/0x7e0 [ 15.156930][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.156934][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.156937][ C2] ? simple_pin_fs+0x24/0x150 [ 15.156941][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.156945][ C2] ? lock_acquire+0x10c/0x170 [ 15.156947][ C2] ? simple_pin_fs+0x24/0x150 [ 15.156952][ C2] _raw_spin_lock+0x33/0x40 [ 15.156955][ C2] ? simple_pin_fs+0x24/0x150 [ 15.156958][ C2] simple_pin_fs+0x24/0x150 [ 15.156963][ C2] debugfs_remove+0x35/0x70 [ 15.156966][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.156972][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.156975][ C2] ? __sk_destruct+0x383/0x780 [ 15.156981][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.156984][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.156987][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.156989][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.156994][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.156998][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.157001][ C2] ? default_idle+0x9/0x10 [ 15.157004][ C2] ? default_idle_call+0x6d/0xb0 [ 15.157006][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.157010][ C2] ? do_idle+0xf6/0x160 [ 15.157012][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.157014][ C2] ? start_secondary+0x213/0x2a0 [ 15.157018][ C2] ? common_startup_64+0x13e/0x148 [ 15.157025][ C2] __put_net+0x19/0x60 [ 15.157029][ C2] __sk_destruct+0x58a/0x780 [ 15.157034][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.157036][ C2] rcu_do_batch+0x34c/0xf20 [ 15.157039][ C2] ? find_held_lock+0x2b/0x80 [ 15.157043][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.157047][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.157050][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.157053][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.157058][ C2] rcu_core+0x2bb/0x500 [ 15.157062][ C2] handle_softirqs+0x218/0x620 [ 15.157067][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.157070][ C2] irq_exit_rcu+0xe/0x30 [ 15.157073][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.157077][ C2] [ 15.157078][ C2] [ 15.157079][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.157082][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.157086][ C2] 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 [ 15.157089][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.157092][ C2] RAX: 000000000004a16d RBX: 1ffff92000028fc1 RCX: ffffffff94b8f5d9 [ 15.157094][ C2] RDX: 0000000000000000 RSI: ffffffff9568f4e4 RDI: ffffffff94e53be0 [ 15.157096][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.157098][ C2] R10: ffff8880361337d3 R11: ffffffff95811288 R12: 0000000000000000 [ 15.157099][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.157103][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.157108][ C2] default_idle+0x9/0x10 [ 15.157111][ C2] default_idle_call+0x6d/0xb0 [ 15.157113][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.157116][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.157120][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.157125][ C2] do_idle+0xf6/0x160 [ 15.157128][ C2] cpu_startup_entry+0x54/0x60 [ 15.157131][ C2] start_secondary+0x213/0x2a0 [ 15.157134][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.157138][ C2] common_startup_64+0x13e/0x148 [ 15.157145][ C2] [ 15.172570][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.172899][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.173330][ C2] preempt_count: 101, expected: 0 [ 15.173516][ C2] RCU nest depth: 0, expected: 0 [ 15.173711][ C2] INFO: lockdep is turned off. [ 15.173908][ C2] Preemption disabled at: [ 15.173910][ C2] [<0000000000000000>] 0x0 [ 15.174353][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.174358][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.174359][ C2] Call Trace: [ 15.174361][ C2] [ 15.174363][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.174369][ C2] __might_resched+0x360/0x5a0 [ 15.174376][ C2] down_write+0x72/0x210 [ 15.174381][ C2] ? __pfx_down_write+0x10/0x10 [ 15.174384][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.174387][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.174391][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.174397][ C2] simple_recursive_removal+0x6a/0x610 [ 15.174400][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.174403][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.174408][ C2] debugfs_remove+0x44/0x70 [ 15.174411][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.174416][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.174419][ C2] ? __sk_destruct+0x383/0x780 [ 15.174424][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.174427][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.174430][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.174434][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.174439][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.174442][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.174445][ C2] ? default_idle+0x9/0x10 [ 15.174448][ C2] ? default_idle_call+0x6d/0xb0 [ 15.174451][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.174454][ C2] ? do_idle+0xf6/0x160 [ 15.174456][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.174459][ C2] ? start_secondary+0x213/0x2a0 [ 15.174462][ C2] ? common_startup_64+0x13e/0x148 [ 15.174469][ C2] __put_net+0x19/0x60 [ 15.174472][ C2] __sk_destruct+0x58a/0x780 [ 15.174476][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.174478][ C2] rcu_do_batch+0x34c/0xf20 [ 15.174482][ C2] ? find_held_lock+0x2b/0x80 [ 15.174487][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.174490][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.174495][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.174497][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.174502][ C2] rcu_core+0x2bb/0x500 [ 15.174506][ C2] handle_softirqs+0x218/0x620 [ 15.174512][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.174515][ C2] irq_exit_rcu+0xe/0x30 [ 15.174517][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.174521][ C2] [ 15.174522][ C2] [ 15.174524][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.174526][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.174530][ C2] 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 [ 15.174532][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.174535][ C2] RAX: 000000000004a16d RBX: 1ffff92000028fc1 RCX: ffffffff94b8f5d9 [ 15.174537][ C2] RDX: 0000000000000000 RSI: ffffffff9568f4e4 RDI: ffffffff94e53be0 [ 15.174539][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.174540][ C2] R10: ffff8880361337d3 R11: ffffffff95811288 R12: 0000000000000000 [ 15.174542][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.174546][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.174551][ C2] default_idle+0x9/0x10 [ 15.174553][ C2] default_idle_call+0x6d/0xb0 [ 15.174556][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.174559][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.174562][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.174567][ C2] do_idle+0xf6/0x160 [ 15.174570][ C2] cpu_startup_entry+0x54/0x60 [ 15.174573][ C2] start_secondary+0x213/0x2a0 [ 15.174576][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.174580][ C2] common_startup_64+0x13e/0x148 [ 15.174587][ C2] [ 16.945867][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.946185][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 16.946466][ C1] preempt_count: 100, expected: 0 [ 16.946634][ C1] RCU nest depth: 0, expected: 0 [ 16.946792][ C1] INFO: lockdep is turned off. [ 16.946948][ C1] Preemption disabled at: [ 16.946950][ C1] [] handle_softirqs+0xe5/0x620 [ 16.947274][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.947279][ C1] Tainted: [W]=WARN [ 16.947281][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.947283][ C1] Call Trace: [ 16.947284][ C1] [ 16.947287][ C1] dump_stack_lvl+0xb0/0xd0 [ 16.947294][ C1] __might_resched+0x360/0x5a0 [ 16.947301][ C1] down_write+0x72/0x210 [ 16.947305][ C1] ? __pfx_down_write+0x10/0x10 [ 16.947308][ C1] ? simple_recursive_removal+0x33/0x610 [ 16.947313][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.947318][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 16.947324][ C1] simple_recursive_removal+0x6a/0x610 [ 16.947327][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 16.947330][ C1] ? __pfx_remove_one+0x10/0x10 [ 16.947336][ C1] debugfs_remove+0x44/0x70 [ 16.947339][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 16.947345][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.947349][ C1] ? __sk_destruct+0x383/0x780 [ 16.947354][ C1] ? rcu_do_batch+0x34c/0xf20 [ 16.947358][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.947361][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 16.947365][ C1] ? kthread+0x37e/0x600 [ 16.947368][ C1] ? ret_from_fork+0x240/0x320 [ 16.947372][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 16.947377][ C1] ? migrate_enable+0x1f2/0x270 [ 16.947381][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 16.947384][ C1] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.947388][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.947392][ C1] __put_net+0x19/0x60 [ 16.947396][ C1] __sk_destruct+0x58a/0x780 [ 16.947400][ C1] ? rcu_do_batch+0x34a/0xf20 [ 16.947402][ C1] rcu_do_batch+0x34c/0xf20 [ 16.947407][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.947410][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.947413][ C1] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.947420][ C1] rcu_core+0x2bb/0x500 [ 16.947425][ C1] handle_softirqs+0x218/0x620 [ 16.947429][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 16.947433][ C1] run_ksoftirqd+0x3f/0x70 [ 16.947436][ C1] smpboot_thread_fn+0x30a/0x960 [ 16.947439][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.947443][ C1] kthread+0x37e/0x600 [ 16.947446][ C1] ? __pfx_kthread+0x10/0x10 [ 16.947448][ C1] ? ret_from_fork+0x1b/0x320 [ 16.947451][ C1] ? __lock_release+0x5d/0x170 [ 16.947454][ C1] ? rcu_is_watching+0x12/0xc0 [ 16.947457][ C1] ? __pfx_kthread+0x10/0x10 [ 16.947460][ C1] ret_from_fork+0x240/0x320 [ 16.947463][ C1] ? __pfx_kthread+0x10/0x10 [ 16.947465][ C1] ret_from_fork_asm+0x1a/0x30 [ 16.947473][ C1]