[ 21.135165][ T275] MACsec IEEE 802.1AE [ 24.339912][ T288] gre: GRE over IPv4 demultiplexer driver [ 24.368549][ T288] ip_gre: GRE over IPv4 tunneling driver [ 25.937578][ T300] ip (300) used greatest stack depth: 24568 bytes left [ 27.033443][ T305] ip6_gre: GRE over IPv6 tunneling driver [ 30.282960][ T319] IPsec XFRM device driver [ 35.680679][ T340] ip (340) used greatest stack depth: 23984 bytes left [ 63.422027][ T448] CAN device driver interface [ 63.447066][ T448] vxcan: Virtual CAN Tunnel driver [ 63.492820][ T447] ip (447) used greatest stack depth: 23832 bytes left [ 83.172076][ C1] [ 83.172227][ C1] ================================ [ 83.172448][ C1] WARNING: inconsistent lock state [ 83.172656][ C1] 6.15.0-rc7-virtme #1 Not tainted [ 83.172863][ C1] -------------------------------- [ 83.173071][ C1] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 83.173332][ C1] python3/253 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 83.173592][ C1] ffffffff9b9d52b8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 83.173972][ C1] {SOFTIRQ-ON-W} state was registered at: [ 83.174183][ C1] __lock_acquire+0x3eb/0x9d0 [ 83.174400][ C1] lock_acquire.part.0+0xb6/0x240 [ 83.174609][ C1] _raw_spin_lock+0x33/0x40 [ 83.174818][ C1] simple_pin_fs+0x24/0x150 [ 83.175028][ C1] start_creating.part.0+0x3f/0x2f0 [ 83.175236][ C1] debugfs_create_dir+0x6a/0x540 [ 83.175446][ C1] component_debug_init+0x17/0x30 [ 83.175657][ C1] do_one_initcall+0x8f/0x1e0 [ 83.175868][ C1] do_initcalls+0x176/0x280 [ 83.176081][ C1] kernel_init_freeable+0x22d/0x300 [ 83.176292][ C1] kernel_init+0x20/0x200 [ 83.176499][ C1] ret_from_fork+0x31/0x70 [ 83.176710][ C1] ret_from_fork_asm+0x1a/0x30 [ 83.176916][ C1] irq event stamp: 2131578 [ 83.177125][ C1] hardirqs last enabled at (2131578): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.177545][ C1] hardirqs last disabled at (2131577): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 83.177960][ C1] softirqs last enabled at (2129168): [] handle_softirqs+0x358/0x620 [ 83.178322][ C1] softirqs last disabled at (2131323): [] __irq_exit_rcu+0xfa/0x160 [ 83.178681][ C1] [ 83.178681][ C1] other info that might help us debug this: [ 83.178992][ C1] Possible unsafe locking scenario: [ 83.178992][ C1] [ 83.179298][ C1] CPU0 [ 83.179454][ C1] ---- [ 83.179607][ C1] lock(pin_fs_lock); [ 83.179765][ C1] [ 83.179917][ C1] lock(pin_fs_lock); [ 83.180074][ C1] [ 83.180074][ C1] *** DEADLOCK *** [ 83.180074][ C1] [ 83.180382][ C1] 2 locks held by python3/253: [ 83.180591][ C1] #0: ffff88800c571620 (&mm->mmap_lock){++++}-{4:4}, at: exit_mmap+0x190/0x800 [ 83.180960][ C1] #1: ffffffff9b788a40 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 83.181325][ C1] [ 83.181325][ C1] stack backtrace: [ 83.181590][ C1] CPU: 1 UID: 0 PID: 253 Comm: python3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 83.181595][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 83.181598][ C1] Call Trace: [ 83.181600][ C1] [ 83.181601][ C1] dump_stack_lvl+0x82/0xd0 [ 83.181606][ C1] print_usage_bug.part.0+0x25f/0x360 [ 83.181611][ C1] mark_lock_irq+0x343/0x400 [ 83.181615][ C1] ? exit_mmap+0x315/0x800 [ 83.181619][ C1] ? __pfx_unwind_next_frame+0x10/0x10 [ 83.181624][ C1] ? save_trace+0x52/0x170 [ 83.181628][ C1] mark_lock+0x174/0x2f0 [ 83.181632][ C1] mark_usage+0x46/0x150 [ 83.181636][ C1] __lock_acquire+0x3eb/0x9d0 [ 83.181641][ C1] lock_acquire.part.0+0xb6/0x240 [ 83.181645][ C1] ? simple_pin_fs+0x24/0x150 [ 83.181649][ C1] ? rcu_is_watching+0x12/0xc0 [ 83.181654][ C1] ? lock_acquire+0x10c/0x170 [ 83.181657][ C1] ? simple_pin_fs+0x24/0x150 [ 83.181661][ C1] _raw_spin_lock+0x33/0x40 [ 83.181663][ C1] ? simple_pin_fs+0x24/0x150 [ 83.181666][ C1] simple_pin_fs+0x24/0x150 [ 83.181669][ C1] debugfs_remove+0x35/0x70 [ 83.181673][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 83.181677][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 83.181680][ C1] ? __sk_destruct+0x383/0x780 [ 83.181684][ C1] ? rcu_do_batch+0x34f/0xf20 [ 83.181687][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 83.181689][ C1] ? irq_exit_rcu+0xe/0x30 [ 83.181693][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.181696][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.181701][ C1] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 83.181704][ C1] ? __debug_check_no_obj_freed+0x252/0x520 [ 83.181709][ C1] ? free_unref_folios+0x301/0x12d0 [ 83.181711][ C1] ? folios_put_refs+0x352/0x4f0 [ 83.181715][ C1] ? free_pages_and_swap_cache+0x1cb/0x3b0 [ 83.181720][ C1] ? __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.181723][ C1] ? tlb_finish_mmu+0x12d/0x6a0 [ 83.181726][ C1] ? exit_mmap+0x315/0x800 [ 83.181731][ C1] __put_net+0x19/0x60 [ 83.181735][ C1] __sk_destruct+0x58a/0x780 [ 83.181738][ C1] ? rcu_do_batch+0x34a/0xf20 [ 83.181741][ C1] rcu_do_batch+0x34f/0xf20 [ 83.181745][ C1] ? find_held_lock+0x2b/0x80 [ 83.181749][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 83.181753][ C1] ? mark_held_locks+0x49/0x80 [ 83.181756][ C1] ? note_gp_changes+0x182/0x1e0 [ 83.181759][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.181763][ C1] rcu_core+0x2bb/0x500 [ 83.181768][ C1] handle_softirqs+0x21b/0x620 [ 83.181773][ C1] __irq_exit_rcu+0xfa/0x160 [ 83.181777][ C1] irq_exit_rcu+0xe/0x30 [ 83.181780][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.181783][ C1] [ 83.181784][ C1] [ 83.181786][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.181788][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 83.181792][ C1] Code: 74 24 10 e8 d1 11 59 fd 48 89 ef e8 49 64 59 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 6a 6c 4d fd 65 8b 05 43 b8 20 03 85 c0 74 0e 5b 5d c3 cc cc cc [ 83.181795][ C1] RSP: 0018:ffffc90000b776c8 EFLAGS: 00000206 [ 83.181798][ C1] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 0000000000000040 [ 83.181800][ C1] RDX: 0000000000000000 RSI: ffffffff9ad0e9f8 RDI: 0000000000000001 [ 83.181802][ C1] RBP: ffffffff9e1f2a70 R08: 0000000000000001 R09: 0000000000000001 [ 83.181804][ C1] R10: ffffffff9c270397 R11: ffffffff9e1f2a88 R12: dffffc0000000000 [ 83.181806][ C1] R13: ffff88800fd87000 R14: 0000000000000000 R15: ffff88800fd88000 [ 83.181812][ C1] __debug_check_no_obj_freed+0x252/0x520 [ 83.181815][ C1] ? rcu_read_lock_any_held+0x43/0xb0 [ 83.181822][ C1] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 83.181826][ C1] ? do_raw_spin_lock+0x130/0x270 [ 83.181831][ C1] free_unref_folios+0x301/0x12d0 [ 83.181835][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.181839][ C1] folios_put_refs+0x352/0x4f0 [ 83.181843][ C1] ? __pfx_folios_put_refs+0x10/0x10 [ 83.181846][ C1] ? mark_held_locks+0x49/0x80 [ 83.181849][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.181852][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.181855][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 83.181859][ C1] free_pages_and_swap_cache+0x1cb/0x3b0 [ 83.181864][ C1] ? __pfx_free_pages_and_swap_cache+0x10/0x10 [ 83.181871][ C1] ? find_held_lock+0x2b/0x80 [ 83.181883][ C1] __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.181888][ C1] tlb_finish_mmu+0x12d/0x6a0 [ 83.181892][ C1] exit_mmap+0x315/0x800 [ 83.181896][ C1] ? __pfx_exit_mmap+0x10/0x10 [ 83.181901][ C1] ? __mutex_unlock_slowpath+0x144/0x400 [ 83.181911][ C1] mmput+0xb8/0x3e0 [ 83.181916][ C1] exit_mm+0x146/0x1d0 [ 83.181920][ C1] do_exit+0x426/0xc10 [ 83.181922][ C1] ? _raw_spin_unlock_irq+0x28/0x50 [ 83.181926][ C1] do_group_exit+0xb8/0x260 [ 83.181930][ C1] __x64_sys_exit_group+0x3e/0x50 [ 83.181933][ C1] x64_sys_call+0xf76/0x18a0 [ 83.181935][ C1] do_syscall_64+0xc1/0x1d0 [ 83.181941][ C1] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 83.181943][ C1] RIP: 0033:0x7f662b041abd [ 83.181946][ C1] Code: Unable to access opcode bytes at 0x7f662b041a93. [ 83.181948][ C1] RSP: 002b:00007ffe9bb4f998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 83.181950][ C1] RAX: ffffffffffffffda RBX: 00007f662b11e9c0 RCX: 00007f662b041abd [ 83.181952][ C1] RDX: 00000000000000e7 RSI: ffffffffffffff80 RDI: 0000000000000000 [ 83.181954][ C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000100 [ 83.181955][ C1] R10: 00007ffe9bb4f680 R11: 0000000000000246 R12: 00007f662b11e9c0 [ 83.181957][ C1] R13: 00007f662b123ee0 R14: 0000000000000002 R15: 00007f662b123ec8 [ 83.181963][ C1] [ 83.206720][ C1] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 83.207058][ C1] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 253, name: python3 [ 83.207393][ C1] preempt_count: 101, expected: 0 [ 83.207725][ C1] RCU nest depth: 0, expected: 0 [ 83.207918][ C1] INFO: lockdep is turned off. [ 83.208111][ C1] Preemption disabled at: [ 83.208113][ C1] [<0000000000000000>] 0x0 [ 83.208589][ C1] CPU: 1 UID: 0 PID: 253 Comm: python3 Not tainted 6.15.0-rc7-virtme #1 PREEMPT(full) [ 83.208593][ C1] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 83.208595][ C1] Call Trace: [ 83.208597][ C1] [ 83.208599][ C1] dump_stack_lvl+0xb0/0xd0 [ 83.208607][ C1] __might_resched+0x360/0x5a0 [ 83.208612][ C1] down_write+0x72/0x210 [ 83.208618][ C1] ? __pfx_down_write+0x10/0x10 [ 83.208621][ C1] ? simple_recursive_removal+0x3a/0x860 [ 83.208626][ C1] ? rcu_is_watching+0x12/0xc0 [ 83.208631][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 83.208635][ C1] simple_recursive_removal+0x166/0x860 [ 83.208639][ C1] ? __pfx_remove_one+0x10/0x10 [ 83.208645][ C1] ? do_raw_spin_unlock+0x58/0x220 [ 83.208649][ C1] debugfs_remove+0x44/0x70 [ 83.208652][ C1] ref_tracker_dir_exit+0xcf/0x740 [ 83.208656][ C1] ? __pfx_ref_tracker_free+0x10/0x10 [ 83.208659][ C1] ? __sk_destruct+0x383/0x780 [ 83.208662][ C1] ? rcu_do_batch+0x34f/0xf20 [ 83.208667][ C1] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 83.208669][ C1] ? irq_exit_rcu+0xe/0x30 [ 83.208675][ C1] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.208679][ C1] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.208683][ C1] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 83.208687][ C1] ? __debug_check_no_obj_freed+0x252/0x520 [ 83.208691][ C1] ? free_unref_folios+0x301/0x12d0 [ 83.208695][ C1] ? folios_put_refs+0x352/0x4f0 [ 83.208699][ C1] ? free_pages_and_swap_cache+0x1cb/0x3b0 [ 83.208705][ C1] ? __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.208709][ C1] ? tlb_finish_mmu+0x12d/0x6a0 [ 83.208712][ C1] ? exit_mmap+0x315/0x800 [ 83.208717][ C1] __put_net+0x19/0x60 [ 83.208722][ C1] __sk_destruct+0x58a/0x780 [ 83.208725][ C1] ? rcu_do_batch+0x34a/0xf20 [ 83.208728][ C1] rcu_do_batch+0x34f/0xf20 [ 83.208732][ C1] ? find_held_lock+0x2b/0x80 [ 83.208737][ C1] ? __pfx_rcu_do_batch+0x10/0x10 [ 83.208740][ C1] ? mark_held_locks+0x49/0x80 [ 83.208744][ C1] ? note_gp_changes+0x182/0x1e0 [ 83.208748][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.208752][ C1] rcu_core+0x2bb/0x500 [ 83.208757][ C1] handle_softirqs+0x21b/0x620 [ 83.208763][ C1] __irq_exit_rcu+0xfa/0x160 [ 83.208766][ C1] irq_exit_rcu+0xe/0x30 [ 83.208770][ C1] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 83.208773][ C1] [ 83.208774][ C1] [ 83.208776][ C1] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.208778][ C1] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 83.208782][ C1] Code: 74 24 10 e8 d1 11 59 fd 48 89 ef e8 49 64 59 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 6a 6c 4d fd 65 8b 05 43 b8 20 03 85 c0 74 0e 5b 5d c3 cc cc cc [ 83.208785][ C1] RSP: 0018:ffffc90000b776c8 EFLAGS: 00000206 [ 83.208788][ C1] RAX: 0000000000000002 RBX: 0000000000000200 RCX: 0000000000000040 [ 83.208790][ C1] RDX: 0000000000000000 RSI: ffffffff9ad0e9f8 RDI: 0000000000000001 [ 83.208792][ C1] RBP: ffffffff9e1f2a70 R08: 0000000000000001 R09: 0000000000000001 [ 83.208793][ C1] R10: ffffffff9c270397 R11: ffffffff9e1f2a88 R12: dffffc0000000000 [ 83.208795][ C1] R13: ffff88800fd87000 R14: 0000000000000000 R15: ffff88800fd88000 [ 83.208801][ C1] __debug_check_no_obj_freed+0x252/0x520 [ 83.208804][ C1] ? rcu_read_lock_any_held+0x43/0xb0 [ 83.208811][ C1] ? __pfx___debug_check_no_obj_freed+0x10/0x10 [ 83.208816][ C1] ? do_raw_spin_lock+0x130/0x270 [ 83.208820][ C1] free_unref_folios+0x301/0x12d0 [ 83.208824][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.208828][ C1] folios_put_refs+0x352/0x4f0 [ 83.208832][ C1] ? __pfx_folios_put_refs+0x10/0x10 [ 83.208835][ C1] ? mark_held_locks+0x49/0x80 [ 83.208838][ C1] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 83.208841][ C1] ? lockdep_hardirqs_on+0x7c/0x110 [ 83.208844][ C1] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 83.208849][ C1] free_pages_and_swap_cache+0x1cb/0x3b0 [ 83.208853][ C1] ? __pfx_free_pages_and_swap_cache+0x10/0x10 [ 83.208860][ C1] ? find_held_lock+0x2b/0x80 [ 83.208872][ C1] __tlb_batch_free_encoded_pages+0xa5/0x1e0 [ 83.208876][ C1] tlb_finish_mmu+0x12d/0x6a0 [ 83.208881][ C1] exit_mmap+0x315/0x800 [ 83.208885][ C1] ? __pfx_exit_mmap+0x10/0x10 [ 83.208890][ C1] ? __mutex_unlock_slowpath+0x144/0x400 [ 83.208899][ C1] mmput+0xb8/0x3e0 [ 83.208904][ C1] exit_mm+0x146/0x1d0 [ 83.208907][ C1] do_exit+0x426/0xc10 [ 83.208909][ C1] ? _raw_spin_unlock_irq+0x28/0x50 [ 83.208913][ C1] do_group_exit+0xb8/0x260 [ 83.208917][ C1] __x64_sys_exit_group+0x3e/0x50 [ 83.208920][ C1] x64_sys_call+0xf76/0x18a0 [ 83.208924][ C1] do_syscall_64+0xc1/0x1d0 [ 83.208930][ C1] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 83.208932][ C1] RIP: 0033:0x7f662b041abd [ 83.208935][ C1] Code: Unable to access opcode bytes at 0x7f662b041a93. [ 83.208936][ C1] RSP: 002b:00007ffe9bb4f998 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 83.208938][ C1] RAX: ffffffffffffffda RBX: 00007f662b11e9c0 RCX: 00007f662b041abd [ 83.208940][ C1] RDX: 00000000000000e7 RSI: ffffffffffffff80 RDI: 0000000000000000 [ 83.208942][ C1] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000100 [ 83.208944][ C1] R10: 00007ffe9bb4f680 R11: 0000000000000246 R12: 00007f662b11e9c0 [ 83.208946][ C1] R13: 00007f662b123ee0 R14: 0000000000000002 R15: 00007f662b123ec8 [ 83.208951][ C1]