[ 15.153237][ C2] [ 15.153381][ C2] ================================ [ 15.153576][ C2] WARNING: inconsistent lock state [ 15.153761][ C2] 6.15.0-virtme #1 Not tainted [ 15.153951][ C2] -------------------------------- [ 15.154135][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.154365][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.154595][ C2] ffffffffb33c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.154934][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.155125][ C2] __lock_acquire+0x20b/0x7e0 [ 15.155321][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.155506][ C2] _raw_spin_lock+0x33/0x40 [ 15.155702][ C2] simple_pin_fs+0x24/0x150 [ 15.155885][ C2] start_creating.part.0+0x52/0x310 [ 15.156072][ C2] debugfs_create_dir+0x6a/0x540 [ 15.156259][ C2] component_debug_init+0x17/0x30 [ 15.156448][ C2] do_one_initcall+0x8f/0x1e0 [ 15.156640][ C2] do_initcalls+0x176/0x280 [ 15.156825][ C2] kernel_init_freeable+0x22d/0x300 [ 15.157008][ C2] kernel_init+0x20/0x200 [ 15.157192][ C2] ret_from_fork+0x240/0x320 [ 15.157382][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.157567][ C2] irq event stamp: 257674 [ 15.157707][ C2] hardirqs last enabled at (257674): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.158074][ C2] hardirqs last disabled at (257673): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.158439][ C2] softirqs last enabled at (255758): [] handle_softirqs+0x358/0x620 [ 15.158765][ C2] softirqs last disabled at (255765): [] __irq_exit_rcu+0xfa/0x160 [ 15.159083][ C2] [ 15.159083][ C2] other info that might help us debug this: [ 15.159353][ C2] Possible unsafe locking scenario: [ 15.159353][ C2] [ 15.159621][ C2] CPU0 [ 15.159763][ C2] ---- [ 15.159918][ C2] lock(pin_fs_lock); [ 15.160060][ C2] [ 15.160200][ C2] lock(pin_fs_lock); [ 15.160358][ C2] [ 15.160358][ C2] *** DEADLOCK *** [ 15.160358][ C2] [ 15.160630][ C2] 1 lock held by swapper/2/0: [ 15.160816][ C2] #0: ffffffffb31774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.161155][ C2] [ 15.161155][ C2] stack backtrace: [ 15.161384][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.161389][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.161391][ C2] Call Trace: [ 15.161395][ C2] [ 15.161398][ C2] dump_stack_lvl+0x82/0xd0 [ 15.161404][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.161409][ C2] mark_lock_irq+0x343/0x400 [ 15.161414][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.161422][ C2] ? save_trace+0x52/0x170 [ 15.161429][ C2] mark_lock+0x174/0x2f0 [ 15.161432][ C2] mark_usage+0x46/0x150 [ 15.161437][ C2] __lock_acquire+0x20b/0x7e0 [ 15.161441][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.161445][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.161448][ C2] ? simple_pin_fs+0x24/0x150 [ 15.161452][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.161459][ C2] ? lock_acquire+0x10c/0x170 [ 15.161461][ C2] ? simple_pin_fs+0x24/0x150 [ 15.161466][ C2] _raw_spin_lock+0x33/0x40 [ 15.161469][ C2] ? simple_pin_fs+0x24/0x150 [ 15.161472][ C2] simple_pin_fs+0x24/0x150 [ 15.161476][ C2] debugfs_remove+0x35/0x70 [ 15.161480][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.161488][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.161491][ C2] ? __sk_destruct+0x383/0x780 [ 15.161500][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.161502][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.161506][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.161509][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.161513][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.161517][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.161520][ C2] ? default_idle+0x9/0x10 [ 15.161523][ C2] ? default_idle_call+0x6d/0xb0 [ 15.161526][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.161530][ C2] ? do_idle+0xf6/0x160 [ 15.161533][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.161535][ C2] ? start_secondary+0x213/0x2a0 [ 15.161540][ C2] ? common_startup_64+0x13e/0x148 [ 15.161549][ C2] __put_net+0x19/0x60 [ 15.161553][ C2] __sk_destruct+0x58a/0x780 [ 15.161557][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.161559][ C2] rcu_do_batch+0x34c/0xf20 [ 15.161562][ C2] ? find_held_lock+0x2b/0x80 [ 15.161567][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.161570][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.161574][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.161577][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.161582][ C2] rcu_core+0x2bb/0x500 [ 15.161586][ C2] handle_softirqs+0x218/0x620 [ 15.161591][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.161594][ C2] irq_exit_rcu+0xe/0x30 [ 15.161598][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.161601][ C2] [ 15.161602][ C2] [ 15.161604][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.161607][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.161611][ 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 [ 15.161614][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.161619][ C2] RAX: 000000000003e713 RBX: 1ffff92000028fc1 RCX: ffffffffb21905d9 [ 15.161621][ C2] RDX: 0000000000000000 RSI: ffffffffb2c8f4e4 RDI: ffffffffb2453be0 [ 15.161623][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.161625][ C2] R10: ffff8880361337d3 R11: ffffffffb2e11288 R12: 0000000000000000 [ 15.161626][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.161630][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.161635][ C2] default_idle+0x9/0x10 [ 15.161638][ C2] default_idle_call+0x6d/0xb0 [ 15.161640][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.161643][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.161647][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.161651][ C2] do_idle+0xf6/0x160 [ 15.161655][ C2] cpu_startup_entry+0x54/0x60 [ 15.161658][ C2] start_secondary+0x213/0x2a0 [ 15.161661][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.161665][ C2] common_startup_64+0x13e/0x148 [ 15.161672][ C2] [ 15.176531][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.176862][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.177180][ C2] preempt_count: 101, expected: 0 [ 15.177373][ C2] RCU nest depth: 0, expected: 0 [ 15.177578][ C2] INFO: lockdep is turned off. [ 15.177771][ C2] Preemption disabled at: [ 15.177773][ C2] [<0000000000000000>] 0x0 [ 15.178107][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.178112][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.178113][ C2] Call Trace: [ 15.178115][ C2] [ 15.178117][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.178124][ C2] __might_resched+0x360/0x5a0 [ 15.178134][ C2] down_write+0x72/0x210 [ 15.178138][ C2] ? __pfx_down_write+0x10/0x10 [ 15.178141][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.178145][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.178149][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.178156][ C2] simple_recursive_removal+0x6a/0x610 [ 15.178159][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.178162][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.178169][ C2] debugfs_remove+0x44/0x70 [ 15.178172][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.178177][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.178181][ C2] ? __sk_destruct+0x383/0x780 [ 15.178185][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.178188][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.178192][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.178196][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.178200][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.178204][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.178208][ C2] ? default_idle+0x9/0x10 [ 15.178210][ C2] ? default_idle_call+0x6d/0xb0 [ 15.178213][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.178216][ C2] ? do_idle+0xf6/0x160 [ 15.178218][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.178221][ C2] ? start_secondary+0x213/0x2a0 [ 15.178224][ C2] ? common_startup_64+0x13e/0x148 [ 15.178231][ C2] __put_net+0x19/0x60 [ 15.178234][ C2] __sk_destruct+0x58a/0x780 [ 15.178238][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.178241][ C2] rcu_do_batch+0x34c/0xf20 [ 15.178244][ C2] ? find_held_lock+0x2b/0x80 [ 15.178249][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.178253][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.178257][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.178260][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.178265][ C2] rcu_core+0x2bb/0x500 [ 15.178269][ C2] handle_softirqs+0x218/0x620 [ 15.178274][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.178277][ C2] irq_exit_rcu+0xe/0x30 [ 15.178280][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.178284][ C2] [ 15.178285][ C2] [ 15.178286][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.178289][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.178292][ 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 [ 15.178295][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 15.178298][ C2] RAX: 000000000003e713 RBX: 1ffff92000028fc1 RCX: ffffffffb21905d9 [ 15.178300][ C2] RDX: 0000000000000000 RSI: ffffffffb2c8f4e4 RDI: ffffffffb2453be0 [ 15.178301][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 15.178303][ C2] R10: ffff8880361337d3 R11: ffffffffb2e11288 R12: 0000000000000000 [ 15.178305][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.178309][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.178314][ C2] default_idle+0x9/0x10 [ 15.178316][ C2] default_idle_call+0x6d/0xb0 [ 15.178319][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.178322][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.178326][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.178330][ C2] do_idle+0xf6/0x160 [ 15.178333][ C2] cpu_startup_entry+0x54/0x60 [ 15.178336][ C2] start_secondary+0x213/0x2a0 [ 15.178339][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.178343][ C2] common_startup_64+0x13e/0x148 [ 15.178350][ C2] [ 16.958498][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.958938][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.959255][ C2] preempt_count: 101, expected: 0 [ 16.959433][ C2] RCU nest depth: 0, expected: 0 [ 16.959630][ C2] INFO: lockdep is turned off. [ 16.959817][ C2] Preemption disabled at: [ 16.959819][ C2] [<0000000000000000>] 0x0 [ 16.960162][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.960167][ C2] Tainted: [W]=WARN [ 16.960169][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.960171][ C2] Call Trace: [ 16.960173][ C2] [ 16.960175][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.960184][ C2] __might_resched+0x360/0x5a0 [ 16.960191][ C2] down_write+0x72/0x210 [ 16.960195][ C2] ? __pfx_down_write+0x10/0x10 [ 16.960198][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.960203][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.960207][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.960213][ C2] simple_recursive_removal+0x6a/0x610 [ 16.960216][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.960219][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.960225][ C2] debugfs_remove+0x44/0x70 [ 16.960228][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.960235][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.960238][ C2] ? __sk_destruct+0x383/0x780 [ 16.960244][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.960247][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.960250][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.960255][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.960264][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.960268][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.960277][ C2] ? default_idle+0x9/0x10 [ 16.960279][ C2] ? default_idle_call+0x6d/0xb0 [ 16.960282][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.960286][ C2] ? do_idle+0xf6/0x160 [ 16.960288][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.960291][ C2] ? start_secondary+0x213/0x2a0 [ 16.960295][ C2] ? common_startup_64+0x13e/0x148 [ 16.960300][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.960305][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.960310][ C2] __put_net+0x19/0x60 [ 16.960313][ C2] __sk_destruct+0x58a/0x780 [ 16.960318][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.960320][ C2] rcu_do_batch+0x34c/0xf20 [ 16.960325][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.960328][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.960340][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.960346][ C2] rcu_core+0x2bb/0x500 [ 16.960350][ C2] handle_softirqs+0x218/0x620 [ 16.960356][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.960359][ C2] irq_exit_rcu+0xe/0x30 [ 16.960362][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.960366][ C2] [ 16.960367][ C2] [ 16.960368][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.960371][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.960375][ 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 [ 16.960378][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.960381][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffb21905d9 [ 16.960384][ C2] RDX: ffffed1006c266fb RSI: ffffffffb2453b60 RDI: ffffffffaf98d18f [ 16.960386][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 16.960387][ C2] R10: ffff8880361337d3 R11: ffffffffb5b0a4b8 R12: 0000000000000000 [ 16.960389][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.960393][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.960396][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.960400][ C2] default_idle+0x9/0x10 [ 16.960403][ C2] default_idle_call+0x6d/0xb0 [ 16.960405][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.960408][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.960412][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.960416][ C2] do_idle+0xf6/0x160 [ 16.960420][ C2] cpu_startup_entry+0x54/0x60 [ 16.960423][ C2] start_secondary+0x213/0x2a0 [ 16.960425][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.960430][ C2] common_startup_64+0x13e/0x148 [ 16.960437][ C2]