[ 15.121468][ C3] [ 15.121623][ C3] ================================ [ 15.121816][ C3] WARNING: inconsistent lock state [ 15.122019][ C3] 6.15.0-rc7-virtme #1 Not tainted [ 15.122206][ C3] -------------------------------- [ 15.122391][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 15.122627][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 15.122865][ C3] ffffffffaa9bff78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 15.123208][ C3] {SOFTIRQ-ON-W} state was registered at: [ 15.123392][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.123586][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.123772][ C3] _raw_spin_lock+0x33/0x40 [ 15.123961][ C3] simple_pin_fs+0x24/0x150 [ 15.124147][ C3] start_creating.part.0+0x3f/0x2f0 [ 15.124334][ C3] debugfs_create_dir+0x6a/0x540 [ 15.124523][ C3] component_debug_init+0x17/0x30 [ 15.124711][ C3] do_one_initcall+0x8f/0x1e0 [ 15.124902][ C3] do_initcalls+0x176/0x280 [ 15.125094][ C3] kernel_init_freeable+0x22d/0x300 [ 15.125281][ C3] kernel_init+0x20/0x200 [ 15.125468][ C3] ret_from_fork+0x31/0x70 [ 15.125657][ C3] ret_from_fork_asm+0x1a/0x30 [ 15.125843][ C3] irq event stamp: 266950 [ 15.125989][ C3] hardirqs last enabled at (266950): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.126366][ C3] hardirqs last disabled at (266949): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 15.126743][ C3] softirqs last enabled at (266264): [] handle_softirqs+0x358/0x620 [ 15.127070][ C3] softirqs last disabled at (266385): [] __irq_exit_rcu+0xfa/0x160 [ 15.127400][ C3] [ 15.127400][ C3] other info that might help us debug this: [ 15.127685][ C3] Possible unsafe locking scenario: [ 15.127685][ C3] [ 15.127960][ C3] CPU0 [ 15.128101][ C3] ---- [ 15.128240][ C3] lock(pin_fs_lock); [ 15.128387][ C3] [ 15.128534][ C3] lock(pin_fs_lock); [ 15.128676][ C3] [ 15.128676][ C3] *** DEADLOCK *** [ 15.128676][ C3] [ 15.128950][ C3] 1 lock held by swapper/3/0: [ 15.129143][ C3] #0: ffffffffaa7749c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 15.129483][ C3] [ 15.129483][ C3] stack backtrace: [ 15.129714][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.129719][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.129721][ C3] Call Trace: [ 15.129723][ C3] [ 15.129726][ C3] dump_stack_lvl+0x82/0xd0 [ 15.129733][ C3] print_usage_bug.part.0+0x25f/0x360 [ 15.129738][ C3] mark_lock_irq+0x343/0x400 [ 15.129743][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 15.129750][ C3] ? save_trace+0x52/0x170 [ 15.129754][ C3] mark_lock+0x174/0x2f0 [ 15.129759][ C3] mark_usage+0x46/0x150 [ 15.129762][ C3] __lock_acquire+0x3eb/0x9d0 [ 15.129768][ C3] lock_acquire.part.0+0xb6/0x240 [ 15.129770][ C3] ? simple_pin_fs+0x24/0x150 [ 15.129773][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.129780][ C3] ? lock_acquire+0x10c/0x170 [ 15.129782][ C3] ? simple_pin_fs+0x24/0x150 [ 15.129785][ C3] _raw_spin_lock+0x33/0x40 [ 15.129789][ C3] ? simple_pin_fs+0x24/0x150 [ 15.129791][ C3] simple_pin_fs+0x24/0x150 [ 15.129794][ C3] debugfs_remove+0x35/0x70 [ 15.129797][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.129803][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.129806][ C3] ? __sk_destruct+0x383/0x780 [ 15.129813][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.129816][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.129819][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.129822][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.129826][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.129830][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.129833][ C3] ? default_idle+0x9/0x10 [ 15.129835][ C3] ? default_idle_call+0x6d/0xb0 [ 15.129838][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.129843][ C3] ? do_idle+0xf6/0x160 [ 15.129846][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.129849][ C3] ? start_secondary+0x213/0x2a0 [ 15.129853][ C3] ? common_startup_64+0x13e/0x148 [ 15.129859][ C3] __put_net+0x19/0x60 [ 15.129864][ C3] __sk_destruct+0x58a/0x780 [ 15.129867][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.129870][ C3] rcu_do_batch+0x34f/0xf20 [ 15.129874][ C3] ? find_held_lock+0x2b/0x80 [ 15.129878][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.129882][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.129886][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.129890][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.129895][ C3] rcu_core+0x2bb/0x500 [ 15.129899][ C3] handle_softirqs+0x218/0x620 [ 15.129904][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.129906][ C3] irq_exit_rcu+0xe/0x30 [ 15.129909][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.129912][ C3] [ 15.129913][ C3] [ 15.129915][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.129917][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.129922][ C3] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.129925][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 15.129928][ C3] RAX: 000000000004108f RBX: 1ffff9200002afc1 RCX: ffffffffa975ba19 [ 15.129930][ C3] RDX: 0000000000000000 RSI: ffffffffaa287785 RDI: ffffffffa9a51260 [ 15.129932][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 15.129934][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.129935][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 15.129939][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.129944][ C3] default_idle+0x9/0x10 [ 15.129947][ C3] default_idle_call+0x6d/0xb0 [ 15.129949][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.129953][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.129958][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.129962][ C3] do_idle+0xf6/0x160 [ 15.129966][ C3] cpu_startup_entry+0x54/0x60 [ 15.129970][ C3] start_secondary+0x213/0x2a0 [ 15.129974][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.129979][ C3] common_startup_64+0x13e/0x148 [ 15.129985][ C3] [ 15.144796][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 15.145102][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 15.145406][ C3] preempt_count: 101, expected: 0 [ 15.145579][ C3] RCU nest depth: 0, expected: 0 [ 15.145762][ C3] INFO: lockdep is turned off. [ 15.145938][ C3] Preemption disabled at: [ 15.145940][ C3] [<0000000000000000>] 0x0 [ 15.146255][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 15.146260][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 15.146261][ C3] Call Trace: [ 15.146263][ C3] [ 15.146265][ C3] dump_stack_lvl+0xb0/0xd0 [ 15.146273][ C3] __might_resched+0x360/0x5a0 [ 15.146281][ C3] down_write+0x72/0x210 [ 15.146286][ C3] ? __pfx_down_write+0x10/0x10 [ 15.146289][ C3] ? simple_recursive_removal+0x3a/0x860 [ 15.146295][ C3] ? rcu_is_watching+0x12/0xc0 [ 15.146302][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.146307][ C3] simple_recursive_removal+0x166/0x860 [ 15.146310][ C3] ? __pfx_remove_one+0x10/0x10 [ 15.146314][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 15.146319][ C3] debugfs_remove+0x44/0x70 [ 15.146322][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 15.146327][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 15.146330][ C3] ? __sk_destruct+0x383/0x780 [ 15.146335][ C3] ? rcu_do_batch+0x34f/0xf20 [ 15.146340][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 15.146343][ C3] ? irq_exit_rcu+0xe/0x30 [ 15.146347][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.146352][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.146356][ C3] ? pv_native_safe_halt+0xf/0x20 [ 15.146359][ C3] ? default_idle+0x9/0x10 [ 15.146362][ C3] ? default_idle_call+0x6d/0xb0 [ 15.146364][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 15.146369][ C3] ? do_idle+0xf6/0x160 [ 15.146372][ C3] ? cpu_startup_entry+0x54/0x60 [ 15.146375][ C3] ? start_secondary+0x213/0x2a0 [ 15.146382][ C3] ? common_startup_64+0x13e/0x148 [ 15.146388][ C3] __put_net+0x19/0x60 [ 15.146392][ C3] __sk_destruct+0x58a/0x780 [ 15.146396][ C3] ? rcu_do_batch+0x34a/0xf20 [ 15.146399][ C3] rcu_do_batch+0x34f/0xf20 [ 15.146403][ C3] ? find_held_lock+0x2b/0x80 [ 15.146408][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 15.146411][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 15.146416][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 15.146420][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 15.146424][ C3] rcu_core+0x2bb/0x500 [ 15.146429][ C3] handle_softirqs+0x218/0x620 [ 15.146434][ C3] __irq_exit_rcu+0xfa/0x160 [ 15.146437][ C3] irq_exit_rcu+0xe/0x30 [ 15.146439][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 15.146443][ C3] [ 15.146444][ C3] [ 15.146445][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 15.146448][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 15.146452][ C3] Code: 60 b8 00 e9 c3 57 02 00 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 c3 75 13 00 fb f4 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 [ 15.146455][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 15.146458][ C3] RAX: 000000000004108f RBX: 1ffff9200002afc1 RCX: ffffffffa975ba19 [ 15.146460][ C3] RDX: 0000000000000000 RSI: ffffffffaa287785 RDI: ffffffffa9a51260 [ 15.146462][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c3667a [ 15.146464][ C3] R10: ffff8880361b33d3 R11: 0000000000000000 R12: 0000000000000000 [ 15.146465][ C3] R13: ffff888001bf4640 R14: dffffc0000000000 R15: 0000000000000000 [ 15.146469][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 15.146475][ C3] default_idle+0x9/0x10 [ 15.146477][ C3] default_idle_call+0x6d/0xb0 [ 15.146480][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 15.146484][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 15.146488][ C3] ? tsc_verify_tsc_adjust+0x98/0x300 [ 15.146493][ C3] do_idle+0xf6/0x160 [ 15.146497][ C3] cpu_startup_entry+0x54/0x60 [ 15.146501][ C3] start_secondary+0x213/0x2a0 [ 15.146504][ C3] ? __pfx_start_secondary+0x10/0x10 [ 15.146509][ C3] common_startup_64+0x13e/0x148 [ 15.146516][ C3] [ 16.786272][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.786656][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 215, name: sh [ 16.786941][ C3] preempt_count: 101, expected: 0 [ 16.787140][ C3] RCU nest depth: 4, expected: 0 [ 16.787327][ C3] INFO: lockdep is turned off. [ 16.787511][ C3] Preemption disabled at: [ 16.787513][ C3] [<0000000000000000>] 0x0 [ 16.787851][ C3] CPU: 3 UID: 0 PID: 215 Comm: sh Tainted: G W 6.15.0-rc7-virtme #1 PREEMPT(full) [ 16.787856][ C3] Tainted: [W]=WARN [ 16.787858][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.787861][ C3] Call Trace: [ 16.787863][ C3] [ 16.787865][ C3] dump_stack_lvl+0xb0/0xd0 [ 16.787875][ C3] __might_resched+0x360/0x5a0 [ 16.787883][ C3] down_write+0x72/0x210 [ 16.787889][ C3] ? __pfx_down_write+0x10/0x10 [ 16.787892][ C3] ? simple_recursive_removal+0x3a/0x860 [ 16.787899][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.787907][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.787913][ C3] simple_recursive_removal+0x166/0x860 [ 16.787920][ C3] ? __pfx_remove_one+0x10/0x10 [ 16.787925][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 16.787930][ C3] debugfs_remove+0x44/0x70 [ 16.787933][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 16.787940][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.787943][ C3] ? __sk_destruct+0x383/0x780 [ 16.787950][ C3] ? rcu_do_batch+0x34f/0xf20 [ 16.787955][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.787958][ C3] ? irq_exit_rcu+0xe/0x30 [ 16.787963][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.787969][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.787973][ C3] ? page_ref_add_unless.constprop.0+0x80/0x280 [ 16.787981][ C3] ? next_uptodate_folio+0x7b/0x340 [ 16.787984][ C3] ? filemap_map_pages+0x506/0xf90 [ 16.787987][ C3] ? do_fault_around+0x2a5/0x4c0 [ 16.787993][ C3] ? do_pte_missing+0x810/0xca0 [ 16.787997][ C3] ? handle_pte_fault+0x3e0/0x690 [ 16.788000][ C3] ? __handle_mm_fault+0x3fc/0x5e0 [ 16.788002][ C3] ? handle_mm_fault+0x200/0x420 [ 16.788005][ C3] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.788010][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.788015][ C3] __put_net+0x19/0x60 [ 16.788019][ C3] __sk_destruct+0x58a/0x780 [ 16.788023][ C3] ? rcu_do_batch+0x34a/0xf20 [ 16.788026][ C3] rcu_do_batch+0x34f/0xf20 [ 16.788031][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.788035][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.788038][ C3] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.788045][ C3] rcu_core+0x2bb/0x500 [ 16.788050][ C3] handle_softirqs+0x218/0x620 [ 16.788054][ C3] __irq_exit_rcu+0xfa/0x160 [ 16.788057][ C3] irq_exit_rcu+0xe/0x30 [ 16.788059][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.788063][ C3] [ 16.788064][ C3] [ 16.788066][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.788068][ C3] RIP: 0010:page_ref_add_unless.constprop.0+0x80/0x280 [ 16.788073][ C3] Code: 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 cb 01 00 00 8b 45 34 <85> c0 0f 84 02 01 00 00 8d 50 01 f0 0f b1 13 41 0f 94 c4 45 84 e4 [ 16.788076][ C3] RSP: 0000:ffffc900007d7998 EFLAGS: 00000246 [ 16.788080][ C3] RAX: 0000000000000001 RBX: ffffea00009b6934 RCX: ffffffffa74fa843 [ 16.788082][ C3] RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea00009b6934 [ 16.788084][ C3] RBP: ffffea00009b6900 R08: 0000000000000001 R09: fffff94000136d26 [ 16.788086][ C3] R10: ffffea00009b6937 R11: 0000000000000000 R12: dffffc0000000000 [ 16.788088][ C3] R13: ffffea00009b6900 R14: 1ffff920000faf5f R15: ffffc900007d7af8 [ 16.788092][ C3] ? page_ref_add_unless.constprop.0+0x53/0x280 [ 16.788097][ C3] ? page_ref_add_unless.constprop.0+0x53/0x280 [ 16.788100][ C3] next_uptodate_folio+0x7b/0x340 [ 16.788105][ C3] filemap_map_pages+0x506/0xf90 [ 16.788113][ C3] ? __pfx_filemap_map_pages+0x10/0x10 [ 16.788118][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.788122][ C3] ? lock_acquire+0x10c/0x170 [ 16.788124][ C3] ? do_fault_around+0x1e9/0x4c0 [ 16.788128][ C3] ? __pfx_filemap_map_pages+0x10/0x10 [ 16.788131][ C3] do_fault_around+0x2a5/0x4c0 [ 16.788134][ C3] ? ___pte_offset_map+0x2c/0x2a0 [ 16.788141][ C3] do_pte_missing+0x810/0xca0 [ 16.788144][ C3] ? trace_lock_release+0x2a/0xd0 [ 16.788151][ C3] handle_pte_fault+0x3e0/0x690 [ 16.788155][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.788159][ C3] ? __pfx_handle_pte_fault+0x10/0x10 [ 16.788162][ C3] ? __might_fault+0xc3/0x170 [ 16.788165][ C3] ? __might_fault+0x11b/0x170 [ 16.788168][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.788171][ C3] ? trace_lock_release+0x2a/0xd0 [ 16.788175][ C3] __handle_mm_fault+0x3fc/0x5e0 [ 16.788178][ C3] ? __pfx___handle_mm_fault+0x10/0x10 [ 16.788181][ C3] ? rcu_read_unlock+0x18/0x70 [ 16.788187][ C3] ? __pfx_lock_vma_under_rcu+0x10/0x10 [ 16.788191][ C3] handle_mm_fault+0x200/0x420 [ 16.788194][ C3] ? __pfx_handle_mm_fault+0x10/0x10 [ 16.788199][ C3] do_user_addr_fault+0x576/0xe00 [ 16.788206][ C3] ? rcu_is_watching+0x12/0xc0 [ 16.788211][ C3] exc_page_fault+0x5e/0xd0 [ 16.788215][ C3] asm_exc_page_fault+0x26/0x30 [ 16.788217][ C3] RIP: 0033:0x562253ef1360 [ 16.788220][ C3] Code: 83 f8 04 75 06 80 78 0c 7f 75 df 48 85 d2 74 03 48 89 02 44 89 d8 5b c3 66 90 41 83 f8 01 75 e5 eb e9 b8 ff ff ff ff c3 66 90 0f 1e fa 41 54 41 89 f4 55 89 fd 53 48 89 d3 48 83 ec 10 64 48 [ 16.788222][ C3] RSP: 002b:00007ffcdd258ac8 EFLAGS: 00010202 [ 16.788225][ C3] RAX: 0000000000000000 RBX: 00000000000000d9 RCX: 0000000000000000 [ 16.788226][ C3] RDX: 00007ffcdd258af4 RSI: 0000000000000001 RDI: 00000000000000d9 [ 16.788228][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 [ 16.788229][ C3] R10: 0000000000000000 R11: 0000000000000008 R12: 0000000000000000 [ 16.788231][ C3] R13: 0000000000000000 R14: 00007ffcdd258b50 R15: 0000000000000001 [ 16.788237][ C3] [ 16.864823][ T186] make (186) used greatest stack depth: 24448 bytes left