[ 14.522785][ C3] [ 14.523038][ C3] ================================ [ 14.523227][ C3] WARNING: inconsistent lock state [ 14.523411][ C3] 6.15.0-virtme #1 Not tainted [ 14.523604][ C3] -------------------------------- [ 14.523790][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.524021][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.524252][ C3] ffffffffa8fc5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.524586][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.524769][ C3] __lock_acquire+0x20b/0x7e0 [ 14.524959][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.525147][ C3] _raw_spin_lock+0x33/0x40 [ 14.525336][ C3] simple_pin_fs+0x24/0x150 [ 14.525522][ C3] start_creating.part.0+0x52/0x310 [ 14.525708][ C3] debugfs_create_dir+0x6a/0x540 [ 14.525896][ C3] component_debug_init+0x17/0x30 [ 14.526085][ C3] do_one_initcall+0x8f/0x1e0 [ 14.526275][ C3] do_initcalls+0x176/0x280 [ 14.526462][ C3] kernel_init_freeable+0x22d/0x300 [ 14.526650][ C3] kernel_init+0x20/0x200 [ 14.526836][ C3] ret_from_fork+0x240/0x320 [ 14.527024][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.527207][ C3] irq event stamp: 271002 [ 14.527347][ C3] hardirqs last enabled at (271002): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.527716][ C3] hardirqs last disabled at (271001): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.528086][ C3] softirqs last enabled at (269616): [] handle_softirqs+0x358/0x620 [ 14.528409][ C3] softirqs last disabled at (269629): [] __irq_exit_rcu+0xfa/0x160 [ 14.528730][ C3] [ 14.528730][ C3] other info that might help us debug this: [ 14.529002][ C3] Possible unsafe locking scenario: [ 14.529002][ C3] [ 14.529278][ C3] CPU0 [ 14.529427][ C3] ---- [ 14.529567][ C3] lock(pin_fs_lock); [ 14.529710][ C3] [ 14.529849][ C3] lock(pin_fs_lock); [ 14.529992][ C3] [ 14.529992][ C3] *** DEADLOCK *** [ 14.529992][ C3] [ 14.530266][ C3] 1 lock held by swapper/3/0: [ 14.530452][ C3] #0: ffffffffa8d774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.530786][ C3] [ 14.530786][ C3] stack backtrace: [ 14.531016][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.531020][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.531022][ C3] Call Trace: [ 14.531024][ C3] [ 14.531026][ C3] dump_stack_lvl+0x82/0xd0 [ 14.531032][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.531037][ C3] mark_lock_irq+0x343/0x400 [ 14.531041][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.531046][ C3] ? save_trace+0x52/0x170 [ 14.531052][ C3] mark_lock+0x174/0x2f0 [ 14.531055][ C3] mark_usage+0x46/0x150 [ 14.531059][ C3] __lock_acquire+0x20b/0x7e0 [ 14.531062][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.531066][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.531069][ C3] ? simple_pin_fs+0x24/0x150 [ 14.531073][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.531077][ C3] ? lock_acquire+0x10c/0x170 [ 14.531080][ C3] ? simple_pin_fs+0x24/0x150 [ 14.531084][ C3] _raw_spin_lock+0x33/0x40 [ 14.531087][ C3] ? simple_pin_fs+0x24/0x150 [ 14.531090][ C3] simple_pin_fs+0x24/0x150 [ 14.531094][ C3] debugfs_remove+0x35/0x70 [ 14.531098][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.531103][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.531107][ C3] ? __sk_destruct+0x383/0x780 [ 14.531113][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.531116][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.531119][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.531122][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.531127][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.531131][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.531134][ C3] ? default_idle+0x9/0x10 [ 14.531137][ C3] ? default_idle_call+0x6d/0xb0 [ 14.531139][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.531143][ C3] ? do_idle+0xf6/0x160 [ 14.531145][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.531148][ C3] ? start_secondary+0x213/0x2a0 [ 14.531151][ C3] ? common_startup_64+0x13e/0x148 [ 14.531159][ C3] __put_net+0x19/0x60 [ 14.531162][ C3] __sk_destruct+0x58a/0x780 [ 14.531166][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.531169][ C3] rcu_do_batch+0x34c/0xf20 [ 14.531172][ C3] ? find_held_lock+0x2b/0x80 [ 14.531176][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.531179][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.531183][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.531186][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.531191][ C3] rcu_core+0x2bb/0x500 [ 14.531195][ C3] handle_softirqs+0x218/0x620 [ 14.531200][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.531203][ C3] irq_exit_rcu+0xe/0x30 [ 14.531206][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.531209][ C3] [ 14.531210][ C3] [ 14.531212][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.531215][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.531219][ 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.531221][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.531225][ C3] RAX: 0000000000041d3b RBX: 1ffff9200002afc1 RCX: ffffffffa7d905d9 [ 14.531227][ C3] RDX: 0000000000000000 RSI: ffffffffa888f4e4 RDI: ffffffffa8053be0 [ 14.531229][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.531230][ C3] R10: ffff8880361b37d3 R11: ffffffffa8a11288 R12: 0000000000000000 [ 14.531232][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.531236][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.531240][ C3] default_idle+0x9/0x10 [ 14.531243][ C3] default_idle_call+0x6d/0xb0 [ 14.531246][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.531249][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.531253][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.531257][ C3] do_idle+0xf6/0x160 [ 14.531261][ C3] cpu_startup_entry+0x54/0x60 [ 14.531264][ C3] start_secondary+0x213/0x2a0 [ 14.531267][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.531271][ C3] common_startup_64+0x13e/0x148 [ 14.531278][ C3] [ 14.546977][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.547393][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.547813][ C3] preempt_count: 101, expected: 0 [ 14.547994][ C3] RCU nest depth: 0, expected: 0 [ 14.548172][ C3] INFO: lockdep is turned off. [ 14.548350][ C3] Preemption disabled at: [ 14.548352][ C3] [<0000000000000000>] 0x0 [ 14.548671][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.548675][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.548676][ C3] Call Trace: [ 14.548678][ C3] [ 14.548680][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.548685][ C3] __might_resched+0x360/0x5a0 [ 14.548692][ C3] down_write+0x72/0x210 [ 14.548697][ C3] ? __pfx_down_write+0x10/0x10 [ 14.548700][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.548703][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.548707][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.548713][ C3] simple_recursive_removal+0x6a/0x610 [ 14.548715][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.548719][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.548724][ C3] debugfs_remove+0x44/0x70 [ 14.548727][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.548731][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.548735][ C3] ? __sk_destruct+0x383/0x780 [ 14.548739][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.548742][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.548745][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.548749][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.548753][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.548756][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.548760][ C3] ? default_idle+0x9/0x10 [ 14.548762][ C3] ? default_idle_call+0x6d/0xb0 [ 14.548765][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.548768][ C3] ? do_idle+0xf6/0x160 [ 14.548770][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.548772][ C3] ? start_secondary+0x213/0x2a0 [ 14.548775][ C3] ? common_startup_64+0x13e/0x148 [ 14.548782][ C3] __put_net+0x19/0x60 [ 14.548785][ C3] __sk_destruct+0x58a/0x780 [ 14.548789][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.548792][ C3] rcu_do_batch+0x34c/0xf20 [ 14.548795][ C3] ? find_held_lock+0x2b/0x80 [ 14.548800][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.548803][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.548807][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.548810][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.548815][ C3] rcu_core+0x2bb/0x500 [ 14.548819][ C3] handle_softirqs+0x218/0x620 [ 14.548824][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.548827][ C3] irq_exit_rcu+0xe/0x30 [ 14.548830][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.548833][ C3] [ 14.548834][ C3] [ 14.548836][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.548839][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.548842][ 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.548845][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.548848][ C3] RAX: 0000000000041d3b RBX: 1ffff9200002afc1 RCX: ffffffffa7d905d9 [ 14.548850][ C3] RDX: 0000000000000000 RSI: ffffffffa888f4e4 RDI: ffffffffa8053be0 [ 14.548851][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.548853][ C3] R10: ffff8880361b37d3 R11: ffffffffa8a11288 R12: 0000000000000000 [ 14.548855][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.548858][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.548863][ C3] default_idle+0x9/0x10 [ 14.548866][ C3] default_idle_call+0x6d/0xb0 [ 14.548868][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.548871][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.548875][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.548879][ C3] do_idle+0xf6/0x160 [ 14.548882][ C3] cpu_startup_entry+0x54/0x60 [ 14.548885][ C3] start_secondary+0x213/0x2a0 [ 14.548888][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.548892][ C3] common_startup_64+0x13e/0x148 [ 14.548899][ C3] [ 16.169889][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.170312][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 214, name: sh [ 16.170629][ C2] preempt_count: 101, expected: 0 [ 16.170837][ C2] RCU nest depth: 1, expected: 0 [ 16.171043][ C2] INFO: lockdep is turned off. [ 16.171248][ C2] Preemption disabled at: [ 16.171250][ C2] [<0000000000000000>] 0x0 [ 16.171627][ C2] CPU: 2 UID: 0 PID: 214 Comm: sh Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.171632][ C2] Tainted: [W]=WARN [ 16.171634][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.171636][ C2] Call Trace: [ 16.171637][ C2] [ 16.171639][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.171647][ C2] __might_resched+0x360/0x5a0 [ 16.171654][ C2] down_write+0x72/0x210 [ 16.171658][ C2] ? __pfx_down_write+0x10/0x10 [ 16.171661][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.171665][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.171670][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.171677][ C2] simple_recursive_removal+0x6a/0x610 [ 16.171680][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.171683][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.171689][ C2] debugfs_remove+0x44/0x70 [ 16.171692][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.171698][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.171701][ C2] ? __sk_destruct+0x383/0x780 [ 16.171707][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.171710][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.171713][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.171718][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.171723][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.171727][ C2] ? zap_present_ptes.constprop.0+0x678/0x16a0 [ 16.171732][ C2] ? zap_pte_range+0x278/0xa10 [ 16.171735][ C2] ? zap_p4d_range+0x325/0x500 [ 16.171738][ C2] ? unmap_page_range+0x2cc/0x700 [ 16.171741][ C2] ? unmap_vmas+0x1c9/0x3a0 [ 16.171743][ C2] ? exit_mmap+0x15c/0x800 [ 16.171747][ C2] ? mmput+0xb8/0x3f0 [ 16.171751][ C2] ? exit_mm+0x146/0x1d0 [ 16.171755][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.171759][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.171764][ C2] __put_net+0x19/0x60 [ 16.171768][ C2] __sk_destruct+0x58a/0x780 [ 16.171772][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.171775][ C2] rcu_do_batch+0x34c/0xf20 [ 16.171779][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.171782][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.171786][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.171793][ C2] rcu_core+0x2bb/0x500 [ 16.171797][ C2] handle_softirqs+0x218/0x620 [ 16.171803][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.171806][ C2] irq_exit_rcu+0xe/0x30 [ 16.171808][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.171813][ C2] [ 16.171814][ C2] [ 16.171815][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.171818][ C2] RIP: 0010:zap_present_ptes.constprop.0+0x678/0x16a0 [ 16.171822][ C2] Code: 80 3c 02 00 0f 85 95 0c 00 00 48 8b 03 a8 40 0f 85 88 03 00 00 48 8b 04 24 be 04 00 00 00 4c 8d 68 30 4c 89 ef e8 c8 e7 12 00 <4c> 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 14 02 4c [ 16.171825][ C2] RSP: 0018:ffffc900009c7800 EFLAGS: 00000246 [ 16.171828][ C2] RAX: 0000000000000001 RBX: ffffea0000c63e80 RCX: ffffffffa5be9a28 [ 16.171831][ C2] RDX: fffff9400018c7d7 RSI: 0000000000000004 RDI: ffffea0000c63eb0 [ 16.171832][ C2] RBP: ffffc900009c7d60 R08: 0000000000000000 R09: fffff9400018c7d6 [ 16.171834][ C2] R10: ffffea0000c63eb3 R11: dffffc0000000000 R12: 00007f63d0b8a000 [ 16.171836][ C2] R13: ffffea0000c63eb0 R14: ffffc900009c7d80 R15: ffff888009cacac0 [ 16.171839][ C2] ? zap_present_ptes.constprop.0+0x678/0x16a0 [ 16.171847][ C2] zap_pte_range+0x278/0xa10 [ 16.171854][ C2] ? __mod_node_page_state+0xe4/0x1d0 [ 16.171858][ C2] ? __pfx_zap_pte_range+0x10/0x10 [ 16.171864][ C2] ? mas_next_node+0x1d8/0x1180 [ 16.171869][ C2] zap_p4d_range+0x325/0x500 [ 16.171875][ C2] unmap_page_range+0x2cc/0x700 [ 16.171880][ C2] unmap_vmas+0x1c9/0x3a0 [ 16.171884][ C2] ? __pfx_unmap_vmas+0x10/0x10 [ 16.171888][ C2] ? __pfx_free_ldt_pgtables+0x10/0x10 [ 16.171892][ C2] ? mtree_range_walk+0x200/0xaa0 [ 16.171896][ C2] ? mas_next_slot+0x2b1/0xf40 [ 16.171903][ C2] exit_mmap+0x15c/0x800 [ 16.171907][ C2] ? trace_contention_end+0xdc/0x140 [ 16.171911][ C2] ? __pfx_exit_mmap+0x10/0x10 [ 16.171915][ C2] ? __mutex_lock+0x19c/0xcd0 [ 16.171919][ C2] ? lock_release+0x13/0xc0 [ 16.171922][ C2] ? __mutex_unlock_slowpath+0x144/0x400 [ 16.171930][ C2] mmput+0xb8/0x3f0 [ 16.171934][ C2] exit_mm+0x146/0x1d0 [ 16.171937][ C2] do_exit+0x433/0xc20 [ 16.171942][ C2] do_group_exit+0xb8/0x260 [ 16.171946][ C2] __x64_sys_exit_group+0x3e/0x50 [ 16.171949][ C2] x64_sys_call+0xf76/0x18a0 [ 16.171954][ C2] do_syscall_64+0xc1/0x380 [ 16.171958][ C2] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 16.171961][ C2] RIP: 0033:0x7f63d0a8aabd [ 16.171963][ C2] Code: Unable to access opcode bytes at 0x7f63d0a8aa93. [ 16.171964][ C2] RSP: 002b:00007ffc2a3ad6b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 16.171967][ C2] RAX: ffffffffffffffda RBX: 00007f63d0b679c0 RCX: 00007f63d0a8aabd [ 16.171969][ C2] RDX: 00000000000000e7 RSI: ffffffffffffff80 RDI: 0000000000000000 [ 16.171971][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000030 [ 16.171973][ C2] R10: 00007ffc2a3ad540 R11: 0000000000000246 R12: 00007f63d0b679c0 [ 16.171974][ C2] R13: 00007f63d0b6cee0 R14: 0000000000000001 R15: 00007f63d0b6cec8 [ 16.171980][ C2]