[ 19.999999][ C2] [ 20.000213][ C2] ================================ [ 20.000431][ C2] WARNING: inconsistent lock state [ 20.000616][ C2] 6.15.0-virtme #1 Not tainted [ 20.000788][ C2] -------------------------------- [ 20.000962][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 20.001176][ C2] ksoftirqd/2/27 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 20.001394][ C2] ffffffffbd3c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 20.001714][ C2] {SOFTIRQ-ON-W} state was registered at: [ 20.001890][ C2] __lock_acquire+0x20b/0x7e0 [ 20.002069][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.002239][ C2] _raw_spin_lock+0x33/0x40 [ 20.002414][ C2] simple_pin_fs+0x24/0x150 [ 20.002594][ C2] start_creating.part.0+0x52/0x310 [ 20.002784][ C2] debugfs_create_dir+0x6a/0x540 [ 20.002955][ C2] component_debug_init+0x17/0x30 [ 20.003129][ C2] do_one_initcall+0x8f/0x1e0 [ 20.003302][ C2] do_initcalls+0x176/0x280 [ 20.003473][ C2] kernel_init_freeable+0x22d/0x300 [ 20.003655][ C2] kernel_init+0x20/0x200 [ 20.003828][ C2] ret_from_fork+0x240/0x320 [ 20.004003][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.004180][ C2] irq event stamp: 220476 [ 20.004309][ C2] hardirqs last enabled at (220476): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 20.004687][ C2] hardirqs last disabled at (220475): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 20.005025][ C2] softirqs last enabled at (220386): [] handle_softirqs+0x358/0x620 [ 20.005330][ C2] softirqs last disabled at (220389): [] run_ksoftirqd+0x3f/0x70 [ 20.005642][ C2] [ 20.005642][ C2] other info that might help us debug this: [ 20.005893][ C2] Possible unsafe locking scenario: [ 20.005893][ C2] [ 20.006155][ C2] CPU0 [ 20.006285][ C2] ---- [ 20.006413][ C2] lock(pin_fs_lock); [ 20.006559][ C2] [ 20.006689][ C2] lock(pin_fs_lock); [ 20.006819][ C2] [ 20.006819][ C2] *** DEADLOCK *** [ 20.006819][ C2] [ 20.007073][ C2] 1 lock held by ksoftirqd/2/27: [ 20.007248][ C2] #0: ffffffffbd1774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 20.007564][ C2] [ 20.007564][ C2] stack backtrace: [ 20.007843][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.007850][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.007853][ C2] Call Trace: [ 20.007856][ C2] [ 20.007860][ C2] dump_stack_lvl+0x82/0xd0 [ 20.007869][ C2] print_usage_bug.part.0+0x25f/0x360 [ 20.007877][ C2] mark_lock_irq+0x343/0x400 [ 20.007885][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 20.007892][ C2] ? save_trace+0x52/0x170 [ 20.007901][ C2] mark_lock+0x174/0x2f0 [ 20.007906][ C2] mark_usage+0x46/0x150 [ 20.007910][ C2] __lock_acquire+0x20b/0x7e0 [ 20.007915][ C2] ? __lock_acquire+0x44d/0x7e0 [ 20.007920][ C2] lock_acquire.part.0+0xb6/0x240 [ 20.007925][ C2] ? simple_pin_fs+0x24/0x150 [ 20.007931][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.007936][ C2] ? lock_acquire+0x10c/0x170 [ 20.007940][ C2] ? simple_pin_fs+0x24/0x150 [ 20.007948][ C2] _raw_spin_lock+0x33/0x40 [ 20.007953][ C2] ? simple_pin_fs+0x24/0x150 [ 20.007957][ C2] simple_pin_fs+0x24/0x150 [ 20.007964][ C2] debugfs_remove+0x35/0x70 [ 20.007970][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.007978][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.007984][ C2] ? __sk_destruct+0x383/0x780 [ 20.007992][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.007997][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.008002][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 20.008009][ C2] ? kthread+0x37e/0x600 [ 20.008013][ C2] ? ret_from_fork+0x240/0x320 [ 20.008019][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 20.008026][ C2] ? migrate_enable+0x1f2/0x270 [ 20.008032][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 20.008039][ C2] __put_net+0x19/0x60 [ 20.008045][ C2] __sk_destruct+0x58a/0x780 [ 20.008051][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.008056][ C2] rcu_do_batch+0x34c/0xf20 [ 20.008062][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.008069][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.008072][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 20.008079][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.008084][ C2] ? note_gp_changes+0x182/0x1e0 [ 20.008088][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.008095][ C2] rcu_core+0x2bb/0x500 [ 20.008101][ C2] handle_softirqs+0x218/0x620 [ 20.008108][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.008113][ C2] run_ksoftirqd+0x3f/0x70 [ 20.008116][ C2] smpboot_thread_fn+0x30a/0x960 [ 20.008122][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.008127][ C2] kthread+0x37e/0x600 [ 20.008132][ C2] ? __pfx_kthread+0x10/0x10 [ 20.008136][ C2] ? ret_from_fork+0x1b/0x320 [ 20.008140][ C2] ? __lock_release+0x5d/0x170 [ 20.008146][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.008151][ C2] ? __pfx_kthread+0x10/0x10 [ 20.008156][ C2] ret_from_fork+0x240/0x320 [ 20.008161][ C2] ? __pfx_kthread+0x10/0x10 [ 20.008165][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.008178][ C2] [ 20.022004][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.022303][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 27, name: ksoftirqd/2 [ 20.022606][ C2] preempt_count: 100, expected: 0 [ 20.022793][ C2] RCU nest depth: 0, expected: 0 [ 20.022977][ C2] INFO: lockdep is turned off. [ 20.023145][ C2] Preemption disabled at: [ 20.023147][ C2] [] handle_softirqs+0xe5/0x620 [ 20.023503][ C2] CPU: 2 UID: 0 PID: 27 Comm: ksoftirqd/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 20.023510][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.023513][ C2] Call Trace: [ 20.023516][ C2] [ 20.023520][ C2] dump_stack_lvl+0xb0/0xd0 [ 20.023529][ C2] __might_resched+0x360/0x5a0 [ 20.023536][ C2] down_write+0x72/0x210 [ 20.023540][ C2] ? __pfx_down_write+0x10/0x10 [ 20.023543][ C2] ? simple_recursive_removal+0x33/0x610 [ 20.023547][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.023552][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.023558][ C2] simple_recursive_removal+0x6a/0x610 [ 20.023561][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 20.023564][ C2] ? __pfx_remove_one+0x10/0x10 [ 20.023570][ C2] debugfs_remove+0x44/0x70 [ 20.023573][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 20.023579][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.023583][ C2] ? __sk_destruct+0x383/0x780 [ 20.023589][ C2] ? rcu_do_batch+0x34c/0xf20 [ 20.023592][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.023595][ C2] ? smpboot_thread_fn+0x30a/0x960 [ 20.023599][ C2] ? kthread+0x37e/0x600 [ 20.023602][ C2] ? ret_from_fork+0x240/0x320 [ 20.023606][ C2] ? ret_from_fork_asm+0x1a/0x30 [ 20.023612][ C2] ? migrate_enable+0x1f2/0x270 [ 20.023616][ C2] ? __pfx_migrate_enable+0x10/0x10 [ 20.023621][ C2] __put_net+0x19/0x60 [ 20.023625][ C2] __sk_destruct+0x58a/0x780 [ 20.023629][ C2] ? rcu_do_batch+0x34a/0xf20 [ 20.023632][ C2] rcu_do_batch+0x34c/0xf20 [ 20.023635][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.023639][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.023641][ C2] ? __pfx_tmigr_handle_remote+0x10/0x10 [ 20.023646][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.023649][ C2] ? note_gp_changes+0x182/0x1e0 [ 20.023652][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 20.023656][ C2] rcu_core+0x2bb/0x500 [ 20.023660][ C2] handle_softirqs+0x218/0x620 [ 20.023664][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 20.023667][ C2] run_ksoftirqd+0x3f/0x70 [ 20.023670][ C2] smpboot_thread_fn+0x30a/0x960 [ 20.023674][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.023678][ C2] kthread+0x37e/0x600 [ 20.023681][ C2] ? __pfx_kthread+0x10/0x10 [ 20.023683][ C2] ? ret_from_fork+0x1b/0x320 [ 20.023686][ C2] ? __lock_release+0x5d/0x170 [ 20.023689][ C2] ? rcu_is_watching+0x12/0xc0 [ 20.023692][ C2] ? __pfx_kthread+0x10/0x10 [ 20.023695][ C2] ret_from_fork+0x240/0x320 [ 20.023698][ C2] ? __pfx_kthread+0x10/0x10 [ 20.023700][ C2] ret_from_fork_asm+0x1a/0x30 [ 20.023708][ C2] [ 23.816911][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 23.817399][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 23.817788][ C2] preempt_count: 101, expected: 0 [ 23.818043][ C2] RCU nest depth: 0, expected: 0 [ 23.818277][ C2] INFO: lockdep is turned off. [ 23.818501][ C2] Preemption disabled at: [ 23.818503][ C2] [<0000000000000000>] 0x0 [ 23.818972][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 23.818978][ C2] Tainted: [W]=WARN [ 23.818979][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 23.818981][ C2] Call Trace: [ 23.818984][ C2] [ 23.818986][ C2] dump_stack_lvl+0xb0/0xd0 [ 23.818997][ C2] __might_resched+0x360/0x5a0 [ 23.819008][ C2] down_write+0x72/0x210 [ 23.819014][ C2] ? __pfx_down_write+0x10/0x10 [ 23.819018][ C2] ? simple_recursive_removal+0x33/0x610 [ 23.819022][ C2] ? rcu_is_watching+0x12/0xc0 [ 23.819028][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 23.819034][ C2] simple_recursive_removal+0x6a/0x610 [ 23.819037][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 23.819040][ C2] ? __pfx_remove_one+0x10/0x10 [ 23.819046][ C2] debugfs_remove+0x44/0x70 [ 23.819049][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 23.819055][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 23.819058][ C2] ? __sk_destruct+0x383/0x780 [ 23.819064][ C2] ? rcu_do_batch+0x34c/0xf20 [ 23.819067][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 23.819071][ C2] ? irq_exit_rcu+0xe/0x30 [ 23.819075][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 23.819081][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 23.819085][ C2] ? pv_native_safe_halt+0xf/0x20 [ 23.819088][ C2] ? default_idle+0x9/0x10 [ 23.819091][ C2] ? default_idle_call+0x6d/0xb0 [ 23.819095][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 23.819100][ C2] ? do_idle+0xf6/0x160 [ 23.819103][ C2] ? cpu_startup_entry+0x54/0x60 [ 23.819108][ C2] ? start_secondary+0x213/0x2a0 [ 23.819113][ C2] ? common_startup_64+0x13e/0x148 [ 23.819119][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 23.819123][ C2] ? rcu_is_watching+0x12/0xc0 [ 23.819127][ C2] __put_net+0x19/0x60 [ 23.819130][ C2] __sk_destruct+0x58a/0x780 [ 23.819135][ C2] ? rcu_do_batch+0x34a/0xf20 [ 23.819137][ C2] rcu_do_batch+0x34c/0xf20 [ 23.819142][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 23.819145][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 23.819151][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 23.819156][ C2] rcu_core+0x2bb/0x500 [ 23.819162][ C2] handle_softirqs+0x218/0x620 [ 23.819171][ C2] __irq_exit_rcu+0xfa/0x160 [ 23.819176][ C2] irq_exit_rcu+0xe/0x30 [ 23.819180][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 23.819185][ C2] [ 23.819187][ C2] [ 23.819188][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 23.819191][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 23.819195][ 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 [ 23.819198][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 23.819202][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffbc18f5d9 [ 23.819204][ C2] RDX: ffffed1005ee66fb RSI: ffffffffbc453b60 RDI: ffffffffb998d18f [ 23.819206][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1005ee66fa [ 23.819207][ C2] R10: ffff88802f7337d3 R11: ffff888008814ad8 R12: 0000000000000000 [ 23.819209][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 23.819213][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 23.819216][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 23.819220][ C2] default_idle+0x9/0x10 [ 23.819222][ C2] default_idle_call+0x6d/0xb0 [ 23.819225][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 23.819228][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 23.819232][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 23.819236][ C2] do_idle+0xf6/0x160 [ 23.819240][ C2] cpu_startup_entry+0x54/0x60 [ 23.819243][ C2] start_secondary+0x213/0x2a0 [ 23.819246][ C2] ? __pfx_start_secondary+0x10/0x10 [ 23.819250][ C2] common_startup_64+0x13e/0x148 [ 23.819257][ C2]