[ 15.428906][ C2] [ 15.429047][ C2] ================================ [ 15.429239][ C2] WARNING: inconsistent lock state [ 15.429441][ C2] 6.15.0-virtme #1 Not tainted [ 15.429631][ C2] -------------------------------- [ 15.429816][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.430044][ C2] swapper/2/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.430275][ C2] ffffffff875c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.430612][ C2] {SOFTIRQ-ON-W} state was registered at: [ 15.430806][ C2] __lock_acquire+0x20b/0x7e0 [ 15.430994][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.431194][ C2] _raw_spin_lock+0x33/0x40 [ 15.431397][ C2] simple_pin_fs+0x24/0x150 [ 15.431582][ C2] start_creating.part.0+0x52/0x310 [ 15.431773][ C2] debugfs_create_dir+0x6a/0x540 [ 15.431975][ C2] component_debug_init+0x17/0x30 [ 15.432165][ C2] do_one_initcall+0x8f/0x1e0 [ 15.432368][ C2] do_initcalls+0x176/0x280 [ 15.432572][ C2] kernel_init_freeable+0x22d/0x300 [ 15.432758][ C2] kernel_init+0x20/0x200 [ 15.432956][ C2] ret_from_fork+0x240/0x320 [ 15.433143][ C2] ret_from_fork_asm+0x1a/0x30 [ 15.433329][ C2] irq event stamp: 267292 [ 15.433481][ C2] hardirqs last enabled at (267292): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.433854][ C2] hardirqs last disabled at (267291): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.434222][ C2] softirqs last enabled at (266738): [] handle_softirqs+0x358/0x620 [ 15.434551][ C2] softirqs last disabled at (266769): [] __irq_exit_rcu+0xfa/0x160 [ 15.434876][ C2] [ 15.434876][ C2] other info that might help us debug this: [ 15.435153][ C2] Possible unsafe locking scenario: [ 15.435153][ C2] [ 15.435440][ C2] CPU0 [ 15.435587][ C2] ---- [ 15.435728][ C2] lock(pin_fs_lock); [ 15.435881][ C2] [ 15.436027][ C2] lock(pin_fs_lock); [ 15.436172][ C2] [ 15.436172][ C2] *** DEADLOCK *** [ 15.436172][ C2] [ 15.436464][ C2] 1 lock held by swapper/2/0: [ 15.436656][ C2] #0: ffffffff873774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.437001][ C2] [ 15.437001][ C2] stack backtrace: [ 15.437232][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.437238][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.437241][ C2] Call Trace: [ 15.437243][ C2] [ 15.437246][ C2] dump_stack_lvl+0x82/0xd0 [ 15.437255][ C2] print_usage_bug.part.0+0x25f/0x360 [ 15.437261][ C2] mark_lock_irq+0x343/0x400 [ 15.437265][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.437269][ C2] ? save_trace+0x52/0x170 [ 15.437275][ C2] mark_lock+0x174/0x2f0 [ 15.437279][ C2] mark_usage+0x46/0x150 [ 15.437282][ C2] __lock_acquire+0x20b/0x7e0 [ 15.437285][ C2] ? __lock_acquire+0x44d/0x7e0 [ 15.437290][ C2] lock_acquire.part.0+0xb6/0x240 [ 15.437293][ C2] ? simple_pin_fs+0x24/0x150 [ 15.437297][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.437301][ C2] ? lock_acquire+0x10c/0x170 [ 15.437303][ C2] ? simple_pin_fs+0x24/0x150 [ 15.437308][ C2] _raw_spin_lock+0x33/0x40 [ 15.437311][ C2] ? simple_pin_fs+0x24/0x150 [ 15.437315][ C2] simple_pin_fs+0x24/0x150 [ 15.437319][ C2] debugfs_remove+0x35/0x70 [ 15.437322][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.437328][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.437331][ C2] ? __sk_destruct+0x383/0x780 [ 15.437337][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.437339][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.437343][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.437346][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.437351][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.437354][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.437357][ C2] ? default_idle+0x9/0x10 [ 15.437360][ C2] ? default_idle_call+0x6d/0xb0 [ 15.437363][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.437366][ C2] ? do_idle+0xf6/0x160 [ 15.437368][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.437371][ C2] ? start_secondary+0x213/0x2a0 [ 15.437375][ C2] ? common_startup_64+0x13e/0x148 [ 15.437382][ C2] __put_net+0x19/0x60 [ 15.437386][ C2] __sk_destruct+0x58a/0x780 [ 15.437390][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.437392][ C2] rcu_do_batch+0x34c/0xf20 [ 15.437395][ C2] ? find_held_lock+0x2b/0x80 [ 15.437399][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.437403][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.437406][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.437409][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.437414][ C2] rcu_core+0x2bb/0x500 [ 15.437418][ C2] handle_softirqs+0x218/0x620 [ 15.437423][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.437426][ C2] irq_exit_rcu+0xe/0x30 [ 15.437429][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.437433][ C2] [ 15.437434][ C2] [ 15.437436][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.437438][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.437443][ 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.437445][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 15.437448][ C2] RAX: 000000000004120f RBX: 1ffff92000028fc1 RCX: ffffffff863905d9 [ 15.437451][ C2] RDX: 0000000000000000 RSI: ffffffff86e8f4e4 RDI: ffffffff86653be0 [ 15.437453][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee66fa [ 15.437454][ C2] R10: ffff88802f7337d3 R11: ffffffff87011288 R12: 0000000000000000 [ 15.437456][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.437460][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.437465][ C2] default_idle+0x9/0x10 [ 15.437467][ C2] default_idle_call+0x6d/0xb0 [ 15.437470][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.437473][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.437477][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.437481][ C2] do_idle+0xf6/0x160 [ 15.437484][ C2] cpu_startup_entry+0x54/0x60 [ 15.437487][ C2] start_secondary+0x213/0x2a0 [ 15.437490][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.437495][ C2] common_startup_64+0x13e/0x148 [ 15.437502][ C2] [ 15.452668][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.453007][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 15.453441][ C2] preempt_count: 101, expected: 0 [ 15.453642][ C2] RCU nest depth: 0, expected: 0 [ 15.453841][ C2] INFO: lockdep is turned off. [ 15.454134][ C2] Preemption disabled at: [ 15.454135][ C2] [<0000000000000000>] 0x0 [ 15.454480][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.454485][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.454486][ C2] Call Trace: [ 15.454488][ C2] [ 15.454490][ C2] dump_stack_lvl+0xb0/0xd0 [ 15.454497][ C2] __might_resched+0x360/0x5a0 [ 15.454504][ C2] down_write+0x72/0x210 [ 15.454508][ C2] ? __pfx_down_write+0x10/0x10 [ 15.454511][ C2] ? simple_recursive_removal+0x33/0x610 [ 15.454515][ C2] ? rcu_is_watching+0x12/0xc0 [ 15.454519][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.454525][ C2] simple_recursive_removal+0x6a/0x610 [ 15.454528][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 15.454531][ C2] ? __pfx_remove_one+0x10/0x10 [ 15.454536][ C2] debugfs_remove+0x44/0x70 [ 15.454539][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 15.454546][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.454549][ C2] ? __sk_destruct+0x383/0x780 [ 15.454554][ C2] ? rcu_do_batch+0x34c/0xf20 [ 15.454557][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.454561][ C2] ? irq_exit_rcu+0xe/0x30 [ 15.454565][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.454570][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.454573][ C2] ? pv_native_safe_halt+0xf/0x20 [ 15.454576][ C2] ? default_idle+0x9/0x10 [ 15.454579][ C2] ? default_idle_call+0x6d/0xb0 [ 15.454582][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.454585][ C2] ? do_idle+0xf6/0x160 [ 15.454587][ C2] ? cpu_startup_entry+0x54/0x60 [ 15.454590][ C2] ? start_secondary+0x213/0x2a0 [ 15.454593][ C2] ? common_startup_64+0x13e/0x148 [ 15.454600][ C2] __put_net+0x19/0x60 [ 15.454603][ C2] __sk_destruct+0x58a/0x780 [ 15.454607][ C2] ? rcu_do_batch+0x34a/0xf20 [ 15.454609][ C2] rcu_do_batch+0x34c/0xf20 [ 15.454613][ C2] ? find_held_lock+0x2b/0x80 [ 15.454618][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.454622][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.454626][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.454629][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.454634][ C2] rcu_core+0x2bb/0x500 [ 15.454638][ C2] handle_softirqs+0x218/0x620 [ 15.454643][ C2] __irq_exit_rcu+0xfa/0x160 [ 15.454646][ C2] irq_exit_rcu+0xe/0x30 [ 15.454649][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.454653][ C2] [ 15.454654][ C2] [ 15.454656][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.454658][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.454662][ 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.454665][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 15.454668][ C2] RAX: 000000000004120f RBX: 1ffff92000028fc1 RCX: ffffffff863905d9 [ 15.454670][ C2] RDX: 0000000000000000 RSI: ffffffff86e8f4e4 RDI: ffffffff86653be0 [ 15.454672][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ee66fa [ 15.454673][ C2] R10: ffff88802f7337d3 R11: ffffffff87011288 R12: 0000000000000000 [ 15.454675][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 15.454679][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.454683][ C2] default_idle+0x9/0x10 [ 15.454686][ C2] default_idle_call+0x6d/0xb0 [ 15.454689][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 15.454692][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.454696][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.454700][ C2] do_idle+0xf6/0x160 [ 15.454703][ C2] cpu_startup_entry+0x54/0x60 [ 15.454706][ C2] start_secondary+0x213/0x2a0 [ 15.454709][ C2] ? __pfx_start_secondary+0x10/0x10 [ 15.454713][ C2] common_startup_64+0x13e/0x148 [ 15.454720][ C2] [ 17.276438][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.276760][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 219, name: timeout [ 17.277060][ C3] preempt_count: 101, expected: 0 [ 17.277226][ C3] RCU nest depth: 0, expected: 0 [ 17.277401][ C3] INFO: lockdep is turned off. [ 17.277575][ C3] Preemption disabled at: [ 17.277577][ C3] [] fpu__clear_user_states+0x38/0x180 [ 17.277918][ C3] CPU: 3 UID: 0 PID: 219 Comm: timeout Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.277924][ C3] Tainted: [W]=WARN [ 17.277925][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.277927][ C3] Call Trace: [ 17.277929][ C3] [ 17.277930][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.277938][ C3] __might_resched+0x360/0x5a0 [ 17.277945][ C3] down_write+0x72/0x210 [ 17.277949][ C3] ? __pfx_down_write+0x10/0x10 [ 17.277952][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.277956][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.277961][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.277967][ C3] simple_recursive_removal+0x6a/0x610 [ 17.277970][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.277974][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.277979][ C3] debugfs_remove+0x44/0x70 [ 17.277982][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.277988][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.277992][ C3] ? __sk_destruct+0x383/0x780 [ 17.277997][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.278000][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.278003][ C3] ? __local_bh_enable_ip+0x105/0x130 [ 17.278008][ C3] ? handle_signal+0x279/0x370 [ 17.278013][ C3] ? arch_do_signal_or_restart+0x299/0x2f0 [ 17.278017][ C3] ? exit_to_user_mode_loop+0x88/0xe0 [ 17.278021][ C3] ? do_syscall_64+0x2fe/0x380 [ 17.278024][ C3] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.278028][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 17.278032][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.278037][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.278041][ C3] __put_net+0x19/0x60 [ 17.278045][ C3] __sk_destruct+0x58a/0x780 [ 17.278049][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.278051][ C3] rcu_do_batch+0x34c/0xf20 [ 17.278056][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.278059][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.278062][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.278070][ C3] rcu_core+0x2bb/0x500 [ 17.278074][ C3] handle_softirqs+0x218/0x620 [ 17.278078][ C3] ? fpu__clear_user_states+0xc9/0x180 [ 17.278081][ C3] do_softirq+0xb1/0xe0 [ 17.278084][ C3] [ 17.278085][ C3] [ 17.278087][ C3] __local_bh_enable_ip+0x105/0x130 [ 17.278090][ C3] handle_signal+0x279/0x370 [ 17.278094][ C3] arch_do_signal_or_restart+0x299/0x2f0 [ 17.278098][ C3] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 17.278104][ C3] ? __x64_sys_rt_sigsuspend+0xbd/0x120 [ 17.278108][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.278112][ C3] exit_to_user_mode_loop+0x88/0xe0 [ 17.278115][ C3] do_syscall_64+0x2fe/0x380 [ 17.278118][ C3] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.278121][ C3] RIP: 0033:0x5621a30fc270 [ 17.278125][ C3] Code: ff e8 64 ff ff ff c6 05 0d 70 00 00 01 5d c3 0f 1f 00 c3 0f 1f 80 00 00 00 00 f3 0f 1e fa e9 77 ff ff ff 0f 1f 80 00 00 00 00 0f 1e fa c3 66 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 [ 17.278128][ C3] RSP: 002b:00007ffdfd0bf138 EFLAGS: 00000246 ORIG_RAX: 0000000000000082 [ 17.278132][ C3] RAX: 0000000000000000 RBX: 00007ffdfd0bfe78 RCX: 00007ffb3cc7606c [ 17.278134][ C3] RDX: 00007ffdfd0bf140 RSI: 00007ffdfd0bf270 RDI: 0000000000000011 [ 17.278136][ C3] RBP: 00007ffdfd0bff20 R08: 00007ffdfd0bff20 R09: 0000000000000000 [ 17.278137][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffdfd0bfea0 [ 17.278139][ C3] R13: 4056800000000000 R14: 000000000000000f R15: 00007ffb3ce69000 [ 17.278145][ C3]