[ 16.564069][ C0] [ 16.564276][ C0] ================================ [ 16.564474][ C0] WARNING: inconsistent lock state [ 16.564667][ C0] 6.15.0-virtme #1 Not tainted [ 16.564859][ C0] -------------------------------- [ 16.565046][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 16.565282][ C0] ksft_runner.sh/219 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 16.565523][ C0] ffffffff857c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 16.565862][ C0] {SOFTIRQ-ON-W} state was registered at: [ 16.566050][ C0] __lock_acquire+0x20b/0x7e0 [ 16.566243][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.566433][ C0] _raw_spin_lock+0x33/0x40 [ 16.566625][ C0] simple_pin_fs+0x24/0x150 [ 16.566817][ C0] start_creating.part.0+0x52/0x310 [ 16.567008][ C0] debugfs_create_dir+0x6a/0x540 [ 16.567197][ C0] component_debug_init+0x17/0x30 [ 16.567390][ C0] do_one_initcall+0x8f/0x1e0 [ 16.567602][ C0] do_initcalls+0x176/0x280 [ 16.567794][ C0] kernel_init_freeable+0x22d/0x300 [ 16.567984][ C0] kernel_init+0x20/0x200 [ 16.568175][ C0] ret_from_fork+0x240/0x320 [ 16.568369][ C0] ret_from_fork_asm+0x1a/0x30 [ 16.568559][ C0] irq event stamp: 58338 [ 16.568705][ C0] hardirqs last enabled at (58338): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 16.569083][ C0] hardirqs last disabled at (58337): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 16.569483][ C0] softirqs last enabled at (57226): [] copy_fpstate_to_sigframe+0x1c5/0x530 [ 16.569875][ C0] softirqs last disabled at (57227): [] do_softirq+0xb1/0xe0 [ 16.570209][ C0] [ 16.570209][ C0] other info that might help us debug this: [ 16.570507][ C0] Possible unsafe locking scenario: [ 16.570507][ C0] [ 16.570799][ C0] CPU0 [ 16.570943][ C0] ---- [ 16.571099][ C0] lock(pin_fs_lock); [ 16.571251][ C0] [ 16.571394][ C0] lock(pin_fs_lock); [ 16.571546][ C0] [ 16.571546][ C0] *** DEADLOCK *** [ 16.571546][ C0] [ 16.571833][ C0] 1 lock held by ksft_runner.sh/219: [ 16.572035][ C0] #0: ffffffff855774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 16.572390][ C0] [ 16.572390][ C0] stack backtrace: [ 16.572640][ C0] CPU: 0 UID: 0 PID: 219 Comm: ksft_runner.sh Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.572645][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.572648][ C0] Call Trace: [ 16.572650][ C0] [ 16.572652][ C0] dump_stack_lvl+0x82/0xd0 [ 16.572658][ C0] print_usage_bug.part.0+0x25f/0x360 [ 16.572663][ C0] mark_lock_irq+0x343/0x400 [ 16.572668][ C0] ? rcu_read_lock_any_held+0x43/0xb0 [ 16.572672][ C0] ? validate_chain+0x166/0x4d0 [ 16.572677][ C0] mark_lock+0x174/0x2f0 [ 16.572680][ C0] mark_usage+0x46/0x150 [ 16.572683][ C0] __lock_acquire+0x20b/0x7e0 [ 16.572686][ C0] ? __lock_acquire+0x44d/0x7e0 [ 16.572690][ C0] lock_acquire.part.0+0xb6/0x240 [ 16.572693][ C0] ? simple_pin_fs+0x24/0x150 [ 16.572699][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.572703][ C0] ? lock_acquire+0x10c/0x170 [ 16.572705][ C0] ? simple_pin_fs+0x24/0x150 [ 16.572710][ C0] _raw_spin_lock+0x33/0x40 [ 16.572713][ C0] ? simple_pin_fs+0x24/0x150 [ 16.572717][ C0] simple_pin_fs+0x24/0x150 [ 16.572721][ C0] debugfs_remove+0x35/0x70 [ 16.572724][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.572731][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.572734][ C0] ? __sk_destruct+0x383/0x780 [ 16.572740][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.572743][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.572746][ C0] ? __local_bh_enable_ip+0x105/0x130 [ 16.572749][ C0] ? copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.572752][ C0] ? get_sigframe+0x283/0xa60 [ 16.572757][ C0] ? x64_setup_rt_frame+0xfa/0x1110 [ 16.572760][ C0] ? handle_signal+0x295/0x370 [ 16.572763][ C0] ? arch_do_signal_or_restart+0x299/0x2f0 [ 16.572767][ C0] ? exit_to_user_mode_loop+0x88/0xe0 [ 16.572771][ C0] ? do_syscall_64+0x2fe/0x380 [ 16.572775][ C0] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.572781][ C0] __put_net+0x19/0x60 [ 16.572785][ C0] __sk_destruct+0x58a/0x780 [ 16.572792][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.572796][ C0] rcu_do_batch+0x34c/0xf20 [ 16.572805][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.572809][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.572812][ C0] ? note_gp_changes+0x182/0x1e0 [ 16.572815][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.572820][ C0] rcu_core+0x2bb/0x500 [ 16.572824][ C0] handle_softirqs+0x218/0x620 [ 16.572828][ C0] ? copy_fpstate_to_sigframe+0x1c5/0x530 [ 16.572832][ C0] do_softirq+0xb1/0xe0 [ 16.572835][ C0] [ 16.572836][ C0] [ 16.572837][ C0] __local_bh_enable_ip+0x105/0x130 [ 16.572840][ C0] copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.572844][ C0] ? fpu__alloc_mathframe+0x2e/0x120 [ 16.572847][ C0] get_sigframe+0x283/0xa60 [ 16.572852][ C0] ? __pfx_get_sigframe+0x10/0x10 [ 16.572856][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.572859][ C0] ? trace_rseq_update+0xd2/0x130 [ 16.572866][ C0] x64_setup_rt_frame+0xfa/0x1110 [ 16.572870][ C0] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 16.572875][ C0] ? __pfx_x64_setup_rt_frame+0x10/0x10 [ 16.572878][ C0] ? __lock_release+0x5d/0x170 [ 16.572881][ C0] ? _raw_spin_unlock_irq+0x28/0x50 [ 16.572886][ C0] handle_signal+0x295/0x370 [ 16.572890][ C0] arch_do_signal_or_restart+0x299/0x2f0 [ 16.572894][ C0] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 16.572900][ C0] ? do_user_addr_fault+0x959/0xe00 [ 16.572904][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.572908][ C0] exit_to_user_mode_loop+0x88/0xe0 [ 16.572912][ C0] do_syscall_64+0x2fe/0x380 [ 16.572915][ C0] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.572918][ C0] RIP: 0033:0x7f3b4c3ce83b [ 16.572922][ C0] 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.572924][ C0] RSP: 002b:00007fffee2289e0 EFLAGS: 00000246 ORIG_RAX: 000000000000000e [ 16.572928][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3b4c3ce83b [ 16.572930][ C0] RDX: 0000000000000000 RSI: 00007fffee228aa0 RDI: 0000000000000002 [ 16.572932][ C0] RBP: 0000000000000000 R08: 00007fffee228aa0 R09: 0000000000000000 [ 16.572934][ C0] R10: 0000000000000008 R11: 0000000000000246 R12: 000055d269f1e620 [ 16.572935][ C0] R13: 000055d269f78440 R14: 00007fffee228aa0 R15: 0000000000000000 [ 16.572941][ C0] [ 16.589197][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.589513][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 219, name: ksft_runner.sh [ 16.589824][ C0] preempt_count: 101, expected: 0 [ 16.590002][ C0] RCU nest depth: 0, expected: 0 [ 16.590189][ C0] INFO: lockdep is turned off. [ 16.590373][ C0] Preemption disabled at: [ 16.590375][ C0] [] copy_fpstate_to_sigframe+0x240/0x530 [ 16.590791][ C0] CPU: 0 UID: 0 PID: 219 Comm: ksft_runner.sh Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 16.590795][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.590797][ C0] Call Trace: [ 16.590799][ C0] [ 16.590801][ C0] dump_stack_lvl+0xb0/0xd0 [ 16.590807][ C0] __might_resched+0x360/0x5a0 [ 16.590814][ C0] down_write+0x72/0x210 [ 16.590818][ C0] ? __pfx_down_write+0x10/0x10 [ 16.590821][ C0] ? simple_recursive_removal+0x33/0x610 [ 16.590825][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.590830][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.590836][ C0] simple_recursive_removal+0x6a/0x610 [ 16.590839][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 16.590842][ C0] ? __pfx_remove_one+0x10/0x10 [ 16.590847][ C0] debugfs_remove+0x44/0x70 [ 16.590850][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 16.590856][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.590859][ C0] ? __sk_destruct+0x383/0x780 [ 16.590864][ C0] ? rcu_do_batch+0x34c/0xf20 [ 16.590868][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.590871][ C0] ? __local_bh_enable_ip+0x105/0x130 [ 16.590875][ C0] ? copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.590877][ C0] ? get_sigframe+0x283/0xa60 [ 16.590882][ C0] ? x64_setup_rt_frame+0xfa/0x1110 [ 16.590885][ C0] ? handle_signal+0x295/0x370 [ 16.590888][ C0] ? arch_do_signal_or_restart+0x299/0x2f0 [ 16.590892][ C0] ? exit_to_user_mode_loop+0x88/0xe0 [ 16.590895][ C0] ? do_syscall_64+0x2fe/0x380 [ 16.590899][ C0] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.590905][ C0] __put_net+0x19/0x60 [ 16.590908][ C0] __sk_destruct+0x58a/0x780 [ 16.590912][ C0] ? rcu_do_batch+0x34a/0xf20 [ 16.590915][ C0] rcu_do_batch+0x34c/0xf20 [ 16.590920][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.590923][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.590926][ C0] ? note_gp_changes+0x182/0x1e0 [ 16.590929][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 16.590933][ C0] rcu_core+0x2bb/0x500 [ 16.590937][ C0] handle_softirqs+0x218/0x620 [ 16.590941][ C0] ? copy_fpstate_to_sigframe+0x1c5/0x530 [ 16.590944][ C0] do_softirq+0xb1/0xe0 [ 16.590947][ C0] [ 16.590948][ C0] [ 16.590950][ C0] __local_bh_enable_ip+0x105/0x130 [ 16.590953][ C0] copy_fpstate_to_sigframe+0x1ca/0x530 [ 16.590956][ C0] ? fpu__alloc_mathframe+0x2e/0x120 [ 16.590960][ C0] get_sigframe+0x283/0xa60 [ 16.590965][ C0] ? __pfx_get_sigframe+0x10/0x10 [ 16.590969][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.590972][ C0] ? trace_rseq_update+0xd2/0x130 [ 16.590978][ C0] x64_setup_rt_frame+0xfa/0x1110 [ 16.590983][ C0] ? __pfx___rseq_handle_notify_resume+0x10/0x10 [ 16.590987][ C0] ? __pfx_x64_setup_rt_frame+0x10/0x10 [ 16.590990][ C0] ? __lock_release+0x5d/0x170 [ 16.590994][ C0] ? _raw_spin_unlock_irq+0x28/0x50 [ 16.590999][ C0] handle_signal+0x295/0x370 [ 16.591003][ C0] arch_do_signal_or_restart+0x299/0x2f0 [ 16.591007][ C0] ? __pfx_arch_do_signal_or_restart+0x10/0x10 [ 16.591013][ C0] ? do_user_addr_fault+0x959/0xe00 [ 16.591016][ C0] ? rcu_is_watching+0x12/0xc0 [ 16.591020][ C0] exit_to_user_mode_loop+0x88/0xe0 [ 16.591023][ C0] do_syscall_64+0x2fe/0x380 [ 16.591027][ C0] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.591030][ C0] RIP: 0033:0x7f3b4c3ce83b [ 16.591033][ C0] 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.591036][ C0] RSP: 002b:00007fffee2289e0 EFLAGS: 00000246 ORIG_RAX: 000000000000000e [ 16.591039][ C0] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f3b4c3ce83b [ 16.591041][ C0] RDX: 0000000000000000 RSI: 00007fffee228aa0 RDI: 0000000000000002 [ 16.591043][ C0] RBP: 0000000000000000 R08: 00007fffee228aa0 R09: 0000000000000000 [ 16.591044][ C0] R10: 0000000000000008 R11: 0000000000000246 R12: 000055d269f1e620 [ 16.591046][ C0] R13: 000055d269f78440 R14: 00007fffee228aa0 R15: 0000000000000000 [ 16.591052][ C0] [ 18.987834][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 18.988228][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 18.988562][ C3] preempt_count: 101, expected: 0 [ 18.988751][ C3] RCU nest depth: 0, expected: 0 [ 18.988941][ C3] INFO: lockdep is turned off. [ 18.989133][ C3] Preemption disabled at: [ 18.989135][ C3] [<0000000000000000>] 0x0 [ 18.989475][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 18.989482][ C3] Tainted: [W]=WARN [ 18.989484][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.989486][ C3] Call Trace: [ 18.989488][ C3] [ 18.989491][ C3] dump_stack_lvl+0xb0/0xd0 [ 18.989502][ C3] __might_resched+0x360/0x5a0 [ 18.989511][ C3] down_write+0x72/0x210 [ 18.989517][ C3] ? __pfx_down_write+0x10/0x10 [ 18.989520][ C3] ? simple_recursive_removal+0x33/0x610 [ 18.989526][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.989532][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.989543][ C3] simple_recursive_removal+0x6a/0x610 [ 18.989546][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 18.989550][ C3] ? __pfx_remove_one+0x10/0x10 [ 18.989556][ C3] debugfs_remove+0x44/0x70 [ 18.989559][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 18.989567][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 18.989570][ C3] ? __sk_destruct+0x383/0x780 [ 18.989578][ C3] ? rcu_do_batch+0x34c/0xf20 [ 18.989582][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 18.989586][ C3] ? irq_exit_rcu+0xe/0x30 [ 18.989592][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.989598][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.989603][ C3] ? pv_native_safe_halt+0xf/0x20 [ 18.989606][ C3] ? default_idle+0x9/0x10 [ 18.989609][ C3] ? default_idle_call+0x6d/0xb0 [ 18.989612][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.989617][ C3] ? do_idle+0xf6/0x160 [ 18.989619][ C3] ? cpu_startup_entry+0x54/0x60 [ 18.989621][ C3] ? start_secondary+0x213/0x2a0 [ 18.989626][ C3] ? common_startup_64+0x13e/0x148 [ 18.989634][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 18.989639][ C3] ? rcu_is_watching+0x12/0xc0 [ 18.989643][ C3] __put_net+0x19/0x60 [ 18.989648][ C3] __sk_destruct+0x58a/0x780 [ 18.989652][ C3] ? rcu_do_batch+0x34a/0xf20 [ 18.989655][ C3] rcu_do_batch+0x34c/0xf20 [ 18.989659][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 18.989663][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 18.989670][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 18.989677][ C3] rcu_core+0x2bb/0x500 [ 18.989682][ C3] handle_softirqs+0x218/0x620 [ 18.989688][ C3] __irq_exit_rcu+0xfa/0x160 [ 18.989691][ C3] irq_exit_rcu+0xe/0x30 [ 18.989694][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 18.989698][ C3] [ 18.989699][ C3] [ 18.989701][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 18.989704][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 18.989709][ C3] Code: a2 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 47 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 [ 18.989712][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000246 [ 18.989716][ C3] RAX: 0000000000000003 RBX: 1ffff9200002afc1 RCX: ffffffff8458f5d9 [ 18.989718][ C3] RDX: ffffed1006c366fb RSI: ffffffff84853b60 RDI: ffffffff81d8d18f [ 18.989720][ C3] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c366fa [ 18.989721][ C3] R10: ffff8880361b37d3 R11: ffff888005188558 R12: 0000000000000000 [ 18.989723][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 18.989727][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 18.989731][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 18.989735][ C3] default_idle+0x9/0x10 [ 18.989738][ C3] default_idle_call+0x6d/0xb0 [ 18.989741][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 18.989744][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 18.989748][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 18.989752][ C3] do_idle+0xf6/0x160 [ 18.989756][ C3] cpu_startup_entry+0x54/0x60 [ 18.989759][ C3] start_secondary+0x213/0x2a0 [ 18.989761][ C3] ? __pfx_start_secondary+0x10/0x10 [ 18.989766][ C3] common_startup_64+0x13e/0x148 [ 18.989773][ C3]