[ 14.780474][ C3] [ 14.780677][ C3] ================================ [ 14.780875][ C3] WARNING: inconsistent lock state [ 14.781059][ C3] 6.15.0-virtme #1 Not tainted [ 14.781243][ C3] -------------------------------- [ 14.781425][ C3] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 14.781650][ C3] swapper/3/0 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 14.781883][ C3] ffffffffb09c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 14.782214][ C3] {SOFTIRQ-ON-W} state was registered at: [ 14.782394][ C3] __lock_acquire+0x20b/0x7e0 [ 14.782581][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.782763][ C3] _raw_spin_lock+0x33/0x40 [ 14.782949][ C3] simple_pin_fs+0x24/0x150 [ 14.783152][ C3] start_creating.part.0+0x52/0x310 [ 14.783343][ C3] debugfs_create_dir+0x6a/0x540 [ 14.783529][ C3] component_debug_init+0x17/0x30 [ 14.783717][ C3] do_one_initcall+0x8f/0x1e0 [ 14.783907][ C3] do_initcalls+0x176/0x280 [ 14.784096][ C3] kernel_init_freeable+0x22d/0x300 [ 14.784304][ C3] kernel_init+0x20/0x200 [ 14.784486][ C3] ret_from_fork+0x240/0x320 [ 14.784669][ C3] ret_from_fork_asm+0x1a/0x30 [ 14.784855][ C3] irq event stamp: 255370 [ 14.784993][ C3] hardirqs last enabled at (255370): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.785354][ C3] hardirqs last disabled at (255369): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 14.785717][ C3] softirqs last enabled at (253424): [] handle_softirqs+0x358/0x620 [ 14.786034][ C3] softirqs last disabled at (253437): [] __irq_exit_rcu+0xfa/0x160 [ 14.786348][ C3] [ 14.786348][ C3] other info that might help us debug this: [ 14.786614][ C3] Possible unsafe locking scenario: [ 14.786614][ C3] [ 14.786875][ C3] CPU0 [ 14.787009][ C3] ---- [ 14.787149][ C3] lock(pin_fs_lock); [ 14.787287][ C3] [ 14.787422][ C3] lock(pin_fs_lock); [ 14.787562][ C3] [ 14.787562][ C3] *** DEADLOCK *** [ 14.787562][ C3] [ 14.787831][ C3] 1 lock held by swapper/3/0: [ 14.788015][ C3] #0: ffffffffb07774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 14.788339][ C3] [ 14.788339][ C3] stack backtrace: [ 14.788565][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.788569][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.788572][ C3] Call Trace: [ 14.788574][ C3] [ 14.788576][ C3] dump_stack_lvl+0x82/0xd0 [ 14.788584][ C3] print_usage_bug.part.0+0x25f/0x360 [ 14.788589][ C3] mark_lock_irq+0x343/0x400 [ 14.788593][ C3] ? __pfx_unwind_next_frame+0x10/0x10 [ 14.788599][ C3] ? save_trace+0x52/0x170 [ 14.788615][ C3] mark_lock+0x174/0x2f0 [ 14.788619][ C3] mark_usage+0x46/0x150 [ 14.788621][ C3] __lock_acquire+0x20b/0x7e0 [ 14.788625][ C3] ? __lock_acquire+0x44d/0x7e0 [ 14.788629][ C3] lock_acquire.part.0+0xb6/0x240 [ 14.788632][ C3] ? simple_pin_fs+0x24/0x150 [ 14.788653][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.788658][ C3] ? lock_acquire+0x10c/0x170 [ 14.788661][ C3] ? simple_pin_fs+0x24/0x150 [ 14.788665][ C3] _raw_spin_lock+0x33/0x40 [ 14.788669][ C3] ? simple_pin_fs+0x24/0x150 [ 14.788672][ C3] simple_pin_fs+0x24/0x150 [ 14.788676][ C3] debugfs_remove+0x35/0x70 [ 14.788679][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.788687][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.788690][ C3] ? __sk_destruct+0x383/0x780 [ 14.788698][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.788700][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.788704][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.788707][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.788713][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.788718][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.788721][ C3] ? default_idle+0x9/0x10 [ 14.788724][ C3] ? default_idle_call+0x6d/0xb0 [ 14.788726][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.788730][ C3] ? do_idle+0xf6/0x160 [ 14.788733][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.788735][ C3] ? start_secondary+0x213/0x2a0 [ 14.788740][ C3] ? common_startup_64+0x13e/0x148 [ 14.788749][ C3] __put_net+0x19/0x60 [ 14.788754][ C3] __sk_destruct+0x58a/0x780 [ 14.788758][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.788760][ C3] rcu_do_batch+0x34c/0xf20 [ 14.788764][ C3] ? find_held_lock+0x2b/0x80 [ 14.788768][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.788771][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.788775][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.788778][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.788783][ C3] rcu_core+0x2bb/0x500 [ 14.788788][ C3] handle_softirqs+0x218/0x620 [ 14.788794][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.788797][ C3] irq_exit_rcu+0xe/0x30 [ 14.788800][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.788803][ C3] [ 14.788804][ C3] [ 14.788806][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.788809][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.788813][ 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 [ 14.788816][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.788819][ C3] RAX: 000000000003ddfb RBX: 1ffff9200002afc1 RCX: ffffffffaf78f5d9 [ 14.788821][ C3] RDX: 0000000000000000 RSI: ffffffffb028f4e4 RDI: ffffffffafa53be0 [ 14.788823][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.788825][ C3] R10: ffff8880361b37d3 R11: ffffffffb0411288 R12: 0000000000000000 [ 14.788826][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.788830][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.788835][ C3] default_idle+0x9/0x10 [ 14.788837][ C3] default_idle_call+0x6d/0xb0 [ 14.788840][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.788843][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.788847][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.788851][ C3] do_idle+0xf6/0x160 [ 14.788855][ C3] cpu_startup_entry+0x54/0x60 [ 14.788858][ C3] start_secondary+0x213/0x2a0 [ 14.788860][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.788865][ C3] common_startup_64+0x13e/0x148 [ 14.788872][ C3] [ 14.803595][ C3] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 14.803901][ C3] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/3 [ 14.804207][ C3] preempt_count: 101, expected: 0 [ 14.804378][ C3] RCU nest depth: 0, expected: 0 [ 14.804552][ C3] INFO: lockdep is turned off. [ 14.804732][ C3] Preemption disabled at: [ 14.804734][ C3] [<0000000000000000>] 0x0 [ 14.805038][ C3] CPU: 3 UID: 0 PID: 0 Comm: swapper/3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 14.805042][ C3] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.805044][ C3] Call Trace: [ 14.805046][ C3] [ 14.805048][ C3] dump_stack_lvl+0xb0/0xd0 [ 14.805056][ C3] __might_resched+0x360/0x5a0 [ 14.805064][ C3] down_write+0x72/0x210 [ 14.805069][ C3] ? __pfx_down_write+0x10/0x10 [ 14.805072][ C3] ? simple_recursive_removal+0x33/0x610 [ 14.805077][ C3] ? rcu_is_watching+0x12/0xc0 [ 14.805082][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.805089][ C3] simple_recursive_removal+0x6a/0x610 [ 14.805092][ C3] ? do_raw_spin_unlock+0x58/0x220 [ 14.805095][ C3] ? __pfx_remove_one+0x10/0x10 [ 14.805101][ C3] debugfs_remove+0x44/0x70 [ 14.805104][ C3] ref_tracker_dir_exit+0xcf/0x740 [ 14.805110][ C3] ? __pfx_ref_tracker_free+0x10/0x10 [ 14.805114][ C3] ? __sk_destruct+0x383/0x780 [ 14.805120][ C3] ? rcu_do_batch+0x34c/0xf20 [ 14.805123][ C3] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 14.805127][ C3] ? irq_exit_rcu+0xe/0x30 [ 14.805132][ C3] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.805138][ C3] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.805143][ C3] ? pv_native_safe_halt+0xf/0x20 [ 14.805146][ C3] ? default_idle+0x9/0x10 [ 14.805149][ C3] ? default_idle_call+0x6d/0xb0 [ 14.805152][ C3] ? cpuidle_idle_call+0x26f/0x3a0 [ 14.805155][ C3] ? do_idle+0xf6/0x160 [ 14.805157][ C3] ? cpu_startup_entry+0x54/0x60 [ 14.805159][ C3] ? start_secondary+0x213/0x2a0 [ 14.805164][ C3] ? common_startup_64+0x13e/0x148 [ 14.805171][ C3] __put_net+0x19/0x60 [ 14.805175][ C3] __sk_destruct+0x58a/0x780 [ 14.805179][ C3] ? rcu_do_batch+0x34a/0xf20 [ 14.805181][ C3] rcu_do_batch+0x34c/0xf20 [ 14.805185][ C3] ? find_held_lock+0x2b/0x80 [ 14.805191][ C3] ? __pfx_rcu_do_batch+0x10/0x10 [ 14.805194][ C3] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 14.805199][ C3] ? lockdep_hardirqs_on+0x7c/0x110 [ 14.805202][ C3] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 14.805207][ C3] rcu_core+0x2bb/0x500 [ 14.805212][ C3] handle_softirqs+0x218/0x620 [ 14.805218][ C3] __irq_exit_rcu+0xfa/0x160 [ 14.805221][ C3] irq_exit_rcu+0xe/0x30 [ 14.805224][ C3] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 14.805228][ C3] [ 14.805229][ C3] [ 14.805230][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 14.805233][ C3] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 14.805237][ 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 [ 14.805239][ C3] RSP: 0018:ffffc90000157de8 EFLAGS: 00000242 [ 14.805242][ C3] RAX: 000000000003ddfb RBX: 1ffff9200002afc1 RCX: ffffffffaf78f5d9 [ 14.805244][ C3] RDX: 0000000000000000 RSI: ffffffffb028f4e4 RDI: ffffffffafa53be0 [ 14.805246][ C3] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c366fa [ 14.805247][ C3] R10: ffff8880361b37d3 R11: ffffffffb0411288 R12: 0000000000000000 [ 14.805249][ C3] R13: ffff888001bf45c0 R14: dffffc0000000000 R15: 0000000000000000 [ 14.805253][ C3] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 14.805257][ C3] default_idle+0x9/0x10 [ 14.805260][ C3] default_idle_call+0x6d/0xb0 [ 14.805262][ C3] cpuidle_idle_call+0x26f/0x3a0 [ 14.805266][ C3] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 14.805270][ C3] ? tsc_verify_tsc_adjust+0x98/0x310 [ 14.805274][ C3] do_idle+0xf6/0x160 [ 14.805277][ C3] cpu_startup_entry+0x54/0x60 [ 14.805280][ C3] start_secondary+0x213/0x2a0 [ 14.805283][ C3] ? __pfx_start_secondary+0x10/0x10 [ 14.805287][ C3] common_startup_64+0x13e/0x148 [ 14.805294][ C3] [ 16.468186][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 16.468555][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/2 [ 16.468892][ C2] preempt_count: 101, expected: 0 [ 16.469079][ C2] RCU nest depth: 0, expected: 0 [ 16.469268][ C2] INFO: lockdep is turned off. [ 16.469453][ C2] Preemption disabled at: [ 16.469455][ C2] [<0000000000000000>] 0x0 [ 16.469811][ C2] CPU: 2 UID: 0 PID: 0 Comm: swapper/2 Tainted: G W 6.15.0-virtme #1 PREEMPT(full) [ 16.469817][ C2] Tainted: [W]=WARN [ 16.469818][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 16.469821][ C2] Call Trace: [ 16.469823][ C2] [ 16.469825][ C2] dump_stack_lvl+0xb0/0xd0 [ 16.469836][ C2] __might_resched+0x360/0x5a0 [ 16.469845][ C2] down_write+0x72/0x210 [ 16.469851][ C2] ? __pfx_down_write+0x10/0x10 [ 16.469854][ C2] ? simple_recursive_removal+0x33/0x610 [ 16.469859][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.469866][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.469873][ C2] simple_recursive_removal+0x6a/0x610 [ 16.469875][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 16.469879][ C2] ? __pfx_remove_one+0x10/0x10 [ 16.469886][ C2] debugfs_remove+0x44/0x70 [ 16.469889][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 16.469897][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 16.469900][ C2] ? __sk_destruct+0x383/0x780 [ 16.469908][ C2] ? rcu_do_batch+0x34c/0xf20 [ 16.469911][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 16.469915][ C2] ? irq_exit_rcu+0xe/0x30 [ 16.469921][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.469927][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.469932][ C2] ? pv_native_safe_halt+0xf/0x20 [ 16.469935][ C2] ? default_idle+0x9/0x10 [ 16.469938][ C2] ? default_idle_call+0x6d/0xb0 [ 16.469941][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.469945][ C2] ? do_idle+0xf6/0x160 [ 16.469947][ C2] ? cpu_startup_entry+0x54/0x60 [ 16.469950][ C2] ? start_secondary+0x213/0x2a0 [ 16.469954][ C2] ? common_startup_64+0x13e/0x148 [ 16.469961][ C2] ? bpf_sk_storage_free+0x9f/0x1c0 [ 16.469966][ C2] ? rcu_is_watching+0x12/0xc0 [ 16.469971][ C2] __put_net+0x19/0x60 [ 16.469975][ C2] __sk_destruct+0x58a/0x780 [ 16.469979][ C2] ? rcu_do_batch+0x34a/0xf20 [ 16.469981][ C2] rcu_do_batch+0x34c/0xf20 [ 16.469986][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 16.469989][ C2] ? trace_irq_enable.constprop.0+0xd4/0x130 [ 16.469997][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 16.470003][ C2] rcu_core+0x2bb/0x500 [ 16.470008][ C2] handle_softirqs+0x218/0x620 [ 16.470013][ C2] __irq_exit_rcu+0xfa/0x160 [ 16.470017][ C2] irq_exit_rcu+0xe/0x30 [ 16.470019][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 16.470023][ C2] [ 16.470024][ C2] [ 16.470025][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 16.470028][ C2] RIP: 0010:pv_native_safe_halt+0xf/0x20 [ 16.470033][ C2] 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 [ 16.470036][ C2] RSP: 0018:ffffc90000147de8 EFLAGS: 00000246 [ 16.470040][ C2] RAX: 0000000000000002 RBX: 1ffff92000028fc1 RCX: ffffffffaf78f5d9 [ 16.470042][ C2] RDX: ffffed1006c266fb RSI: ffffffffafa53b60 RDI: ffffffffacf8d18f [ 16.470044][ C2] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed1006c266fa [ 16.470046][ C2] R10: ffff8880361337d3 R11: ffffffffb312fc10 R12: 0000000000000000 [ 16.470048][ C2] R13: ffff888001bf2300 R14: dffffc0000000000 R15: 0000000000000000 [ 16.470052][ C2] ? ct_kernel_exit.constprop.0+0x109/0x160 [ 16.470055][ C2] ? cpuidle_idle_call+0x26f/0x3a0 [ 16.470059][ C2] default_idle+0x9/0x10 [ 16.470062][ C2] default_idle_call+0x6d/0xb0 [ 16.470065][ C2] cpuidle_idle_call+0x26f/0x3a0 [ 16.470068][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 16.470072][ C2] ? tsc_verify_tsc_adjust+0x98/0x310 [ 16.470076][ C2] do_idle+0xf6/0x160 [ 16.470079][ C2] cpu_startup_entry+0x54/0x60 [ 16.470082][ C2] start_secondary+0x213/0x2a0 [ 16.470085][ C2] ? __pfx_start_secondary+0x10/0x10 [ 16.470089][ C2] common_startup_64+0x13e/0x148 [ 16.470096][ C2]