[ 12.631521][ C2] [ 12.631747][ C2] ================================ [ 12.631937][ C2] WARNING: inconsistent lock state [ 12.632125][ C2] 6.15.0-virtme #1 Not tainted [ 12.632316][ C2] -------------------------------- [ 12.632514][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.632747][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.632980][ C2] ffffffff9d9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.633312][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.633499][ C2] __lock_acquire+0x20b/0x7e0 [ 12.633691][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.633880][ C2] _raw_spin_lock+0x33/0x40 [ 12.634070][ C2] simple_pin_fs+0x24/0x150 [ 12.634256][ C2] start_creating.part.0+0x52/0x310 [ 12.634452][ C2] debugfs_create_dir+0x6a/0x540 [ 12.634641][ C2] component_debug_init+0x17/0x30 [ 12.634828][ C2] do_one_initcall+0x8f/0x1e0 [ 12.635016][ C2] do_initcalls+0x176/0x280 [ 12.635206][ C2] kernel_init_freeable+0x22d/0x300 [ 12.635395][ C2] kernel_init+0x20/0x200 [ 12.635585][ C2] ret_from_fork+0x240/0x320 [ 12.635776][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.635958][ C2] irq event stamp: 204366 [ 12.636102][ C2] hardirqs last enabled at (204366): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.636472][ C2] hardirqs last disabled at (204365): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.636844][ C2] softirqs last enabled at (204308): [] handle_softirqs+0x358/0x620 [ 12.637175][ C2] softirqs last disabled at (204321): [] __irq_exit_rcu+0xfa/0x160 [ 12.637506][ C2] [ 12.637506][ C2] other info that might help us debug this: [ 12.637783][ C2] Possible unsafe locking scenario: [ 12.637783][ C2] [ 12.638056][ C2] CPU0 [ 12.638197][ C2] ---- [ 12.638337][ C2] lock(pin_fs_lock); [ 12.638480][ C2] [ 12.638621][ C2] lock(pin_fs_lock); [ 12.638763][ C2] [ 12.638763][ C2] *** DEADLOCK *** [ 12.638763][ C2] [ 12.639039][ C2] 1 lock held by swapper/2/0: [ 12.639228][ C2] #0: ffffffff9d7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.639562][ C2] [ 12.639562][ C2] stack backtrace: [ 12.639796][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.639800][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.639802][ C2] Call Trace: [ 12.639804][ C2] [ 12.639806][ C2] dump_stack_lvl+0x82/0xd0 [ 12.639812][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.639817][ C2] mark_lock_irq+0x343/0x400 [ 12.639822][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.639827][ C2] ? save_trace+0x52/0x170 [ 12.639831][ C2] mark_lock+0x174/0x2f0 [ 12.639835][ C2] mark_usage+0x46/0x150 [ 12.639838][ C2] __lock_acquire+0x20b/0x7e0 [ 12.639842][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.639846][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.639849][ C2] ? simple_pin_fs+0x24/0x150 [ 12.639853][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.639858][ C2] ? lock_acquire+0x10c/0x170 [ 12.639861][ C2] ? simple_pin_fs+0x24/0x150 [ 12.639865][ C2] _raw_spin_lock+0x33/0x40 [ 12.639868][ C2] ? simple_pin_fs+0x24/0x150 [ 12.639870][ C2] simple_pin_fs+0x24/0x150 [ 12.639873][ C2] debugfs_remove+0x35/0x70 [ 12.639877][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.639881][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.639884][ C2] ? __sk_destruct+0x383/0x780 [ 12.639890][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.639893][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.639895][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.639898][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.639902][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.639906][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.639909][ C2] ? default_idle+0x9/0x10 [ 12.639911][ C2] ? default_idle_call+0x6d/0xb0 [ 12.639914][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.639918][ C2] ? do_idle+0xf6/0x160 [ 12.639921][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.639923][ C2] ? start_secondary+0x213/0x2a0 [ 12.639927][ C2] ? common_startup_64+0x13e/0x148 [ 12.639934][ C2] __put_net+0x19/0x60 [ 12.639938][ C2] __sk_destruct+0x58a/0x780 [ 12.639942][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.639945][ C2] rcu_do_batch+0x34c/0xf20 [ 12.639950][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.639953][ C2] ? __lock_release+0x5d/0x170 [ 12.639957][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.639960][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.639965][ C2] rcu_core+0x2bb/0x500 [ 12.639970][ C2] handle_softirqs+0x218/0x620 [ 12.639975][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.639979][ C2] irq_exit_rcu+0xe/0x30 [ 12.639982][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.639985][ C2] [ 12.639986][ C2] [ 12.639988][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.639990][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.639994][ C2] Code: 92 b4 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 07 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.639997][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 12.640000][ C2] RAX: 0000000000031e1f RBX: 1ffff92000028fc1 RCX: ffffffff9c7a35d9 [ 12.640002][ C2] RDX: 0000000000000000 RSI: ffffffff9d29175c RDI: ffffffff9ca53ca0 [ 12.640004][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 12.640006][ C2] R10: ffff8880361337d3 R11: ffffffff9d411288 R12: 0000000000000000 [ 12.640008][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 12.640012][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.640016][ C2] default_idle+0x9/0x10 [ 12.640019][ C2] default_idle_call+0x6d/0xb0 [ 12.640021][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.640025][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.640029][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.640034][ C2] do_idle+0xf6/0x160 [ 12.640038][ C2] cpu_startup_entry+0x54/0x60 [ 12.640041][ C2] start_secondary+0x213/0x2a0 [ 12.640044][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.640049][ C2] common_startup_64+0x13e/0x148 [ 12.640056][ C2] [ 12.654894][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.655218][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 12.655537][ C2] preempt_count: 101, expected: 0 [ 12.655833][ C2] RCU nest depth: 0, expected: 0 [ 12.656018][ C2] INFO: lockdep is turned off. [ 12.656209][ C2] Preemption disabled at: [ 12.656211][ C2] [<0000000000000000>] 0x0 [ 12.656557][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.656561][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.656563][ C2] Call Trace: [ 12.656565][ C2] [ 12.656567][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.656574][ C2] __might_resched+0x360/0x5a0 [ 12.656581][ C2] down_write+0x72/0x210 [ 12.656585][ C2] ? __pfx_down_write+0x10/0x10 [ 12.656587][ C2] ? simple_recursive_removal+0x33/0x610 [ 12.656592][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.656598][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.656601][ C2] simple_recursive_removal+0x6a/0x610 [ 12.656604][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.656607][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.656612][ C2] debugfs_remove+0x44/0x70 [ 12.656616][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.656620][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.656623][ C2] ? __sk_destruct+0x383/0x780 [ 12.656628][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.656632][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.656635][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.656640][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.656644][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.656648][ C2] ? pv_native_safe_halt+0xf/0x20 [ 12.656651][ C2] ? default_idle+0x9/0x10 [ 12.656654][ C2] ? default_idle_call+0x6d/0xb0 [ 12.656656][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 12.656660][ C2] ? do_idle+0xf6/0x160 [ 12.656663][ C2] ? cpu_startup_entry+0x54/0x60 [ 12.656665][ C2] ? start_secondary+0x213/0x2a0 [ 12.656669][ C2] ? common_startup_64+0x13e/0x148 [ 12.656675][ C2] __put_net+0x19/0x60 [ 12.656680][ C2] __sk_destruct+0x58a/0x780 [ 12.656684][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.656687][ C2] rcu_do_batch+0x34c/0xf20 [ 12.656692][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.656695][ C2] ? __lock_release+0x5d/0x170 [ 12.656700][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.656703][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.656709][ C2] rcu_core+0x2bb/0x500 [ 12.656714][ C2] handle_softirqs+0x218/0x620 [ 12.656719][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.656723][ C2] irq_exit_rcu+0xe/0x30 [ 12.656726][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.656729][ C2] [ 12.656730][ C2] [ 12.656732][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.656734][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 12.656738][ C2] Code: 92 b4 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 07 0f 00 fb f4 fc 54 02 00 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 12.656741][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000242 [ 12.656744][ C2] RAX: 0000000000031e1f RBX: 1ffff92000028fc1 RCX: ffffffff9c7a35d9 [ 12.656746][ C2] RDX: 0000000000000000 RSI: ffffffff9d29175c RDI: ffffffff9ca53ca0 [ 12.656747][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c266fa [ 12.656749][ C2] R10: ffff8880361337d3 R11: ffffffff9d411288 R12: 0000000000000000 [ 12.656750][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 12.656754][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 12.656759][ C2] default_idle+0x9/0x10 [ 12.656761][ C2] default_idle_call+0x6d/0xb0 [ 12.656764][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 12.656767][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 12.656771][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 12.656776][ C2] do_idle+0xf6/0x160 [ 12.656779][ C2] cpu_startup_entry+0x54/0x60 [ 12.656783][ C2] start_secondary+0x213/0x2a0 [ 12.656786][ C2] ? __pfx_start_secondary+0x10/0x10 [ 12.656790][ C2] common_startup_64+0x13e/0x148 [ 12.656798][ C2]