[ 15.380651][ C0] [ 15.380812][ C0] ================================ [ 15.380998][ C0] WARNING: inconsistent lock state [ 15.381180][ C0] 6.15.0-virtme #1 Not tainted [ 15.381370][ C0] -------------------------------- [ 15.381551][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.381775][ C0] ksoftirqd/0/14 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.382002][ C0] ffffffffa45c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.382331][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.382510][ C0] __lock_acquire+0x20b/0x7e0 [ 15.382695][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.382878][ C0] _raw_spin_lock+0x33/0x40 [ 15.383063][ C0] simple_pin_fs+0x24/0x150 [ 15.383244][ C0] start_creating.part.0+0x52/0x310 [ 15.383426][ C0] debugfs_create_dir+0x6a/0x540 [ 15.383608][ C0] component_debug_init+0x17/0x30 [ 15.383794][ C0] do_one_initcall+0x8f/0x1e0 [ 15.383978][ C0] do_initcalls+0x176/0x280 [ 15.384162][ C0] kernel_init_freeable+0x22d/0x300 [ 15.384341][ C0] kernel_init+0x20/0x200 [ 15.384523][ C0] ret_from_fork+0x240/0x320 [ 15.384706][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.384888][ C0] irq event stamp: 183582 [ 15.385027][ C0] hardirqs last enabled at (183582): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.385393][ C0] hardirqs last disabled at (183581): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.385763][ C0] softirqs last enabled at (183516): [] handle_softirqs+0x358/0x620 [ 15.386081][ C0] softirqs last disabled at (183529): [] run_ksoftirqd+0x3f/0x70 [ 15.386399][ C0] [ 15.386399][ C0] other info that might help us debug this: [ 15.386666][ C0] Possible unsafe locking scenario: [ 15.386666][ C0] [ 15.386977][ C0] CPU0 [ 15.387114][ C0] ---- [ 15.387249][ C0] lock(pin_fs_lock); [ 15.387389][ C0] [ 15.387527][ C0] lock(pin_fs_lock); [ 15.387668][ C0] [ 15.387668][ C0] *** DEADLOCK *** [ 15.387668][ C0] [ 15.387941][ C0] 1 lock held by ksoftirqd/0/14: [ 15.388126][ C0] #0: ffffffffa43774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.388452][ C0] [ 15.388452][ C0] stack backtrace: [ 15.388679][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.388683][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.388685][ C0] Call Trace: [ 15.388687][ C0] [ 15.388689][ C0] dump_stack_lvl+0x82/0xd0 [ 15.388695][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.388700][ C0] mark_lock_irq+0x343/0x400 [ 15.388704][ C0] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.388709][ C0] ? save_trace+0x52/0x170 [ 15.388714][ C0] mark_lock+0x174/0x2f0 [ 15.388718][ C0] mark_usage+0x46/0x150 [ 15.388721][ C0] __lock_acquire+0x20b/0x7e0 [ 15.388724][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.388728][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.388731][ C0] ? simple_pin_fs+0x24/0x150 [ 15.388736][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.388740][ C0] ? lock_acquire+0x10c/0x170 [ 15.388742][ C0] ? simple_pin_fs+0x24/0x150 [ 15.388747][ C0] _raw_spin_lock+0x33/0x40 [ 15.388750][ C0] ? simple_pin_fs+0x24/0x150 [ 15.388753][ C0] simple_pin_fs+0x24/0x150 [ 15.388757][ C0] debugfs_remove+0x35/0x70 [ 15.388761][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.388767][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.388770][ C0] ? __sk_destruct+0x383/0x780 [ 15.388776][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.388779][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.388782][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 15.388787][ C0] ? kthread+0x37e/0x600 [ 15.388790][ C0] ? ret_from_fork+0x240/0x320 [ 15.388793][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 15.388796][ C0] ? migrate_enable+0x1f2/0x270 [ 15.388800][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 15.388805][ C0] __put_net+0x19/0x60 [ 15.388809][ C0] __sk_destruct+0x58a/0x780 [ 15.388813][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.388815][ C0] rcu_do_batch+0x34c/0xf20 [ 15.388820][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.388823][ C0] ? __lock_release+0x5d/0x170 [ 15.388827][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.388830][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.388835][ C0] rcu_core+0x2bb/0x500 [ 15.388839][ C0] handle_softirqs+0x218/0x620 [ 15.388843][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.388847][ C0] run_ksoftirqd+0x3f/0x70 [ 15.388850][ C0] smpboot_thread_fn+0x30a/0x960 [ 15.388854][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.388858][ C0] kthread+0x37e/0x600 [ 15.388860][ C0] ? __pfx_kthread+0x10/0x10 [ 15.388862][ C0] ? ret_from_fork+0x1b/0x320 [ 15.388865][ C0] ? __lock_release+0x5d/0x170 [ 15.388868][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.388871][ C0] ? __pfx_kthread+0x10/0x10 [ 15.388874][ C0] ret_from_fork+0x240/0x320 [ 15.388877][ C0] ? __pfx_kthread+0x10/0x10 [ 15.388879][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.388886][ C0] [ 15.399177][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.399484][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 14, name: ksoftirqd/0 [ 15.399785][ C0] preempt_count: 100, expected: 0 [ 15.399959][ C0] RCU nest depth: 0, expected: 0 [ 15.400131][ C0] INFO: lockdep is turned off. [ 15.400302][ C0] Preemption disabled at: [ 15.400303][ C0] [] handle_softirqs+0xe5/0x620 [ 15.400656][ C0] CPU: 0 UID: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.400660][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.400662][ C0] Call Trace: [ 15.400663][ C0] [ 15.400665][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.400671][ C0] __might_resched+0x360/0x5a0 [ 15.400677][ C0] down_write+0x72/0x210 [ 15.400681][ C0] ? __pfx_down_write+0x10/0x10 [ 15.400683][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.400687][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.400691][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.400696][ C0] simple_recursive_removal+0x6a/0x610 [ 15.400699][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.400702][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.400707][ C0] debugfs_remove+0x44/0x70 [ 15.400709][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.400715][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.400718][ C0] ? __sk_destruct+0x383/0x780 [ 15.400722][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.400725][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.400728][ C0] ? smpboot_thread_fn+0x30a/0x960 [ 15.400731][ C0] ? kthread+0x37e/0x600 [ 15.400734][ C0] ? ret_from_fork+0x240/0x320 [ 15.400737][ C0] ? ret_from_fork_asm+0x1a/0x30 [ 15.400741][ C0] ? migrate_enable+0x1f2/0x270 [ 15.400744][ C0] ? __pfx_migrate_enable+0x10/0x10 [ 15.400750][ C0] __put_net+0x19/0x60 [ 15.400753][ C0] __sk_destruct+0x58a/0x780 [ 15.400757][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.400759][ C0] rcu_do_batch+0x34c/0xf20 [ 15.400764][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.400767][ C0] ? __lock_release+0x5d/0x170 [ 15.400770][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.400773][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.400778][ C0] rcu_core+0x2bb/0x500 [ 15.400782][ C0] handle_softirqs+0x218/0x620 [ 15.400786][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 15.400790][ C0] run_ksoftirqd+0x3f/0x70 [ 15.400793][ C0] smpboot_thread_fn+0x30a/0x960 [ 15.400796][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 15.400800][ C0] kthread+0x37e/0x600 [ 15.400803][ C0] ? __pfx_kthread+0x10/0x10 [ 15.400805][ C0] ? ret_from_fork+0x1b/0x320 [ 15.400807][ C0] ? __lock_release+0x5d/0x170 [ 15.400811][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.400814][ C0] ? __pfx_kthread+0x10/0x10 [ 15.400817][ C0] ret_from_fork+0x240/0x320 [ 15.400819][ C0] ? __pfx_kthread+0x10/0x10 [ 15.400822][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.400829][ C0] [ 17.445006][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.445729][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 216, name: timeout [ 17.446345][ C3] preempt_count: 100, expected: 0 [ 17.446691][ C3] RCU nest depth: 1, expected: 0 [ 17.447046][ C3] INFO: lockdep is turned off. [ 17.447412][ C3] Preemption disabled at: [ 17.447415][ C3] [] handle_softirqs+0xe5/0x620 [ 17.448117][ C3] CPU: 3 UID: 0 PID: 216 Comm: timeout Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.448126][ C3] Tainted: [W]=WARN [ 17.448129][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.448132][ C3] Call Trace: [ 17.448135][ C3] [ 17.448138][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.448148][ C3] __might_resched+0x360/0x5a0 [ 17.448158][ C3] down_write+0x72/0x210 [ 17.448164][ C3] ? __pfx_down_write+0x10/0x10 [ 17.448170][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.448175][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448184][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.448193][ C3] simple_recursive_removal+0x6a/0x610 [ 17.448198][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.448203][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.448212][ C3] debugfs_remove+0x44/0x70 [ 17.448218][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.448226][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.448232][ C3] ? __sk_destruct+0x383/0x780 [ 17.448238][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.448244][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.448249][ C3] ? irq_exit_rcu+0xe/0x30 [ 17.448254][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.448261][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.448267][ C3] ? __orc_find+0x12/0xf0 [ 17.448273][ C3] ? unwind_next_frame+0x244/0x1e10 [ 17.448278][ C3] ? arch_stack_walk+0x8b/0xf0 [ 17.448284][ C3] ? stack_trace_save+0x93/0xd0 [ 17.448289][ C3] ? kasan_save_stack+0x24/0x50 [ 17.448294][ C3] ? kasan_record_aux_stack+0x8c/0xa0 [ 17.448300][ C3] ? __call_rcu_common.constprop.0+0xa1/0x610 [ 17.448307][ C3] ? kmem_cache_free+0x221/0x330 [ 17.448314][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.448320][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448329][ C3] __put_net+0x19/0x60 [ 17.448334][ C3] __sk_destruct+0x58a/0x780 [ 17.448341][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.448346][ C3] rcu_do_batch+0x34c/0xf20 [ 17.448354][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.448359][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448363][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.448373][ C3] rcu_core+0x2bb/0x500 [ 17.448379][ C3] handle_softirqs+0x218/0x620 [ 17.448387][ C3] __irq_exit_rcu+0xfa/0x160 [ 17.448392][ C3] irq_exit_rcu+0xe/0x30 [ 17.448396][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.448402][ C3] [ 17.448404][ C3] [ 17.448406][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.448411][ C3] RIP: 0010:__orc_find+0x12/0xf0 [ 17.448416][ C3] Code: 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 44 00 00 41 57 41 56 41 55 49 89 cd 89 d1 41 54 <4c> 8d 64 8f fc 55 53 48 83 ec 08 85 d2 0f 84 99 00 00 00 49 89 fe [ 17.448421][ C3] RSP: 0018:ffffc90000ad7770 EFLAGS: 00000282 [ 17.448427][ C3] RAX: 0000000000039888 RBX: 1ffff9200015aefc RCX: 0000000000000011 [ 17.448430][ C3] RDX: 0000000000000011 RSI: ffffffffa5295368 RDI: ffffffffa4f0d740 [ 17.448434][ C3] RBP: 0000000000000001 R08: 0000000000000000 R09: ffffc90000ad78d9 [ 17.448437][ C3] R10: ffffffffa0a12687 R11: ffffc90000ad78d8 R12: ffffc90000ad78f0 [ 17.448440][ C3] R13: ffffffffa1314623 R14: ffff888004d0c5c0 R15: 0000000000000000 [ 17.448445][ C3] ? kasan_save_stack+0x23/0x50 [ 17.448451][ C3] ? unwind_next_frame+0x147/0x1e10 [ 17.448463][ C3] unwind_next_frame+0x244/0x1e10 [ 17.448468][ C3] ? kasan_save_stack+0x24/0x50 [ 17.448476][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.448484][ C3] ? kasan_save_stack+0x24/0x50 [ 17.448489][ C3] ? kernel_text_address+0x17/0xe0 [ 17.448495][ C3] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 17.448501][ C3] arch_stack_walk+0x8b/0xf0 [ 17.448511][ C3] ? kasan_save_stack+0x24/0x50 [ 17.448519][ C3] stack_trace_save+0x93/0xd0 [ 17.448523][ C3] ? __pfx_stack_trace_save+0x10/0x10 [ 17.448528][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 17.448533][ C3] ? writeback_single_inode+0xea/0x3d0 [ 17.448539][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448543][ C3] kasan_save_stack+0x24/0x50 [ 17.448548][ C3] ? kasan_save_stack+0x24/0x50 [ 17.448554][ C3] ? _raw_spin_unlock+0x2d/0x50 [ 17.448560][ C3] ? writeback_single_inode+0xea/0x3d0 [ 17.448568][ C3] ? do_raw_spin_lock+0x130/0x270 [ 17.448575][ C3] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 17.448580][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448587][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448592][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.448598][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 17.448605][ C3] ? debug_object_active_state+0x2f5/0x400 [ 17.448614][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448618][ C3] ? __virt_addr_valid+0x22e/0x450 [ 17.448623][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448628][ C3] ? trace_lock_release+0x2a/0xd0 [ 17.448635][ C3] ? lock_release+0x13/0xc0 [ 17.448641][ C3] ? __virt_addr_valid+0x23d/0x450 [ 17.448646][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.448653][ C3] kasan_record_aux_stack+0x8c/0xa0 [ 17.448658][ C3] ? __pfx_free_object_rcu+0x10/0x10 [ 17.448664][ C3] __call_rcu_common.constprop.0+0xa1/0x610 [ 17.448672][ C3] kmem_cache_free+0x221/0x330 [ 17.448677][ C3] ? exit_mmap+0x3cd/0x800 [ 17.448686][ C3] exit_mmap+0x3cd/0x800 [ 17.448693][ C3] ? __pfx_exit_mmap+0x10/0x10 [ 17.448699][ C3] ? __mutex_lock+0x19c/0xcd0 [ 17.448707][ C3] ? lock_release+0x13/0xc0 [ 17.448713][ C3] ? __mutex_unlock_slowpath+0x144/0x400 [ 17.448728][ C3] mmput+0xb8/0x3f0 [ 17.448736][ C3] exit_mm+0x146/0x1d0 [ 17.448742][ C3] do_exit+0x433/0xc20 [ 17.448749][ C3] do_group_exit+0xb8/0x260 [ 17.448757][ C3] __x64_sys_exit_group+0x3e/0x50 [ 17.448762][ C3] x64_sys_call+0xf76/0x18a0 [ 17.448770][ C3] do_syscall_64+0xc1/0x380 [ 17.448777][ C3] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.448782][ C3] RIP: 0033:0x7f16fd5e7abd [ 17.448787][ C3] Code: Unable to access opcode bytes at 0x7f16fd5e7a93. [ 17.448789][ C3] RSP: 002b:00007ffe3ea39f38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 17.448794][ C3] RAX: ffffffffffffffda RBX: 00007f16fd6c49c0 RCX: 00007f16fd5e7abd [ 17.448798][ C3] RDX: 00000000000000e7 RSI: ffffffffffffff80 RDI: 0000000000000000 [ 17.448801][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000020 [ 17.448804][ C3] R10: 00007ffe3ea39de0 R11: 0000000000000246 R12: 00007f16fd6c49c0 [ 17.448808][ C3] R13: 00007f16fd6c9ee0 R14: 0000000000000002 R15: 00007f16fd6c9ec8 [ 17.448820][ C3]