[ 14.923972][ C3] [ 14.924170][ C3] ================================ [ 14.924358][ C3] WARNING: inconsistent lock state [ 14.924545][ C3] 6.15.0-virtme #1 Not tainted [ 14.924733][ C3] -------------------------------- [ 14.924919][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.925159][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.925395][ C3] ffffffffa4fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.925730][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.925917][ C3] __lock_acquire+0x20b/0x7e0 [ 14.926105][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.926291][ C3] _raw_spin_lock+0x33/0x40 [ 14.926480][ C3] simple_pin_fs+0x24/0x150 [ 14.926666][ C3] start_creating.part.0+0x52/0x310 [ 14.926854][ C3] debugfs_create_dir+0x6a/0x540 [ 14.927040][ C3] component_debug_init+0x17/0x30 [ 14.927232][ C3] do_one_initcall+0x8f/0x1e0 [ 14.927418][ C3] do_initcalls+0x176/0x280 [ 14.927606][ C3] kernel_init_freeable+0x22d/0x300 [ 14.927793][ C3] kernel_init+0x20/0x200 [ 14.927977][ C3] ret_from_fork+0x240/0x320 [ 14.928162][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.928348][ C3] irq event stamp: 283384 [ 14.928497][ C3] hardirqs last enabled at (283384): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.928867][ C3] hardirqs last disabled at (283383): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.929246][ C3] softirqs last enabled at (282430): [] handle_softirqs+0x358/0x620 [ 14.929576][ C3] softirqs last disabled at (282437): [] __irq_exit_rcu+0xfa/0x160 [ 14.929901][ C3] [ 14.929901][ C3] other info that might help us debug this: [ 14.930176][ C3] Possible unsafe locking scenario: [ 14.930176][ C3] [ 14.930449][ C3] CPU0 [ 14.930587][ C3] ---- [ 14.930726][ C3] lock(pin_fs_lock); [ 14.930866][ C3] [ 14.931003][ C3] lock(pin_fs_lock); [ 14.931143][ C3] [ 14.931143][ C3] *** DEADLOCK *** [ 14.931143][ C3] [ 14.931415][ C3] 1 lock held by swapper/3/0: [ 14.931599][ C3] #0: ffffffffa4d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.931928][ C3] [ 14.931928][ C3] stack backtrace: [ 14.932157][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.932162][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.932164][ C3] Call Trace: [ 14.932166][ C3] [ 14.932168][ C3] dump_stack_lvl+0x82/0xd0 [ 14.932174][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.932178][ C3] mark_lock_irq+0x343/0x400 [ 14.932183][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.932187][ C3] ? save_trace+0x52/0x170 [ 14.932194][ C3] mark_lock+0x174/0x2f0 [ 14.932197][ C3] mark_usage+0x46/0x150 [ 14.932200][ C3] __lock_acquire+0x20b/0x7e0 [ 14.932203][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.932208][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.932211][ C3] ? simple_pin_fs+0x24/0x150 [ 14.932215][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.932219][ C3] ? lock_acquire+0x10c/0x170 [ 14.932221][ C3] ? simple_pin_fs+0x24/0x150 [ 14.932226][ C3] _raw_spin_lock+0x33/0x40 [ 14.932229][ C3] ? simple_pin_fs+0x24/0x150 [ 14.932233][ C3] simple_pin_fs+0x24/0x150 [ 14.932237][ C3] debugfs_remove+0x35/0x70 [ 14.932240][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.932246][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.932249][ C3] ? __sk_destruct+0x383/0x780 [ 14.932255][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.932258][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.932261][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.932264][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.932269][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.932273][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.932276][ C3] ? default_idle+0x9/0x10 [ 14.932279][ C3] ? default_idle_call+0x6d/0xb0 [ 14.932282][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.932285][ C3] ? do_idle+0xf6/0x160 [ 14.932287][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.932290][ C3] ? start_secondary+0x213/0x2a0 [ 14.932294][ C3] ? common_startup_64+0x13e/0x148 [ 14.932301][ C3] __put_net+0x19/0x60 [ 14.932304][ C3] __sk_destruct+0x58a/0x780 [ 14.932309][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.932311][ C3] rcu_do_batch+0x34c/0xf20 [ 14.932314][ C3] ? find_held_lock+0x2b/0x80 [ 14.932318][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.932322][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.932326][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.932329][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.932333][ C3] rcu_core+0x2bb/0x500 [ 14.932338][ C3] handle_softirqs+0x218/0x620 [ 14.932343][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.932346][ C3] irq_exit_rcu+0xe/0x30 [ 14.932349][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.932353][ C3] [ 14.932354][ C3] [ 14.932355][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.932358][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.932362][ 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 [ 14.932365][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.932368][ C3] RAX: 0000000000044f43 RBX: 1ffff9200002afc1 RCX: ffffffffa3d905d9 [ 14.932370][ C3] RDX: 0000000000000000 RSI: ffffffffa488f4e4 RDI: ffffffffa4053be0 [ 14.932372][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.932373][ C3] R10: ffff8880361b37d3 R11: ffffffffa4a11288 R12: 0000000000000000 [ 14.932375][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.932379][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.932383][ C3] default_idle+0x9/0x10 [ 14.932386][ C3] default_idle_call+0x6d/0xb0 [ 14.932388][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.932391][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.932395][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.932399][ C3] do_idle+0xf6/0x160 [ 14.932403][ C3] cpu_startup_entry+0x54/0x60 [ 14.932406][ C3] start_secondary+0x213/0x2a0 [ 14.932409][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.932413][ C3] common_startup_64+0x13e/0x148 [ 14.932420][ C3] [ 14.947220][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.947524][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.947822][ C3] preempt_count: 101, expected: 0 [ 14.947994][ C3] RCU nest depth: 0, expected: 0 [ 14.948175][ C3] INFO: lockdep is turned off. [ 14.948346][ C3] Preemption disabled at: [ 14.948348][ C3] [<0000000000000000>] 0x0 [ 14.948649][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.948653][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.948655][ C3] Call Trace: [ 14.948656][ C3] [ 14.948658][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.948664][ C3] __might_resched+0x360/0x5a0 [ 14.948671][ C3] down_write+0x72/0x210 [ 14.948675][ C3] ? __pfx_down_write+0x10/0x10 [ 14.948678][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.948682][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.948686][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.948691][ C3] simple_recursive_removal+0x6a/0x610 [ 14.948694][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.948697][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.948702][ C3] debugfs_remove+0x44/0x70 [ 14.948705][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.948709][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.948712][ C3] ? __sk_destruct+0x383/0x780 [ 14.948717][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.948720][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.948723][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.948727][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.948732][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.948735][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.948738][ C3] ? default_idle+0x9/0x10 [ 14.948740][ C3] ? default_idle_call+0x6d/0xb0 [ 14.948743][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.948746][ C3] ? do_idle+0xf6/0x160 [ 14.948749][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.948751][ C3] ? start_secondary+0x213/0x2a0 [ 14.948754][ C3] ? common_startup_64+0x13e/0x148 [ 14.948760][ C3] __put_net+0x19/0x60 [ 14.948763][ C3] __sk_destruct+0x58a/0x780 [ 14.948767][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.948769][ C3] rcu_do_batch+0x34c/0xf20 [ 14.948772][ C3] ? find_held_lock+0x2b/0x80 [ 14.948777][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.948781][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.948785][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.948788][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.948793][ C3] rcu_core+0x2bb/0x500 [ 14.948797][ C3] handle_softirqs+0x218/0x620 [ 14.948803][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.948805][ C3] irq_exit_rcu+0xe/0x30 [ 14.948808][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.948812][ C3] [ 14.948813][ C3] [ 14.948814][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.948817][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.948821][ 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 [ 14.948823][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.948826][ C3] RAX: 0000000000044f43 RBX: 1ffff9200002afc1 RCX: ffffffffa3d905d9 [ 14.948828][ C3] RDX: 0000000000000000 RSI: ffffffffa488f4e4 RDI: ffffffffa4053be0 [ 14.948830][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.948831][ C3] R10: ffff8880361b37d3 R11: ffffffffa4a11288 R12: 0000000000000000 [ 14.948833][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.948836][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.948841][ C3] default_idle+0x9/0x10 [ 14.948844][ C3] default_idle_call+0x6d/0xb0 [ 14.948846][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.948849][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.948853][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.948857][ C3] do_idle+0xf6/0x160 [ 14.948860][ C3] cpu_startup_entry+0x54/0x60 [ 14.948863][ C3] start_secondary+0x213/0x2a0 [ 14.948866][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.948871][ C3] common_startup_64+0x13e/0x148 [ 14.948877][ C3] [ 16.646972][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.647357][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 215, name: sh [ 16.647627][ C2] preempt_count: 101, expected: 0 [ 16.647812][ C2] RCU nest depth: 0, expected: 0 [ 16.647995][ C2] INFO: lockdep is turned off. [ 16.648188][ C2] Preemption disabled at: [ 16.648190][ C2] [] copy_fpstate_to_sigframe+0x240/0x530 [ 16.648605][ C2] CPU: 2 UID: 0 PID: 215 Comm: sh Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.648610][ C2] Tainted: [W]=WARN [ 16.648612][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.648614][ C2] Call Trace: [ 16.648616][ C2] [ 16.648617][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.648625][ C2] __might_resched+0x360/0x5a0 [ 16.648631][ C2] down_write+0x72/0x210 [ 16.648635][ C2] ? __pfx_down_write+0x10/0x10 [ 16.648638][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.648643][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648648][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.648654][ C2] simple_recursive_removal+0x6a/0x610 [ 16.648657][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.648660][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.648665][ C2] debugfs_remove+0x44/0x70 [ 16.648668][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.648674][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.648678][ C2] ? __sk_destruct+0x383/0x780 [ 16.648684][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.648687][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.648690][ C2] ? __local_bh_enable_ip+0x105/0x130 [ 16.648694][ C2] ? copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.648697][ C2] ? get_sigframe+0x283/0xa60 [ 16.648702][ C2] ? x64_setup_rt_frame+0xfa/0x1110 [ 16.648705][ C2] ? handle_signal+0x295/0x370 [ 16.648708][ C2] ? arch_do_signal_or_restart+0x299/0x2f0 [ 16.648711][ C2] ? exit_to_user_mode_loop+0x88/0xe0 [ 16.648715][ C2] ? do_syscall_64+0x2fe/0x380 [ 16.648719][ C2] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.648723][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.648727][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648731][ C2] __put_net+0x19/0x60 [ 16.648735][ C2] __sk_destruct+0x58a/0x780 [ 16.648739][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.648741][ C2] rcu_do_batch+0x34c/0xf20 [ 16.648746][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.648749][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648752][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.648759][ C2] rcu_core+0x2bb/0x500 [ 16.648764][ C2] handle_softirqs+0x218/0x620 [ 16.648768][ C2] ? copy_fpstate_to_sigframe+0x1c5/0x530 [ 16.648771][ C2] do_softirq+0xb1/0xe0 [ 16.648774][ C2] [ 16.648775][ C2] [ 16.648777][ C2] __local_bh_enable_ip+0x105/0x130 [ 16.648780][ C2] copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.648784][ C2] ? fpu__alloc_mathframe+0x2e/0x120 [ 16.648788][ C2] get_sigframe+0x283/0xa60 [ 16.648792][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648795][ C2] ? __pfx_get_sigframe+0x10/0x10 [ 16.648798][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648801][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648804][ C2] ? trace_rseq_update+0xd2/0x130 [ 16.648811][ C2] x64_setup_rt_frame+0xfa/0x1110 [ 16.648816][ C2] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 16.648820][ C2] ? __pfx_x64_setup_rt_frame+0x10/0x10 [ 16.648826][ C2] handle_signal+0x295/0x370 [ 16.648830][ C2] arch_do_signal_or_restart+0x299/0x2f0 [ 16.648834][ C2] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 16.648840][ C2] ? do_user_addr_fault+0x959/0xe00 [ 16.648843][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.648847][ C2] exit_to_user_mode_loop+0x88/0xe0 [ 16.648851][ C2] do_syscall_64+0x2fe/0x380 [ 16.648854][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.648857][ C2] RIP: 0033:0x7fd7070d683b [ 16.648860][ C2] 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.648863][ C2] RSP: 002b:00007ffd94288610 EFLAGS: 00000246 ORIG_RAX: 000000000000000e [ 16.648866][ C2] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fd7070d683b [ 16.648868][ C2] RDX: 0000000000000000 RSI: 00007ffd942886d0 RDI: 0000000000000002 [ 16.648870][ C2] RBP: 0000000000000000 R08: 00007ffd942886d0 R09: 0000000000000000 [ 16.648871][ C2] R10: 0000000000000008 R11: 0000000000000246 R12: 0000556d4eaa2620 [ 16.648873][ C2] R13: 0000556d4eafc440 R14: 00007ffd942886d0 R15: 0000000000000000 [ 16.648879][ C2]