[ 15.097619][ C3] [ 15.097819][ C3] ================================ [ 15.098009][ C3] WARNING: inconsistent lock state [ 15.098198][ C3] 6.15.0-virtme #1 Not tainted [ 15.098388][ C3] -------------------------------- [ 15.098570][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.098797][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.099029][ C3] ffffffff8a1c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.099363][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.099548][ C3] __lock_acquire+0x20b/0x7e0 [ 15.099738][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.099924][ C3] _raw_spin_lock+0x33/0x40 [ 15.100111][ C3] simple_pin_fs+0x24/0x150 [ 15.100297][ C3] start_creating.part.0+0x52/0x310 [ 15.100483][ C3] debugfs_create_dir+0x6a/0x540 [ 15.100672][ C3] component_debug_init+0x17/0x30 [ 15.100859][ C3] do_one_initcall+0x8f/0x1e0 [ 15.101045][ C3] do_initcalls+0x176/0x280 [ 15.101230][ C3] kernel_init_freeable+0x22d/0x300 [ 15.101417][ C3] kernel_init+0x20/0x200 [ 15.101605][ C3] ret_from_fork+0x240/0x320 [ 15.101789][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.101974][ C3] irq event stamp: 280424 [ 15.102116][ C3] hardirqs last enabled at (280424): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.102484][ C3] hardirqs last disabled at (280423): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.102854][ C3] softirqs last enabled at (279884): [] handle_softirqs+0x358/0x620 [ 15.103179][ C3] softirqs last disabled at (279899): [] __irq_exit_rcu+0xfa/0x160 [ 15.103516][ C3] [ 15.103516][ C3] other info that might help us debug this: [ 15.103790][ C3] Possible unsafe locking scenario: [ 15.103790][ C3] [ 15.104062][ C3] CPU0 [ 15.104203][ C3] ---- [ 15.104341][ C3] lock(pin_fs_lock); [ 15.104483][ C3] [ 15.104621][ C3] lock(pin_fs_lock); [ 15.104762][ C3] [ 15.104762][ C3] *** DEADLOCK *** [ 15.104762][ C3] [ 15.105032][ C3] 1 lock held by swapper/3/0: [ 15.105222][ C3] #0: ffffffff89f774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.105552][ C3] [ 15.105552][ C3] stack backtrace: [ 15.105783][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.105787][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.105789][ C3] Call Trace: [ 15.105791][ C3] [ 15.105793][ C3] dump_stack_lvl+0x82/0xd0 [ 15.105799][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.105804][ C3] mark_lock_irq+0x343/0x400 [ 15.105808][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.105812][ C3] ? save_trace+0x52/0x170 [ 15.105818][ C3] mark_lock+0x174/0x2f0 [ 15.105822][ C3] mark_usage+0x46/0x150 [ 15.105825][ C3] __lock_acquire+0x20b/0x7e0 [ 15.105828][ C3] ? __lock_acquire+0x44d/0x7e0 [ 15.105832][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.105835][ C3] ? simple_pin_fs+0x24/0x150 [ 15.105839][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.105843][ C3] ? lock_acquire+0x10c/0x170 [ 15.105846][ C3] ? simple_pin_fs+0x24/0x150 [ 15.105850][ C3] _raw_spin_lock+0x33/0x40 [ 15.105854][ C3] ? simple_pin_fs+0x24/0x150 [ 15.105857][ C3] simple_pin_fs+0x24/0x150 [ 15.105861][ C3] debugfs_remove+0x35/0x70 [ 15.105864][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.105870][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.105874][ C3] ? __sk_destruct+0x383/0x780 [ 15.105879][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.105882][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.105885][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.105888][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.105892][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.105895][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.105898][ C3] ? default_idle+0x9/0x10 [ 15.105901][ C3] ? default_idle_call+0x6d/0xb0 [ 15.105904][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.105907][ C3] ? do_idle+0xf6/0x160 [ 15.105909][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.105911][ C3] ? start_secondary+0x213/0x2a0 [ 15.105915][ C3] ? common_startup_64+0x13e/0x148 [ 15.105922][ C3] __put_net+0x19/0x60 [ 15.105926][ C3] __sk_destruct+0x58a/0x780 [ 15.105930][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.105932][ C3] rcu_do_batch+0x34c/0xf20 [ 15.105937][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.105940][ C3] ? __lock_release+0x5d/0x170 [ 15.105943][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.105946][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.105951][ C3] rcu_core+0x2bb/0x500 [ 15.105955][ C3] handle_softirqs+0x218/0x620 [ 15.105960][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.105963][ C3] irq_exit_rcu+0xe/0x30 [ 15.105966][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.105970][ C3] [ 15.105971][ C3] [ 15.105972][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.105975][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.105979][ C3] 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.105982][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.105985][ C3] RAX: 0000000000044559 RBX: 1ffff9200002afc1 RCX: ffffffff88f905d9 [ 15.105987][ C3] RDX: 0000000000000000 RSI: ffffffff89a8f4e4 RDI: ffffffff89253be0 [ 15.105989][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb66fa [ 15.105990][ C3] R10: ffff88802f5b37d3 R11: ffffffff89c11288 R12: 0000000000000000 [ 15.105992][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.105996][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.106000][ C3] default_idle+0x9/0x10 [ 15.106003][ C3] default_idle_call+0x6d/0xb0 [ 15.106005][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.106008][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.106012][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.106016][ C3] do_idle+0xf6/0x160 [ 15.106019][ C3] cpu_startup_entry+0x54/0x60 [ 15.106022][ C3] start_secondary+0x213/0x2a0 [ 15.106025][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.106029][ C3] common_startup_64+0x13e/0x148 [ 15.106037][ C3] [ 15.121632][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.121935][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.122349][ C3] preempt_count: 101, expected: 0 [ 15.122525][ C3] RCU nest depth: 0, expected: 0 [ 15.122701][ C3] INFO: lockdep is turned off. [ 15.122977][ C3] Preemption disabled at: [ 15.122979][ C3] [<0000000000000000>] 0x0 [ 15.123289][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.123293][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.123295][ C3] Call Trace: [ 15.123297][ C3] [ 15.123299][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.123307][ C3] __might_resched+0x360/0x5a0 [ 15.123314][ C3] down_write+0x72/0x210 [ 15.123318][ C3] ? __pfx_down_write+0x10/0x10 [ 15.123321][ C3] ? simple_recursive_removal+0x33/0x610 [ 15.123325][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.123330][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.123336][ C3] simple_recursive_removal+0x6a/0x610 [ 15.123339][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.123350][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.123355][ C3] debugfs_remove+0x44/0x70 [ 15.123358][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.123364][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.123367][ C3] ? __sk_destruct+0x383/0x780 [ 15.123373][ C3] ? rcu_do_batch+0x34c/0xf20 [ 15.123376][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.123379][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.123384][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.123389][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.123393][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.123396][ C3] ? default_idle+0x9/0x10 [ 15.123399][ C3] ? default_idle_call+0x6d/0xb0 [ 15.123401][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.123405][ C3] ? do_idle+0xf6/0x160 [ 15.123407][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.123409][ C3] ? start_secondary+0x213/0x2a0 [ 15.123413][ C3] ? common_startup_64+0x13e/0x148 [ 15.123420][ C3] __put_net+0x19/0x60 [ 15.123423][ C3] __sk_destruct+0x58a/0x780 [ 15.123427][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.123430][ C3] rcu_do_batch+0x34c/0xf20 [ 15.123435][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.123438][ C3] ? __lock_release+0x5d/0x170 [ 15.123442][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.123445][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.123450][ C3] rcu_core+0x2bb/0x500 [ 15.123455][ C3] handle_softirqs+0x218/0x620 [ 15.123460][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.123463][ C3] irq_exit_rcu+0xe/0x30 [ 15.123466][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.123469][ C3] [ 15.123470][ C3] [ 15.123472][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.123474][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.123479][ C3] 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.123481][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 15.123484][ C3] RAX: 0000000000044559 RBX: 1ffff9200002afc1 RCX: ffffffff88f905d9 [ 15.123486][ C3] RDX: 0000000000000000 RSI: ffffffff89a8f4e4 RDI: ffffffff89253be0 [ 15.123488][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005eb66fa [ 15.123489][ C3] R10: ffff88802f5b37d3 R11: ffffffff89c11288 R12: 0000000000000000 [ 15.123491][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 15.123495][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.123499][ C3] default_idle+0x9/0x10 [ 15.123502][ C3] default_idle_call+0x6d/0xb0 [ 15.123505][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.123508][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.123512][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.123516][ C3] do_idle+0xf6/0x160 [ 15.123519][ C3] cpu_startup_entry+0x54/0x60 [ 15.123522][ C3] start_secondary+0x213/0x2a0 [ 15.123525][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.123529][ C3] common_startup_64+0x13e/0x148 [ 15.123536][ C3] [ 16.824379][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.824718][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 215, name: sh [ 16.824980][ C3] preempt_count: 101, expected: 0 [ 16.825163][ C3] RCU nest depth: 0, expected: 0 [ 16.825338][ C3] INFO: lockdep is turned off. [ 16.825512][ C3] Preemption disabled at: [ 16.825514][ C3] [] copy_fpstate_to_sigframe+0x240/0x530 [ 16.825914][ C3] CPU: 3 UID: 0 PID: 215 Comm: sh Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.825919][ C3] Tainted: [W]=WARN [ 16.825921][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.825923][ C3] Call Trace: [ 16.825924][ C3] [ 16.825926][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.825933][ C3] __might_resched+0x360/0x5a0 [ 16.825940][ C3] down_write+0x72/0x210 [ 16.825945][ C3] ? __pfx_down_write+0x10/0x10 [ 16.825947][ C3] ? simple_recursive_removal+0x33/0x610 [ 16.825952][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.825957][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.825963][ C3] simple_recursive_removal+0x6a/0x610 [ 16.825965][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.825969][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.825974][ C3] debugfs_remove+0x44/0x70 [ 16.825977][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.825983][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.825986][ C3] ? __sk_destruct+0x383/0x780 [ 16.825992][ C3] ? rcu_do_batch+0x34c/0xf20 [ 16.825995][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.825999][ C3] ? __local_bh_enable_ip+0x105/0x130 [ 16.826003][ C3] ? copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.826006][ C3] ? get_sigframe+0x283/0xa60 [ 16.826011][ C3] ? x64_setup_rt_frame+0xfa/0x1110 [ 16.826014][ C3] ? handle_signal+0x295/0x370 [ 16.826017][ C3] ? arch_do_signal_or_restart+0x299/0x2f0 [ 16.826021][ C3] ? exit_to_user_mode_loop+0x88/0xe0 [ 16.826025][ C3] ? do_syscall_64+0x2fe/0x380 [ 16.826028][ C3] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.826032][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.826036][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.826041][ C3] __put_net+0x19/0x60 [ 16.826044][ C3] __sk_destruct+0x58a/0x780 [ 16.826048][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.826050][ C3] rcu_do_batch+0x34c/0xf20 [ 16.826055][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.826058][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.826062][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.826069][ C3] rcu_core+0x2bb/0x500 [ 16.826074][ C3] handle_softirqs+0x218/0x620 [ 16.826078][ C3] ? copy_fpstate_to_sigframe+0x1c5/0x530 [ 16.826081][ C3] do_softirq+0xb1/0xe0 [ 16.826084][ C3] [ 16.826085][ C3] [ 16.826087][ C3] __local_bh_enable_ip+0x105/0x130 [ 16.826090][ C3] copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.826094][ C3] ? fpu__alloc_mathframe+0x2e/0x120 [ 16.826097][ C3] get_sigframe+0x283/0xa60 [ 16.826101][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.826104][ C3] ? __pfx_get_sigframe+0x10/0x10 [ 16.826108][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.826111][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.826114][ C3] ? trace_rseq_update+0xd2/0x130 [ 16.826124][ C3] x64_setup_rt_frame+0xfa/0x1110 [ 16.826129][ C3] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 16.826133][ C3] ? __pfx_x64_setup_rt_frame+0x10/0x10 [ 16.826139][ C3] handle_signal+0x295/0x370 [ 16.826144][ C3] arch_do_signal_or_restart+0x299/0x2f0 [ 16.826147][ C3] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 16.826153][ C3] ? do_user_addr_fault+0x959/0xe00 [ 16.826157][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.826161][ C3] exit_to_user_mode_loop+0x88/0xe0 [ 16.826164][ C3] do_syscall_64+0x2fe/0x380 [ 16.826168][ C3] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.826170][ C3] RIP: 0033:0x7fdf6bfab83b [ 16.826174][ C3] Code: 48 85 f6 74 15 48 b9 00 00 00 80 01 00 00 00 48 8b 06 48 85 c8 75 48 49 89 f0 41 ba 08 00 00 00 4c 89 c6 b8 0e 00 00 00 0f 05 <89> c2 f7 da 3d 00 f0 ff ff b8 00 00 00 00 0f 47 c2 48 8b 94 24 88 [ 16.826176][ C3] RSP: 002b:00007ffe7d0c68b0 EFLAGS: 00000246 ORIG_RAX: 000000000000000e [ 16.826180][ C3] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fdf6bfab83b [ 16.826182][ C3] RDX: 0000000000000000 RSI: 00007ffe7d0c6970 RDI: 0000000000000002 [ 16.826184][ C3] RBP: 0000000000000000 R08: 00007ffe7d0c6970 R09: 0000000000000000 [ 16.826185][ C3] R10: 0000000000000008 R11: 0000000000000246 R12: 0000557dbad1c620 [ 16.826187][ C3] R13: 0000557dbad76440 R14: 00007ffe7d0c6970 R15: 0000000000000000 [ 16.826192][ C3]