[ 21.659910][ T276] MACsec IEEE 802.1AE [ 24.900478][ T290] gre: GRE over IPv4 demultiplexer driver [ 24.935502][ T290] ip_gre: GRE over IPv4 tunneling driver [ 27.649574][ T307] ip6_gre: GRE over IPv6 tunneling driver [ 30.853983][ T322] IPsec XFRM device driver [ 35.397116][ T340] ip (340) used greatest stack depth: 24352 bytes left [ 63.631213][ T451] CAN device driver interface [ 63.649464][ T451] vxcan: Virtual CAN Tunnel driver [ 83.269942][ C1] [ 83.270167][ C1] ================================ [ 83.270384][ C1] WARNING: inconsistent lock state [ 83.270591][ C1] 6.15.0-virtme #1 Not tainted [ 83.270799][ C1] -------------------------------- [ 83.271003][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 83.271256][ C1] python3/255 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 83.271520][ C1] ffffffffa13daf78 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 83.271892][ C1] {SOFTIRQ-ON-W} state was registered at: [ 83.272102][ C1] __lock_acquire+0x20b/0x7e0 [ 83.272319][ C1] lock_acquire.part.0+0xb6/0x240 [ 83.272532][ C1] _raw_spin_lock+0x33/0x40 [ 83.272746][ C1] simple_pin_fs+0x24/0x150 [ 83.272954][ C1] start_creating.part.0+0x52/0x310 [ 83.273166][ C1] debugfs_create_dir+0x6a/0x540 [ 83.273376][ C1] component_debug_init+0x17/0x30 [ 83.273592][ C1] do_one_initcall+0x8f/0x1e0 [ 83.273812][ C1] do_initcalls+0x176/0x280 [ 83.274024][ C1] kernel_init_freeable+0x22d/0x300 [ 83.274244][ C1] kernel_init+0x20/0x200 [ 83.274451][ C1] ret_from_fork+0x240/0x320 [ 83.274658][ C1] ret_from_fork_asm+0x1a/0x30 [ 83.274867][ C1] irq event stamp: 2084974 [ 83.275078][ C1] hardirqs last enabled at (2084974): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.275494][ C1] hardirqs last disabled at (2084973): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 83.275903][ C1] softirqs last enabled at (2084034): [] handle_softirqs+0x358/0x620 [ 83.276267][ C1] softirqs last disabled at (2084809): [] __irq_exit_rcu+0xfa/0x160 [ 83.276623][ C1] [ 83.276623][ C1] other info that might help us debug this: [ 83.276925][ C1] Possible unsafe locking scenario: [ 83.276925][ C1] [ 83.277222][ C1] CPU0 [ 83.277374][ C1] ---- [ 83.277532][ C1] lock(pin_fs_lock); [ 83.277689][ C1] [ 83.277842][ C1] lock(pin_fs_lock); [ 83.278000][ C1] [ 83.278000][ C1] *** DEADLOCK *** [ 83.278000][ C1] [ 83.278301][ C1] 2 locks held by python3/255: [ 83.278509][ C1] #0: ffff888009f875a0 (&mm->mmap_lock){++++}-{4:4}, at: vms_complete_munmap_vmas+0x66d/0x9c0 [ 83.278921][ C1] #1: ffffffffa118b540 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 83.279287][ C1] [ 83.279287][ C1] stack backtrace: [ 83.279540][ C1] CPU: 1 UID: 0 PID: 255 Comm: python3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 83.279544][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 83.279547][ C1] Call Trace: [ 83.279549][ C1] [ 83.279551][ C1] dump_stack_lvl+0x82/0xd0 [ 83.279559][ C1] print_usage_bug.part.0+0x25f/0x360 [ 83.279563][ C1] mark_lock_irq+0x343/0x400 [ 83.279566][ C1] ? vms_clear_ptes.part.0+0x42c/0x680 [ 83.279570][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 83.279575][ C1] ? save_trace+0x52/0x170 [ 83.279582][ C1] mark_lock+0x174/0x2f0 [ 83.279585][ C1] mark_usage+0x46/0x150 [ 83.279588][ C1] __lock_acquire+0x20b/0x7e0 [ 83.279591][ C1] ? __lock_acquire+0x44d/0x7e0 [ 83.279595][ C1] lock_acquire.part.0+0xb6/0x240 [ 83.279598][ C1] ? simple_pin_fs+0x24/0x150 [ 83.279601][ C1] ? rcu_is_watching+0x12/0xc0 [ 83.279605][ C1] ? lock_acquire+0x10c/0x170 [ 83.279607][ C1] ? simple_pin_fs+0x24/0x150 [ 83.279611][ C1] _raw_spin_lock+0x33/0x40 [ 83.279614][ C1] ? simple_pin_fs+0x24/0x150 [ 83.279617][ C1] simple_pin_fs+0x24/0x150 [ 83.279620][ C1] debugfs_remove+0x35/0x70 [ 83.279623][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 83.279629][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 83.279631][ C1] ? __sk_destruct+0x383/0x780 [ 83.279637][ C1] ? rcu_do_batch+0x34f/0xf20 [ 83.279641][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 83.279643][ C1] ? irq_exit_rcu+0xe/0x30 [ 83.279646][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.279650][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.279654][ C1] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 83.279657][ C1] ? __debug_check_no_obj_freed+0x252/0x520 [ 83.279662][ C1] ? free_unref_folios+0x301/0x12d0 [ 83.279666][ C1] ? folios_put_refs+0x352/0x4f0 [ 83.279673][ C1] ? free_pages_and_swap_cache+0x2f1/0x3b0 [ 83.279680][ C1] ? __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.279684][ C1] ? tlb_finish_mmu+0x12d/0x6a0 [ 83.279688][ C1] ? vms_clear_ptes.part.0+0x42c/0x680 [ 83.279693][ C1] __put_net+0x19/0x60 [ 83.279699][ C1] __sk_destruct+0x58a/0x780 [ 83.279702][ C1] ? rcu_do_batch+0x34a/0xf20 [ 83.279706][ C1] rcu_do_batch+0x34f/0xf20 [ 83.279710][ C1] ? find_held_lock+0x2b/0x80 [ 83.279715][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 83.279719][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.279722][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.279726][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 83.279731][ C1] rcu_core+0x2bb/0x500 [ 83.279736][ C1] handle_softirqs+0x21b/0x620 [ 83.279741][ C1] __irq_exit_rcu+0xfa/0x160 [ 83.279744][ C1] irq_exit_rcu+0xe/0x30 [ 83.279746][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.279750][ C1] [ 83.279751][ C1] [ 83.279754][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.279757][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 83.279761][ C1] Code: 74 24 10 e8 81 4c 56 fd 48 89 ef e8 39 9f 56 fd 81 e3 00 02 00 00 75 29 9c 58 f6 c4 02 75 35 48 85 db 74 01 fb bf 01 00 00 00 ba 9c 4a fd 65 8b 05 f3 3c 1f 03 85 c0 74 0e 5b 5d e9 98 34 00 [ 83.279763][ C1] RSP: 0018:ffffc90000ba73e8 EFLAGS: 00000206 [ 83.279767][ C1] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 0000000000000080 [ 83.279769][ C1] RDX: 0000000000000000 RSI: ffffffffa0715cea RDI: 0000000000000001 [ 83.279770][ C1] RBP: ffffffffa3b9efb8 R08: 0000000000000001 R09: 0000000000000001 [ 83.279772][ C1] R10: ffffffffa1c7c7d7 R11: ffffffffa3b9efd0 R12: dffffc0000000000 [ 83.279774][ C1] R13: ffff888061b08000 R14: 0000000000000000 R15: ffff888061b09000 [ 83.279780][ C1] __debug_check_no_obj_freed+0x252/0x520 [ 83.279784][ C1] ? validate_chain+0x166/0x4d0 [ 83.279788][ C1] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 83.279791][ C1] ? __lock_acquire+0x44d/0x7e0 [ 83.279795][ C1] ? do_raw_spin_lock+0x130/0x270 [ 83.279801][ C1] free_unref_folios+0x301/0x12d0 [ 83.279806][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.279810][ C1] folios_put_refs+0x352/0x4f0 [ 83.279815][ C1] ? __pfx_folios_put_refs+0x10/0x10 [ 83.279819][ C1] ? mark_held_locks+0x49/0x80 [ 83.279822][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.279825][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 83.279830][ C1] free_pages_and_swap_cache+0x2f1/0x3b0 [ 83.279834][ C1] ? __pfx_free_pages_and_swap_cache+0x10/0x10 [ 83.279840][ C1] ? mark_held_locks+0x49/0x80 [ 83.279843][ C1] ? smp_call_function_many_cond+0x927/0xcd0 [ 83.279849][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.279862][ C1] __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.279865][ C1] ? flush_tlb_mm_range+0xe6/0x600 [ 83.279870][ C1] tlb_finish_mmu+0x12d/0x6a0 [ 83.279874][ C1] vms_clear_ptes.part.0+0x42c/0x680 [ 83.279879][ C1] ? __pfx_vms_clear_ptes.part.0+0x10/0x10 [ 83.279882][ C1] ? vms_complete_munmap_vmas+0x66d/0x9c0 [ 83.279889][ C1] ? vms_complete_munmap_vmas+0x66d/0x9c0 [ 83.279893][ C1] vms_complete_munmap_vmas+0x5ca/0x9c0 [ 83.279896][ C1] ? vms_gather_munmap_vmas+0x76a/0xb50 [ 83.279902][ C1] do_vmi_align_munmap+0x38f/0x4b0 [ 83.279906][ C1] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 83.279917][ C1] ? __vm_munmap+0x105/0x2d0 [ 83.279922][ C1] ? mas_walk+0x82/0x200 [ 83.279928][ C1] do_vmi_munmap+0x167/0x300 [ 83.279933][ C1] __vm_munmap+0x168/0x2d0 [ 83.279937][ C1] ? __pfx___vm_munmap+0x10/0x10 [ 83.279940][ C1] ? find_held_lock+0x2b/0x80 [ 83.279944][ C1] ? exc_page_fault+0x5d/0xc0 [ 83.279949][ C1] ? do_user_addr_fault+0x959/0xe00 [ 83.279956][ C1] __x64_sys_munmap+0x59/0x80 [ 83.279959][ C1] do_syscall_64+0xc1/0x380 [ 83.279966][ C1] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 83.279968][ C1] RIP: 0033:0x7fae2b011e8b [ 83.279972][ C1] Code: ff ff 73 01 c3 48 8b 0d 73 9f 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 45 9f 1b 00 f7 d8 64 89 01 48 [ 83.279974][ C1] RSP: 002b:00007ffde4f45f68 EFLAGS: 00000202 ORIG_RAX: 000000000000000b [ 83.279977][ C1] RAX: ffffffffffffffda RBX: 00005583aa4b4a10 RCX: 00007fae2b011e8b [ 83.279979][ C1] RDX: 0000000000040000 RSI: 0000000000040000 RDI: 00007fae1c99a000 [ 83.279980][ C1] RBP: 00007fae1ce6ec90 R08: 00005583aa4b48f0 R09: 000000000000003f [ 83.279982][ C1] R10: 00007fae1c9b0000 R11: 0000000000000202 R12: 0000000000000018 [ 83.279984][ C1] R13: 00005583aa1c2910 R14: 00005583aa3d13e0 R15: 0000000000000019 [ 83.279989][ C1] [ 83.307403][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 83.307751][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 255, name: python3 [ 83.308214][ C1] preempt_count: 101, expected: 0 [ 83.308413][ C1] RCU nest depth: 0, expected: 0 [ 83.308608][ C1] INFO: lockdep is turned off. [ 83.308938][ C1] Preemption disabled at: [ 83.308940][ C1] [<0000000000000000>] 0x0 [ 83.309278][ C1] CPU: 1 UID: 0 PID: 255 Comm: python3 Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 83.309283][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 83.309285][ C1] Call Trace: [ 83.309287][ C1] [ 83.309289][ C1] dump_stack_lvl+0xb0/0xd0 [ 83.309297][ C1] __might_resched+0x360/0x5a0 [ 83.309307][ C1] down_write+0x72/0x210 [ 83.309311][ C1] ? __pfx_down_write+0x10/0x10 [ 83.309314][ C1] ? simple_recursive_removal+0x33/0x610 [ 83.309319][ C1] ? rcu_is_watching+0x12/0xc0 [ 83.309325][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 83.309331][ C1] simple_recursive_removal+0x6a/0x610 [ 83.309334][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 83.309337][ C1] ? __pfx_remove_one+0x10/0x10 [ 83.309344][ C1] debugfs_remove+0x44/0x70 [ 83.309347][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 83.309352][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 83.309355][ C1] ? __sk_destruct+0x383/0x780 [ 83.309360][ C1] ? rcu_do_batch+0x34f/0xf20 [ 83.309366][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 83.309369][ C1] ? irq_exit_rcu+0xe/0x30 [ 83.309374][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.309379][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.309383][ C1] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 83.309388][ C1] ? __debug_check_no_obj_freed+0x252/0x520 [ 83.309394][ C1] ? free_unref_folios+0x301/0x12d0 [ 83.309399][ C1] ? folios_put_refs+0x352/0x4f0 [ 83.309405][ C1] ? free_pages_and_swap_cache+0x2f1/0x3b0 [ 83.309411][ C1] ? __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.309416][ C1] ? tlb_finish_mmu+0x12d/0x6a0 [ 83.309419][ C1] ? vms_clear_ptes.part.0+0x42c/0x680 [ 83.309425][ C1] __put_net+0x19/0x60 [ 83.309431][ C1] __sk_destruct+0x58a/0x780 [ 83.309434][ C1] ? rcu_do_batch+0x34a/0xf20 [ 83.309437][ C1] rcu_do_batch+0x34f/0xf20 [ 83.309442][ C1] ? find_held_lock+0x2b/0x80 [ 83.309448][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 83.309453][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.309456][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.309460][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 83.309465][ C1] rcu_core+0x2bb/0x500 [ 83.309470][ C1] handle_softirqs+0x21b/0x620 [ 83.309475][ C1] __irq_exit_rcu+0xfa/0x160 [ 83.309478][ C1] irq_exit_rcu+0xe/0x30 [ 83.309480][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.309483][ C1] [ 83.309484][ C1] [ 83.309486][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.309489][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 83.309492][ C1] Code: 74 24 10 e8 81 4c 56 fd 48 89 ef e8 39 9f 56 fd 81 e3 00 02 00 00 75 29 9c 58 f6 c4 02 75 35 48 85 db 74 01 fb bf 01 00 00 00 ba 9c 4a fd 65 8b 05 f3 3c 1f 03 85 c0 74 0e 5b 5d e9 98 34 00 [ 83.309494][ C1] RSP: 0018:ffffc90000ba73e8 EFLAGS: 00000206 [ 83.309497][ C1] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 0000000000000080 [ 83.309499][ C1] RDX: 0000000000000000 RSI: ffffffffa0715cea RDI: 0000000000000001 [ 83.309501][ C1] RBP: ffffffffa3b9efb8 R08: 0000000000000001 R09: 0000000000000001 [ 83.309502][ C1] R10: ffffffffa1c7c7d7 R11: ffffffffa3b9efd0 R12: dffffc0000000000 [ 83.309504][ C1] R13: ffff888061b08000 R14: 0000000000000000 R15: ffff888061b09000 [ 83.309510][ C1] __debug_check_no_obj_freed+0x252/0x520 [ 83.309514][ C1] ? validate_chain+0x166/0x4d0 [ 83.309518][ C1] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 83.309521][ C1] ? __lock_acquire+0x44d/0x7e0 [ 83.309526][ C1] ? do_raw_spin_lock+0x130/0x270 [ 83.309531][ C1] free_unref_folios+0x301/0x12d0 [ 83.309536][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.309540][ C1] folios_put_refs+0x352/0x4f0 [ 83.309545][ C1] ? __pfx_folios_put_refs+0x10/0x10 [ 83.309549][ C1] ? mark_held_locks+0x49/0x80 [ 83.309552][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.309555][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 83.309560][ C1] free_pages_and_swap_cache+0x2f1/0x3b0 [ 83.309564][ C1] ? __pfx_free_pages_and_swap_cache+0x10/0x10 [ 83.309570][ C1] ? mark_held_locks+0x49/0x80 [ 83.309573][ C1] ? smp_call_function_many_cond+0x927/0xcd0 [ 83.309580][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.309592][ C1] __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.309595][ C1] ? flush_tlb_mm_range+0xe6/0x600 [ 83.309601][ C1] tlb_finish_mmu+0x12d/0x6a0 [ 83.309606][ C1] vms_clear_ptes.part.0+0x42c/0x680 [ 83.309610][ C1] ? __pfx_vms_clear_ptes.part.0+0x10/0x10 [ 83.309613][ C1] ? vms_complete_munmap_vmas+0x66d/0x9c0 [ 83.309620][ C1] ? vms_complete_munmap_vmas+0x66d/0x9c0 [ 83.309625][ C1] vms_complete_munmap_vmas+0x5ca/0x9c0 [ 83.309628][ C1] ? vms_gather_munmap_vmas+0x76a/0xb50 [ 83.309634][ C1] do_vmi_align_munmap+0x38f/0x4b0 [ 83.309638][ C1] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 83.309649][ C1] ? __vm_munmap+0x105/0x2d0 [ 83.309654][ C1] ? mas_walk+0x82/0x200 [ 83.309662][ C1] do_vmi_munmap+0x167/0x300 [ 83.309666][ C1] __vm_munmap+0x168/0x2d0 [ 83.309670][ C1] ? __pfx___vm_munmap+0x10/0x10 [ 83.309674][ C1] ? find_held_lock+0x2b/0x80 [ 83.309677][ C1] ? exc_page_fault+0x5d/0xc0 [ 83.309682][ C1] ? do_user_addr_fault+0x959/0xe00 [ 83.309689][ C1] __x64_sys_munmap+0x59/0x80 [ 83.309691][ C1] do_syscall_64+0xc1/0x380 [ 83.309698][ C1] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 83.309700][ C1] RIP: 0033:0x7fae2b011e8b [ 83.309702][ C1] Code: ff ff 73 01 c3 48 8b 0d 73 9f 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa b8 0b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 45 9f 1b 00 f7 d8 64 89 01 48 [ 83.309704][ C1] RSP: 002b:00007ffde4f45f68 EFLAGS: 00000202 ORIG_RAX: 000000000000000b [ 83.309707][ C1] RAX: ffffffffffffffda RBX: 00005583aa4b4a10 RCX: 00007fae2b011e8b [ 83.309708][ C1] RDX: 0000000000040000 RSI: 0000000000040000 RDI: 00007fae1c99a000 [ 83.309710][ C1] RBP: 00007fae1ce6ec90 R08: 00005583aa4b48f0 R09: 000000000000003f [ 83.309711][ C1] R10: 00007fae1c9b0000 R11: 0000000000000202 R12: 0000000000000018 [ 83.309713][ C1] R13: 00005583aa1c2910 R14: 00005583aa3d13e0 R15: 0000000000000019 [ 83.309719][ C1]