[ 17.528879][ C1] [ 17.529036][ C1] ================================ [ 17.529267][ C1] WARNING: inconsistent lock state [ 17.529488][ C1] 6.15.0-virtme #1 Not tainted [ 17.529711][ C1] -------------------------------- [ 17.529929][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.530198][ C1] ksoftirqd/1/22 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.530471][ C1] ffffffff92fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 17.530856][ C1] {SOFTIRQ-ON-W} state was registered at: [ 17.531073][ C1] __lock_acquire+0x20b/0x7e0 [ 17.531297][ C1] lock_acquire.part.0+0xb6/0x240 [ 17.531519][ C1] _raw_spin_lock+0x33/0x40 [ 17.531741][ C1] simple_pin_fs+0x24/0x150 [ 17.531961][ C1] start_creating.part.0+0x52/0x310 [ 17.532181][ C1] debugfs_create_dir+0x6a/0x540 [ 17.532397][ C1] component_debug_init+0x17/0x30 [ 17.532621][ C1] do_one_initcall+0x8f/0x1e0 [ 17.532846][ C1] do_initcalls+0x176/0x280 [ 17.533066][ C1] kernel_init_freeable+0x22d/0x300 [ 17.533287][ C1] kernel_init+0x20/0x200 [ 17.533506][ C1] ret_from_fork+0x240/0x320 [ 17.533726][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.533942][ C1] irq event stamp: 290390 [ 17.534109][ C1] hardirqs last enabled at (290390): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.534550][ C1] hardirqs last disabled at (290389): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.534987][ C1] softirqs last enabled at (290006): [] handle_softirqs+0x358/0x620 [ 17.535371][ C1] softirqs last disabled at (290011): [] run_ksoftirqd+0x3f/0x70 [ 17.535751][ C1] [ 17.535751][ C1] other info that might help us debug this: [ 17.536075][ C1] Possible unsafe locking scenario: [ 17.536075][ C1] [ 17.536410][ C1] CPU0 [ 17.536575][ C1] ---- [ 17.536738][ C1] lock(pin_fs_lock); [ 17.536904][ C1] [ 17.537071][ C1] lock(pin_fs_lock); [ 17.537238][ C1] [ 17.537238][ C1] *** DEADLOCK *** [ 17.537238][ C1] [ 17.537558][ C1] 1 lock held by ksoftirqd/1/22: [ 17.537780][ C1] #0: ffffffff92d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.538173][ C1] [ 17.538173][ C1] stack backtrace: [ 17.538449][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 17.538454][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.538456][ C1] Call Trace: [ 17.538458][ C1] [ 17.538461][ C1] dump_stack_lvl+0x82/0xd0 [ 17.538467][ C1] print_usage_bug.part.0+0x25f/0x360 [ 17.538473][ C1] mark_lock_irq+0x343/0x400 [ 17.538478][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 17.538482][ C1] ? save_trace+0x52/0x170 [ 17.538488][ C1] mark_lock+0x174/0x2f0 [ 17.538491][ C1] mark_usage+0x46/0x150 [ 17.538494][ C1] __lock_acquire+0x20b/0x7e0 [ 17.538498][ C1] ? __lock_acquire+0x44d/0x7e0 [ 17.538502][ C1] lock_acquire.part.0+0xb6/0x240 [ 17.538505][ C1] ? simple_pin_fs+0x24/0x150 [ 17.538511][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.538515][ C1] ? lock_acquire+0x10c/0x170 [ 17.538517][ C1] ? simple_pin_fs+0x24/0x150 [ 17.538522][ C1] _raw_spin_lock+0x33/0x40 [ 17.538526][ C1] ? simple_pin_fs+0x24/0x150 [ 17.538529][ C1] simple_pin_fs+0x24/0x150 [ 17.538533][ C1] debugfs_remove+0x35/0x70 [ 17.538536][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.538542][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.538546][ C1] ? __sk_destruct+0x383/0x780 [ 17.538552][ C1] ? rcu_do_batch+0x34c/0xf20 [ 17.538555][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.538558][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 17.538562][ C1] ? kthread+0x37e/0x600 [ 17.538564][ C1] ? ret_from_fork+0x240/0x320 [ 17.538567][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.538571][ C1] ? migrate_enable+0x1f2/0x270 [ 17.538575][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.538580][ C1] __put_net+0x19/0x60 [ 17.538584][ C1] __sk_destruct+0x58a/0x780 [ 17.538588][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.538590][ C1] rcu_do_batch+0x34c/0xf20 [ 17.538595][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.538599][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.538602][ C1] ? note_gp_changes+0x182/0x1e0 [ 17.538604][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.538609][ C1] rcu_core+0x2bb/0x500 [ 17.538613][ C1] handle_softirqs+0x218/0x620 [ 17.538617][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.538621][ C1] run_ksoftirqd+0x3f/0x70 [ 17.538623][ C1] smpboot_thread_fn+0x30a/0x960 [ 17.538627][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.538631][ C1] kthread+0x37e/0x600 [ 17.538634][ C1] ? __pfx_kthread+0x10/0x10 [ 17.538636][ C1] ? ret_from_fork+0x1b/0x320 [ 17.538638][ C1] ? __lock_release+0x5d/0x170 [ 17.538642][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.538645][ C1] ? __pfx_kthread+0x10/0x10 [ 17.538647][ C1] ret_from_fork+0x240/0x320 [ 17.538650][ C1] ? __pfx_kthread+0x10/0x10 [ 17.538652][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.538660][ C1] [ 17.550939][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.551314][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 22, name: ksoftirqd/1 [ 17.551668][ C1] preempt_count: 100, expected: 0 [ 17.551876][ C1] RCU nest depth: 0, expected: 0 [ 17.552083][ C1] INFO: lockdep is turned off. [ 17.552299][ C1] Preemption disabled at: [ 17.552301][ C1] [] handle_softirqs+0xe5/0x620 [ 17.552714][ C1] CPU: 1 UID: 0 PID: 22 Comm: ksoftirqd/1 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 17.552719][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.552720][ C1] Call Trace: [ 17.552722][ C1] [ 17.552725][ C1] dump_stack_lvl+0xb0/0xd0 [ 17.552732][ C1] __might_resched+0x360/0x5a0 [ 17.552739][ C1] down_write+0x72/0x210 [ 17.552743][ C1] ? __pfx_down_write+0x10/0x10 [ 17.552746][ C1] ? simple_recursive_removal+0x33/0x610 [ 17.552749][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.552755][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.552760][ C1] simple_recursive_removal+0x6a/0x610 [ 17.552763][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 17.552766][ C1] ? __pfx_remove_one+0x10/0x10 [ 17.552771][ C1] debugfs_remove+0x44/0x70 [ 17.552774][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 17.552780][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.552783][ C1] ? __sk_destruct+0x383/0x780 [ 17.552788][ C1] ? rcu_do_batch+0x34c/0xf20 [ 17.552791][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.552794][ C1] ? smpboot_thread_fn+0x30a/0x960 [ 17.552798][ C1] ? kthread+0x37e/0x600 [ 17.552801][ C1] ? ret_from_fork+0x240/0x320 [ 17.552804][ C1] ? ret_from_fork_asm+0x1a/0x30 [ 17.552809][ C1] ? migrate_enable+0x1f2/0x270 [ 17.552813][ C1] ? __pfx_migrate_enable+0x10/0x10 [ 17.552818][ C1] __put_net+0x19/0x60 [ 17.552822][ C1] __sk_destruct+0x58a/0x780 [ 17.552826][ C1] ? rcu_do_batch+0x34a/0xf20 [ 17.552828][ C1] rcu_do_batch+0x34c/0xf20 [ 17.552833][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.552836][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.552839][ C1] ? note_gp_changes+0x182/0x1e0 [ 17.552842][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.552846][ C1] rcu_core+0x2bb/0x500 [ 17.552850][ C1] handle_softirqs+0x218/0x620 [ 17.552854][ C1] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.552858][ C1] run_ksoftirqd+0x3f/0x70 [ 17.552861][ C1] smpboot_thread_fn+0x30a/0x960 [ 17.552864][ C1] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.552868][ C1] kthread+0x37e/0x600 [ 17.552871][ C1] ? __pfx_kthread+0x10/0x10 [ 17.552873][ C1] ? ret_from_fork+0x1b/0x320 [ 17.552876][ C1] ? __lock_release+0x5d/0x170 [ 17.552879][ C1] ? rcu_is_watching+0x12/0xc0 [ 17.552882][ C1] ? __pfx_kthread+0x10/0x10 [ 17.552885][ C1] ret_from_fork+0x240/0x320 [ 17.552888][ C1] ? __pfx_kthread+0x10/0x10 [ 17.552890][ C1] ret_from_fork_asm+0x1a/0x30 [ 17.552898][ C1] [ 19.929368][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 19.929839][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 214, name: sh [ 19.930184][ C2] preempt_count: 100, expected: 0 [ 19.930409][ C2] RCU nest depth: 1, expected: 0 [ 19.930636][ C2] INFO: lockdep is turned off. [ 19.930889][ C2] Preemption disabled at: [ 19.930892][ C2] [] handle_softirqs+0xe5/0x620 [ 19.931364][ C2] CPU: 2 UID: 0 PID: 214 Comm: sh Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 19.931370][ C2] Tainted: [W]=WARN [ 19.931371][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 19.931373][ C2] Call Trace: [ 19.931376][ C2] [ 19.931377][ C2] dump_stack_lvl+0xb0/0xd0 [ 19.931385][ C2] __might_resched+0x360/0x5a0 [ 19.931391][ C2] down_write+0x72/0x210 [ 19.931396][ C2] ? __pfx_down_write+0x10/0x10 [ 19.931399][ C2] ? simple_recursive_removal+0x33/0x610 [ 19.931404][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931408][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.931414][ C2] simple_recursive_removal+0x6a/0x610 [ 19.931417][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 19.931420][ C2] ? __pfx_remove_one+0x10/0x10 [ 19.931426][ C2] debugfs_remove+0x44/0x70 [ 19.931429][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 19.931435][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 19.931439][ C2] ? __sk_destruct+0x383/0x780 [ 19.931444][ C2] ? rcu_do_batch+0x34c/0xf20 [ 19.931448][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 19.931451][ C2] ? irq_exit_rcu+0xe/0x30 [ 19.931454][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.931460][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.931463][ C2] ? unwind_next_frame+0xbde/0x1e10 [ 19.931467][ C2] ? arch_stack_walk+0x8b/0xf0 [ 19.931471][ C2] ? stack_trace_save+0x93/0xd0 [ 19.931474][ C2] ? kasan_save_stack+0x24/0x50 [ 19.931479][ C2] ? kasan_record_aux_stack+0x8c/0xa0 [ 19.931482][ C2] ? __call_rcu_common.constprop.0+0xa1/0x610 [ 19.931486][ C2] ? exit_mmap+0x3cd/0x800 [ 19.931491][ C2] ? mmput+0xb8/0x3f0 [ 19.931495][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 19.931499][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931504][ C2] __put_net+0x19/0x60 [ 19.931507][ C2] __sk_destruct+0x58a/0x780 [ 19.931511][ C2] ? rcu_do_batch+0x34a/0xf20 [ 19.931514][ C2] rcu_do_batch+0x34c/0xf20 [ 19.931518][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 19.931522][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931525][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 19.931532][ C2] rcu_core+0x2bb/0x500 [ 19.931537][ C2] handle_softirqs+0x218/0x620 [ 19.931542][ C2] __irq_exit_rcu+0xfa/0x160 [ 19.931545][ C2] irq_exit_rcu+0xe/0x30 [ 19.931548][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 19.931552][ C2] [ 19.931553][ C2] [ 19.931555][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 19.931558][ C2] RIP: 0010:unwind_next_frame+0xbde/0x1e10 [ 19.931561][ C2] Code: 28 4c 89 f9 e8 f3 40 44 00 48 3d 50 a8 3f 8f 0f 84 cc 0b 00 00 48 ba 00 00 00 00 00 fc ff df 4c 89 e1 48 c1 e9 03 80 3c 11 00 <0f> 85 8b 11 00 00 48 8b 14 24 49 89 45 58 48 b8 00 00 00 00 00 fc [ 19.931564][ C2] RSP: 0018:ffffc90000a177f0 EFLAGS: 00000246 [ 19.931567][ C2] RAX: ffffffff8f480d28 RBX: 1ffff92000142f07 RCX: 1ffff92000142f29 [ 19.931569][ C2] RDX: dffffc0000000000 RSI: ffffc90000a17920 RDI: ffff888005770040 [ 19.931571][ C2] RBP: 0000000000000001 R08: 0000000000000000 R09: ffffc90000a17931 [ 19.931573][ C2] R10: ffffffff8f412687 R11: ffffc90000a17930 R12: ffffc90000a17948 [ 19.931574][ C2] R13: ffffc90000a178f0 R14: ffffffff93bb222c R15: ffffc90000a17ee0 [ 19.931577][ C2] ? unwind_next_frame+0x147/0x1e10 [ 19.931580][ C2] ? do_group_exit+0xb8/0x260 [ 19.931587][ C2] ? do_exit+0x433/0xc20 [ 19.931591][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931594][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 19.931598][ C2] ? do_exit+0x433/0xc20 [ 19.931601][ C2] ? kernel_text_address+0x17/0xe0 [ 19.931605][ C2] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 19.931608][ C2] arch_stack_walk+0x8b/0xf0 [ 19.931614][ C2] ? do_group_exit+0xb8/0x260 [ 19.931618][ C2] stack_trace_save+0x93/0xd0 [ 19.931621][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 19.931625][ C2] ? kasan_save_stack+0x34/0x50 [ 19.931629][ C2] kasan_save_stack+0x24/0x50 [ 19.931631][ C2] ? kasan_save_stack+0x24/0x50 [ 19.931634][ C2] ? kasan_record_aux_stack+0x8c/0xa0 [ 19.931637][ C2] ? __call_rcu_common.constprop.0+0xa1/0x610 [ 19.931640][ C2] ? exit_mmap+0x3cd/0x800 [ 19.931643][ C2] ? mmput+0xb8/0x3f0 [ 19.931645][ C2] ? exit_mm+0x146/0x1d0 [ 19.931648][ C2] ? do_exit+0x433/0xc20 [ 19.931651][ C2] ? do_syscall_64+0xc1/0x380 [ 19.931654][ C2] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 19.931657][ C2] ? stack_depot_save_flags+0x15a/0x7a0 [ 19.931660][ C2] ? do_raw_spin_lock+0x130/0x270 [ 19.931664][ C2] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 19.931668][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931671][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931674][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 19.931679][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 19.931685][ C2] ? debug_object_active_state+0x2f5/0x400 [ 19.931692][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931697][ C2] ? __virt_addr_valid+0x22e/0x450 [ 19.931702][ C2] ? rcu_is_watching+0x12/0xc0 [ 19.931707][ C2] ? trace_lock_release+0x2a/0xd0 [ 19.931713][ C2] ? lock_release+0x13/0xc0 [ 19.931717][ C2] ? __virt_addr_valid+0x23d/0x450 [ 19.931722][ C2] kasan_record_aux_stack+0x8c/0xa0 [ 19.931724][ C2] ? __pfx_slab_free_after_rcu_debug+0x10/0x10 [ 19.931730][ C2] __call_rcu_common.constprop.0+0xa1/0x610 [ 19.931734][ C2] exit_mmap+0x3cd/0x800 [ 19.931739][ C2] ? __pfx_exit_mmap+0x10/0x10 [ 19.931742][ C2] ? __mutex_lock+0x19c/0xcd0 [ 19.931747][ C2] ? lock_release+0x13/0xc0 [ 19.931750][ C2] ? __mutex_unlock_slowpath+0x144/0x400 [ 19.931758][ C2] mmput+0xb8/0x3f0 [ 19.931762][ C2] exit_mm+0x146/0x1d0 [ 19.931765][ C2] do_exit+0x433/0xc20 [ 19.931770][ C2] do_group_exit+0xb8/0x260 [ 19.931774][ C2] __x64_sys_exit_group+0x3e/0x50 [ 19.931777][ C2] x64_sys_call+0xf76/0x18a0 [ 19.931782][ C2] do_syscall_64+0xc1/0x380 [ 19.931786][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 19.931788][ C2] RIP: 0033:0x7f5ad7e18abd [ 19.931792][ C2] Code: Unable to access opcode bytes at 0x7f5ad7e18a93. [ 19.931793][ C2] RSP: 002b:00007ffdef193398 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 19.931796][ C2] RAX: ffffffffffffffda RBX: 00007f5ad7ef59c0 RCX: 00007f5ad7e18abd [ 19.931798][ C2] RDX: 00000000000000e7 RSI: ffffffffffffff80 RDI: 0000000000000000 [ 19.931799][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000030 [ 19.931801][ C2] R10: 00007ffdef193220 R11: 0000000000000246 R12: 00007f5ad7ef59c0 [ 19.931803][ C2] R13: 00007f5ad7efaee0 R14: 0000000000000001 R15: 00007f5ad7efaec8 [ 19.931808][ C2]