[ 17.558419][ C0] [ 17.558578][ C0] ================================ [ 17.558780][ C0] WARNING: inconsistent lock state [ 17.558993][ C0] 6.15.0-rc5-virtme #1 Not tainted [ 17.559197][ C0] -------------------------------- [ 17.559397][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.559641][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.559893][ C0] ffffffffb43bf978 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.560253][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.560448][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.560655][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.560855][ C0] _raw_spin_lock+0x33/0x40 [ 17.561055][ C0] simple_pin_fs+0x24/0x150 [ 17.561256][ C0] start_creating.part.0+0x3f/0x2f0 [ 17.561454][ C0] debugfs_create_dir+0x6a/0x540 [ 17.561652][ C0] component_debug_init+0x17/0x30 [ 17.561852][ C0] do_one_initcall+0x8c/0x1e0 [ 17.562055][ C0] do_initcalls+0x176/0x280 [ 17.562270][ C0] kernel_init_freeable+0x22d/0x300 [ 17.562476][ C0] kernel_init+0x20/0x200 [ 17.562674][ C0] ret_from_fork+0x31/0x70 [ 17.562877][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.563073][ C0] irq event stamp: 486022 [ 17.563225][ C0] hardirqs last enabled at (486022): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.563631][ C0] hardirqs last disabled at (486021): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.564027][ C0] softirqs last enabled at (485490): [] handle_softirqs+0x358/0x620 [ 17.564377][ C0] softirqs last disabled at (485503): [] __irq_exit_rcu+0xfa/0x160 [ 17.564733][ C0] [ 17.564733][ C0] other info that might help us debug this: [ 17.565043][ C0] Possible unsafe locking scenario: [ 17.565043][ C0] [ 17.565339][ C0] CPU0 [ 17.565487][ C0] ---- [ 17.565639][ C0] lock(pin_fs_lock); [ 17.565793][ C0] [ 17.565943][ C0] lock(pin_fs_lock); [ 17.566099][ C0] [ 17.566099][ C0] *** DEADLOCK *** [ 17.566099][ C0] [ 17.566407][ C0] 1 lock held by swapper/0/0: [ 17.566624][ C0] #0: ffffffffb4174480 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.566996][ C0] [ 17.566996][ C0] stack backtrace: [ 17.567260][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.567265][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.567268][ C0] Call Trace: [ 17.567270][ C0] [ 17.567272][ C0] dump_stack_lvl+0x82/0xd0 [ 17.567280][ C0] print_usage_bug.part.0+0x25f/0x360 [ 17.567287][ C0] mark_lock_irq+0x343/0x400 [ 17.567291][ C0] ? is_bpf_text_address+0x67/0x120 [ 17.567298][ C0] ? __lock_release+0x5d/0x170 [ 17.567302][ C0] ? save_trace+0x52/0x170 [ 17.567307][ C0] mark_lock+0x174/0x2f0 [ 17.567311][ C0] mark_usage+0x46/0x150 [ 17.567315][ C0] __lock_acquire+0x3eb/0x9d0 [ 17.567320][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.567324][ C0] ? simple_pin_fs+0x24/0x150 [ 17.567328][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.567335][ C0] ? lock_acquire+0x10c/0x170 [ 17.567338][ C0] ? simple_pin_fs+0x24/0x150 [ 17.567343][ C0] _raw_spin_lock+0x33/0x40 [ 17.567346][ C0] ? simple_pin_fs+0x24/0x150 [ 17.567350][ C0] simple_pin_fs+0x24/0x150 [ 17.567354][ C0] debugfs_remove+0x35/0x70 [ 17.567357][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.567363][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.567366][ C0] ? __sk_destruct+0x383/0x780 [ 17.567373][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.567376][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.567379][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.567382][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.567388][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.567393][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.567396][ C0] ? default_idle+0x9/0x10 [ 17.567398][ C0] ? default_idle_call+0x6d/0xb0 [ 17.567401][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.567407][ C0] ? do_idle+0xf6/0x160 [ 17.567410][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.567413][ C0] ? rest_init+0x14b/0x260 [ 17.567415][ C0] ? start_kernel+0x350/0x410 [ 17.567421][ C0] __put_net+0x19/0x60 [ 17.567425][ C0] __sk_destruct+0x58a/0x780 [ 17.567429][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.567432][ C0] rcu_do_batch+0x34c/0xf20 [ 17.567436][ C0] ? find_held_lock+0x2b/0x80 [ 17.567440][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.567444][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.567448][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.567452][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.567456][ C0] rcu_core+0x2bb/0x500 [ 17.567460][ C0] handle_softirqs+0x218/0x620 [ 17.567465][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.567467][ C0] irq_exit_rcu+0xe/0x30 [ 17.567469][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.567473][ C0] [ 17.567474][ C0] [ 17.567476][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.567479][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.567483][ C0] Code: b0 b8 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 a3 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 17.567486][ C0] RSP: 0000:ffffffffb3e07df8 EFLAGS: 00000246 [ 17.567490][ C0] RAX: 000000000007687d RBX: 1ffffffff67c0fc3 RCX: ffffffffb3155a19 [ 17.567493][ C0] RDX: 0000000000000000 RSI: ffffffffb3c85f31 RDI: ffffffffb3450ce0 [ 17.567495][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.567496][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.567498][ C0] R13: ffffffffb3e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.567503][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.567508][ C0] default_idle+0x9/0x10 [ 17.567510][ C0] default_idle_call+0x6d/0xb0 [ 17.567513][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.567516][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.567521][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.567529][ C0] do_idle+0xf6/0x160 [ 17.567533][ C0] cpu_startup_entry+0x54/0x60 [ 17.567536][ C0] rest_init+0x14b/0x260 [ 17.567539][ C0] start_kernel+0x350/0x410 [ 17.567543][ C0] x86_64_start_reservations+0x18/0x30 [ 17.567548][ C0] x86_64_start_kernel+0xba/0x110 [ 17.567552][ C0] common_startup_64+0x13e/0x148 [ 17.567560][ C0] [ 17.585040][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.585624][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 17.585951][ C0] preempt_count: 101, expected: 0 [ 17.586261][ C0] RCU nest depth: 0, expected: 0 [ 17.586445][ C0] INFO: lockdep is turned off. [ 17.586747][ C0] Preemption disabled at: [ 17.586749][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 17.587186][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-rc5-virtme #1 PREEMPT(full) [ 17.587190][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.587193][ C0] Call Trace: [ 17.587195][ C0] [ 17.587197][ C0] dump_stack_lvl+0xb0/0xd0 [ 17.587203][ C0] __might_resched+0x360/0x5a0 [ 17.587210][ C0] down_write+0x72/0x210 [ 17.587214][ C0] ? __pfx_down_write+0x10/0x10 [ 17.587217][ C0] ? simple_recursive_removal+0x3a/0x860 [ 17.587223][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.587230][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.587235][ C0] simple_recursive_removal+0x166/0x860 [ 17.587237][ C0] ? __pfx_remove_one+0x10/0x10 [ 17.587242][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 17.587246][ C0] debugfs_remove+0x44/0x70 [ 17.587249][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 17.587255][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.587258][ C0] ? __sk_destruct+0x383/0x780 [ 17.587265][ C0] ? rcu_do_batch+0x34c/0xf20 [ 17.587270][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.587273][ C0] ? irq_exit_rcu+0xe/0x30 [ 17.587277][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.587282][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.587286][ C0] ? pv_native_safe_halt+0xf/0x20 [ 17.587289][ C0] ? default_idle+0x9/0x10 [ 17.587291][ C0] ? default_idle_call+0x6d/0xb0 [ 17.587294][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 17.587299][ C0] ? do_idle+0xf6/0x160 [ 17.587302][ C0] ? cpu_startup_entry+0x54/0x60 [ 17.587305][ C0] ? rest_init+0x14b/0x260 [ 17.587307][ C0] ? start_kernel+0x350/0x410 [ 17.587314][ C0] __put_net+0x19/0x60 [ 17.587318][ C0] __sk_destruct+0x58a/0x780 [ 17.587321][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.587325][ C0] rcu_do_batch+0x34c/0xf20 [ 17.587328][ C0] ? find_held_lock+0x2b/0x80 [ 17.587334][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.587338][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.587342][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.587346][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.587350][ C0] rcu_core+0x2bb/0x500 [ 17.587354][ C0] handle_softirqs+0x218/0x620 [ 17.587359][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.587362][ C0] irq_exit_rcu+0xe/0x30 [ 17.587364][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.587367][ C0] [ 17.587368][ C0] [ 17.587370][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.587372][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 17.587376][ C0] Code: b0 b8 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 a3 d0 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 17.587379][ C0] RSP: 0000:ffffffffb3e07df8 EFLAGS: 00000246 [ 17.587383][ C0] RAX: 000000000007687d RBX: 1ffffffff67c0fc3 RCX: ffffffffb3155a19 [ 17.587385][ C0] RDX: 0000000000000000 RSI: ffffffffb3c85f31 RDI: ffffffffb3450ce0 [ 17.587387][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c0667a [ 17.587389][ C0] R10: ffff8880360333d3 R11: 0000000000000000 R12: 0000000000000000 [ 17.587390][ C0] R13: ffffffffb3e1f240 R14: dffffc0000000000 R15: 0000000000014770 [ 17.587394][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 17.587400][ C0] default_idle+0x9/0x10 [ 17.587402][ C0] default_idle_call+0x6d/0xb0 [ 17.587404][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 17.587408][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 17.587412][ C0] ? tsc_verify_tsc_adjust+0x98/0x300 [ 17.587421][ C0] do_idle+0xf6/0x160 [ 17.587425][ C0] cpu_startup_entry+0x54/0x60 [ 17.587429][ C0] rest_init+0x14b/0x260 [ 17.587432][ C0] start_kernel+0x350/0x410 [ 17.587436][ C0] x86_64_start_reservations+0x18/0x30 [ 17.587440][ C0] x86_64_start_kernel+0xba/0x110 [ 17.587444][ C0] common_startup_64+0x13e/0x148 [ 17.587453][ C0] [ 20.013838][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 20.014178][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 218, name: timeout [ 20.014461][ C3] preempt_count: 101, expected: 0 [ 20.014621][ C3] RCU nest depth: 0, expected: 0 [ 20.014795][ C3] INFO: lockdep is turned off. [ 20.014956][ C3] Preemption disabled at: [ 20.014958][ C3] [] fpu__clear_user_states+0x3a/0x210 [ 20.015294][ C3] CPU: 3 UID: 0 PID: 218 Comm: timeout Tainted: G W 6.15.0-rc5-virtme #1 PREEMPT(full) [ 20.015300][ C3] Tainted: [W]=WARN [ 20.015302][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 20.015304][ C3] Call Trace: [ 20.015306][ C3] [ 20.015309][ C3] dump_stack_lvl+0xb0/0xd0 [ 20.015317][ C3] __might_resched+0x360/0x5a0 [ 20.015325][ C3] down_write+0x72/0x210 [ 20.015330][ C3] ? __pfx_down_write+0x10/0x10 [ 20.015333][ C3] ? simple_recursive_removal+0x3a/0x860 [ 20.015338][ C3] ? rcu_is_watching+0x12/0xc0 [ 20.015346][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 20.015352][ C3] simple_recursive_removal+0x166/0x860 [ 20.015354][ C3] ? __pfx_remove_one+0x10/0x10 [ 20.015360][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 20.015364][ C3] debugfs_remove+0x44/0x70 [ 20.015367][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 20.015374][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 20.015377][ C3] ? __sk_destruct+0x383/0x780 [ 20.015384][ C3] ? rcu_do_batch+0x34c/0xf20 [ 20.015389][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 20.015392][ C3] ? __local_bh_enable_ip+0x105/0x130 [ 20.015396][ C3] ? handle_signal+0x275/0x370 [ 20.015402][ C3] ? arch_do_signal_or_restart+0x299/0x2f0 [ 20.015405][ C3] ? syscall_exit_to_user_mode+0x136/0x1f0 [ 20.015411][ C3] ? do_syscall_64+0xce/0x1d0 [ 20.015416][ C3] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 20.015420][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 20.015426][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 20.015431][ C3] ? rcu_is_watching+0x12/0xc0 [ 20.015436][ C3] __put_net+0x19/0x60 [ 20.015439][ C3] __sk_destruct+0x58a/0x780 [ 20.015443][ C3] ? rcu_do_batch+0x34a/0xf20 [ 20.015447][ C3] rcu_do_batch+0x34c/0xf20 [ 20.015452][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 20.015456][ C3] ? rcu_is_watching+0x12/0xc0 [ 20.015459][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 20.015466][ C3] rcu_core+0x2bb/0x500 [ 20.015470][ C3] handle_softirqs+0x218/0x620 [ 20.015474][ C3] ? fpu__clear_user_states+0x139/0x210 [ 20.015478][ C3] do_softirq+0xb1/0xe0 [ 20.015480][ C3] [ 20.015481][ C3] [ 20.015483][ C3] __local_bh_enable_ip+0x105/0x130 [ 20.015486][ C3] handle_signal+0x275/0x370 [ 20.015489][ C3] arch_do_signal_or_restart+0x299/0x2f0 [ 20.015493][ C3] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 20.015498][ C3] ? __x64_sys_rt_sigsuspend+0xbd/0x120 [ 20.015504][ C3] ? rcu_is_watching+0x12/0xc0 [ 20.015508][ C3] syscall_exit_to_user_mode+0x136/0x1f0 [ 20.015512][ C3] do_syscall_64+0xce/0x1d0 [ 20.015516][ C3] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 20.015518][ C3] RIP: 0033:0x56319a522270 [ 20.015527][ C3] Code: Unable to access opcode bytes at 0x56319a522246. [ 20.015529][ C3] RSP: 002b:00007fffc202cf78 EFLAGS: 00000246 ORIG_RAX: 0000000000000082 [ 20.015533][ C3] RAX: 0000000000000000 RBX: 00007fffc202dcb8 RCX: 00007f03e799d06c [ 20.015535][ C3] RDX: 00007fffc202cf80 RSI: 00007fffc202d0b0 RDI: 0000000000000011 [ 20.015537][ C3] RBP: 00007fffc202dd60 R08: 00007fffc202dd60 R09: 0000000000000000 [ 20.015539][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffc202dce0 [ 20.015541][ C3] R13: 4056800000000000 R14: 000000000000000f R15: 00007f03e7b90000 [ 20.015546][ C3]