[ 15.444906][ C0] [ 15.445051][ C0] ================================ [ 15.445261][ C0] WARNING: inconsistent lock state [ 15.445465][ C0] 6.15.0-virtme #1 Not tainted [ 15.445672][ C0] -------------------------------- [ 15.445878][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.446133][ C0] swapper/0/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.446389][ C0] ffffffffa7dc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.446765][ C0] {SOFTIRQ-ON-W} state was registered at: [ 15.446972][ C0] __lock_acquire+0x20b/0x7e0 [ 15.447181][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.447391][ C0] _raw_spin_lock+0x33/0x40 [ 15.447599][ C0] simple_pin_fs+0x24/0x150 [ 15.447804][ C0] start_creating.part.0+0x52/0x310 [ 15.448011][ C0] debugfs_create_dir+0x6a/0x540 [ 15.448216][ C0] component_debug_init+0x17/0x30 [ 15.448423][ C0] do_one_initcall+0x8f/0x1e0 [ 15.448629][ C0] do_initcalls+0x176/0x280 [ 15.448834][ C0] kernel_init_freeable+0x22d/0x300 [ 15.449041][ C0] kernel_init+0x20/0x200 [ 15.449249][ C0] ret_from_fork+0x240/0x320 [ 15.449456][ C0] ret_from_fork_asm+0x1a/0x30 [ 15.449659][ C0] irq event stamp: 422198 [ 15.449817][ C0] hardirqs last enabled at (422198): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.450225][ C0] hardirqs last disabled at (422197): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.450635][ C0] softirqs last enabled at (421654): [] handle_softirqs+0x358/0x620 [ 15.450995][ C0] softirqs last disabled at (421673): [] __irq_exit_rcu+0xfa/0x160 [ 15.451351][ C0] [ 15.451351][ C0] other info that might help us debug this: [ 15.451657][ C0] Possible unsafe locking scenario: [ 15.451657][ C0] [ 15.451957][ C0] CPU0 [ 15.452111][ C0] ---- [ 15.452266][ C0] lock(pin_fs_lock); [ 15.452422][ C0] [ 15.452575][ C0] lock(pin_fs_lock); [ 15.452739][ C0] [ 15.452739][ C0] *** DEADLOCK *** [ 15.452739][ C0] [ 15.453040][ C0] 1 lock held by swapper/0/0: [ 15.453250][ C0] #0: ffffffffa7b774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.453615][ C0] [ 15.453615][ C0] stack backtrace: [ 15.453872][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.453876][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.453878][ C0] Call Trace: [ 15.453880][ C0] [ 15.453881][ C0] dump_stack_lvl+0x82/0xd0 [ 15.453887][ C0] print_usage_bug.part.0+0x25f/0x360 [ 15.453892][ C0] mark_lock_irq+0x343/0x400 [ 15.453895][ C0] ? is_bpf_text_address+0x67/0x120 [ 15.453900][ C0] ? __lock_release+0x5d/0x170 [ 15.453904][ C0] ? save_trace+0x52/0x170 [ 15.453910][ C0] mark_lock+0x174/0x2f0 [ 15.453913][ C0] mark_usage+0x46/0x150 [ 15.453916][ C0] __lock_acquire+0x20b/0x7e0 [ 15.453920][ C0] ? __lock_acquire+0x44d/0x7e0 [ 15.453924][ C0] lock_acquire.part.0+0xb6/0x240 [ 15.453927][ C0] ? simple_pin_fs+0x24/0x150 [ 15.453931][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.453935][ C0] ? lock_acquire+0x10c/0x170 [ 15.453938][ C0] ? simple_pin_fs+0x24/0x150 [ 15.453942][ C0] _raw_spin_lock+0x33/0x40 [ 15.453946][ C0] ? simple_pin_fs+0x24/0x150 [ 15.453949][ C0] simple_pin_fs+0x24/0x150 [ 15.453953][ C0] debugfs_remove+0x35/0x70 [ 15.453956][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.453962][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.453965][ C0] ? __sk_destruct+0x383/0x780 [ 15.453971][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.453973][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.453977][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.453979][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.453984][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.453988][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.453991][ C0] ? default_idle+0x9/0x10 [ 15.453993][ C0] ? default_idle_call+0x6d/0xb0 [ 15.453996][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.453999][ C0] ? do_idle+0xf6/0x160 [ 15.454001][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.454003][ C0] ? rest_init+0x14b/0x260 [ 15.454006][ C0] ? start_kernel+0x350/0x410 [ 15.454012][ C0] __put_net+0x19/0x60 [ 15.454015][ C0] __sk_destruct+0x58a/0x780 [ 15.454019][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.454021][ C0] rcu_do_batch+0x34c/0xf20 [ 15.454025][ C0] ? find_held_lock+0x2b/0x80 [ 15.454029][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.454032][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.454036][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.454039][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.454043][ C0] rcu_core+0x2bb/0x500 [ 15.454048][ C0] handle_softirqs+0x218/0x620 [ 15.454053][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.454056][ C0] irq_exit_rcu+0xe/0x30 [ 15.454059][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.454062][ C0] [ 15.454063][ C0] [ 15.454065][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.454068][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.454072][ C0] 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 [ 15.454074][ C0] RSP: 0018:ffffffffa7807df8 EFLAGS: 00000246 [ 15.454078][ C0] RAX: 0000000000066f27 RBX: 1ffffffff4f00fc3 RCX: ffffffffa6b905d9 [ 15.454080][ C0] RDX: 0000000000000000 RSI: ffffffffa768f4e4 RDI: ffffffffa6e53be0 [ 15.454081][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e866fa [ 15.454083][ C0] R10: ffff88802f4337d3 R11: ffffffffa7811288 R12: 0000000000000000 [ 15.454085][ C0] R13: ffffffffa781f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.454089][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.454093][ C0] default_idle+0x9/0x10 [ 15.454096][ C0] default_idle_call+0x6d/0xb0 [ 15.454098][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.454101][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.454105][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.454110][ C0] do_idle+0xf6/0x160 [ 15.454113][ C0] cpu_startup_entry+0x54/0x60 [ 15.454116][ C0] rest_init+0x14b/0x260 [ 15.454120][ C0] start_kernel+0x350/0x410 [ 15.454124][ C0] x86_64_start_reservations+0x18/0x30 [ 15.454128][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.454132][ C0] common_startup_64+0x13e/0x148 [ 15.454142][ C0] [ 15.471485][ C0] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.471944][ C0] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 [ 15.472411][ C0] preempt_count: 101, expected: 0 [ 15.472610][ C0] RCU nest depth: 0, expected: 0 [ 15.472818][ C0] INFO: lockdep is turned off. [ 15.473008][ C0] Preemption disabled at: [ 15.473010][ C0] [] schedule_preempt_disabled+0x22/0x30 [ 15.473574][ C0] CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 15.473579][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.473580][ C0] Call Trace: [ 15.473582][ C0] [ 15.473583][ C0] dump_stack_lvl+0xb0/0xd0 [ 15.473589][ C0] __might_resched+0x360/0x5a0 [ 15.473596][ C0] down_write+0x72/0x210 [ 15.473600][ C0] ? __pfx_down_write+0x10/0x10 [ 15.473603][ C0] ? simple_recursive_removal+0x33/0x610 [ 15.473607][ C0] ? rcu_is_watching+0x12/0xc0 [ 15.473611][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.473616][ C0] simple_recursive_removal+0x6a/0x610 [ 15.473619][ C0] ? do_raw_spin_unlock+0x58/0x220 [ 15.473622][ C0] ? __pfx_remove_one+0x10/0x10 [ 15.473627][ C0] debugfs_remove+0x44/0x70 [ 15.473630][ C0] ref_tracker_dir_exit+0xcf/0x740 [ 15.473636][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.473639][ C0] ? __sk_destruct+0x383/0x780 [ 15.473644][ C0] ? rcu_do_batch+0x34c/0xf20 [ 15.473647][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.473650][ C0] ? irq_exit_rcu+0xe/0x30 [ 15.473655][ C0] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.473659][ C0] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.473663][ C0] ? pv_native_safe_halt+0xf/0x20 [ 15.473666][ C0] ? default_idle+0x9/0x10 [ 15.473669][ C0] ? default_idle_call+0x6d/0xb0 [ 15.473672][ C0] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.473675][ C0] ? do_idle+0xf6/0x160 [ 15.473677][ C0] ? cpu_startup_entry+0x54/0x60 [ 15.473680][ C0] ? rest_init+0x14b/0x260 [ 15.473683][ C0] ? start_kernel+0x350/0x410 [ 15.473690][ C0] __put_net+0x19/0x60 [ 15.473694][ C0] __sk_destruct+0x58a/0x780 [ 15.473698][ C0] ? rcu_do_batch+0x34a/0xf20 [ 15.473700][ C0] rcu_do_batch+0x34c/0xf20 [ 15.473704][ C0] ? find_held_lock+0x2b/0x80 [ 15.473709][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.473712][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.473716][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.473719][ C0] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.473724][ C0] rcu_core+0x2bb/0x500 [ 15.473728][ C0] handle_softirqs+0x218/0x620 [ 15.473734][ C0] __irq_exit_rcu+0xfa/0x160 [ 15.473737][ C0] irq_exit_rcu+0xe/0x30 [ 15.473739][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.473743][ C0] [ 15.473744][ C0] [ 15.473745][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.473748][ C0] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.473752][ C0] 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 [ 15.473755][ C0] RSP: 0018:ffffffffa7807df8 EFLAGS: 00000246 [ 15.473758][ C0] RAX: 0000000000066f27 RBX: 1ffffffff4f00fc3 RCX: ffffffffa6b905d9 [ 15.473760][ C0] RDX: 0000000000000000 RSI: ffffffffa768f4e4 RDI: ffffffffa6e53be0 [ 15.473762][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005e866fa [ 15.473763][ C0] R10: ffff88802f4337d3 R11: ffffffffa7811288 R12: 0000000000000000 [ 15.473765][ C0] R13: ffffffffa781f240 R14: dffffc0000000000 R15: 0000000000014770 [ 15.473769][ C0] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.473773][ C0] default_idle+0x9/0x10 [ 15.473776][ C0] default_idle_call+0x6d/0xb0 [ 15.473778][ C0] cpuidle_idle_call+0x26f/0x3a0 [ 15.473782][ C0] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.473785][ C0] ? tsc_verify_tsc_adjust+0x98/0x310 [ 15.473790][ C0] do_idle+0xf6/0x160 [ 15.473794][ C0] cpu_startup_entry+0x54/0x60 [ 15.473796][ C0] rest_init+0x14b/0x260 [ 15.473800][ C0] start_kernel+0x350/0x410 [ 15.473804][ C0] x86_64_start_reservations+0x18/0x30 [ 15.473808][ C0] x86_64_start_kernel+0xf8/0x150 [ 15.473812][ C0] common_startup_64+0x13e/0x148 [ 15.473821][ C0] [ 17.316403][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 17.316782][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 32, name: ksoftirqd/3 [ 17.317057][ C3] preempt_count: 100, expected: 0 [ 17.317214][ C3] RCU nest depth: 0, expected: 0 [ 17.317387][ C3] INFO: lockdep is turned off. [ 17.317546][ C3] Preemption disabled at: [ 17.317548][ C3] [] handle_softirqs+0xe5/0x620 [ 17.317878][ C3] CPU: 3 UID: 0 PID: 32 Comm: ksoftirqd/3 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 17.317883][ C3] Tainted: [W]=WARN [ 17.317885][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.317887][ C3] Call Trace: [ 17.317889][ C3] [ 17.317891][ C3] dump_stack_lvl+0xb0/0xd0 [ 17.317898][ C3] __might_resched+0x360/0x5a0 [ 17.317905][ C3] down_write+0x72/0x210 [ 17.317910][ C3] ? __pfx_down_write+0x10/0x10 [ 17.317913][ C3] ? simple_recursive_removal+0x33/0x610 [ 17.317917][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.317922][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.317928][ C3] simple_recursive_removal+0x6a/0x610 [ 17.317931][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 17.317934][ C3] ? __pfx_remove_one+0x10/0x10 [ 17.317940][ C3] debugfs_remove+0x44/0x70 [ 17.317943][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 17.317949][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.317952][ C3] ? __sk_destruct+0x383/0x780 [ 17.317958][ C3] ? rcu_do_batch+0x34c/0xf20 [ 17.317961][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.317965][ C3] ? smpboot_thread_fn+0x30a/0x960 [ 17.317969][ C3] ? kthread+0x37e/0x600 [ 17.317972][ C3] ? ret_from_fork+0x240/0x320 [ 17.317976][ C3] ? ret_from_fork_asm+0x1a/0x30 [ 17.317981][ C3] ? migrate_enable+0x1f2/0x270 [ 17.317985][ C3] ? __pfx_migrate_enable+0x10/0x10 [ 17.317988][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.317993][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.317997][ C3] __put_net+0x19/0x60 [ 17.318001][ C3] __sk_destruct+0x58a/0x780 [ 17.318005][ C3] ? rcu_do_batch+0x34a/0xf20 [ 17.318007][ C3] rcu_do_batch+0x34c/0xf20 [ 17.318011][ C3] ? __schedule+0x87b/0x1b00 [ 17.318017][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.318021][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.318024][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 17.318031][ C3] rcu_core+0x2bb/0x500 [ 17.318036][ C3] handle_softirqs+0x218/0x620 [ 17.318040][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 17.318043][ C3] run_ksoftirqd+0x3f/0x70 [ 17.318046][ C3] smpboot_thread_fn+0x30a/0x960 [ 17.318050][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 17.318054][ C3] kthread+0x37e/0x600 [ 17.318057][ C3] ? __pfx_kthread+0x10/0x10 [ 17.318059][ C3] ? ret_from_fork+0x1b/0x320 [ 17.318061][ C3] ? __lock_release+0x5d/0x170 [ 17.318065][ C3] ? rcu_is_watching+0x12/0xc0 [ 17.318068][ C3] ? __pfx_kthread+0x10/0x10 [ 17.318071][ C3] ret_from_fork+0x240/0x320 [ 17.318074][ C3] ? __pfx_kthread+0x10/0x10 [ 17.318076][ C3] ret_from_fork_asm+0x1a/0x30 [ 17.318084][ C3]