[ 12.399765][ C2] [ 12.399909][ C2] ================================ [ 12.400121][ C2] WARNING: inconsistent lock state [ 12.400330][ C2] 6.15.0-virtme #1 Not tainted [ 12.400538][ C2] -------------------------------- [ 12.400746][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 12.401002][ C2] modprobe/230 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 12.401262][ C2] ffffffff9c1c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 12.401636][ C2] {SOFTIRQ-ON-W} state was registered at: [ 12.401842][ C2] __lock_acquire+0x20b/0x7e0 [ 12.402056][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.402267][ C2] _raw_spin_lock+0x33/0x40 [ 12.402485][ C2] simple_pin_fs+0x24/0x150 [ 12.402694][ C2] start_creating.part.0+0x52/0x310 [ 12.402908][ C2] debugfs_create_dir+0x6a/0x540 [ 12.403120][ C2] component_debug_init+0x17/0x30 [ 12.403332][ C2] do_one_initcall+0x8f/0x1e0 [ 12.403541][ C2] do_initcalls+0x176/0x280 [ 12.403757][ C2] kernel_init_freeable+0x22d/0x300 [ 12.403966][ C2] kernel_init+0x20/0x200 [ 12.404175][ C2] ret_from_fork+0x240/0x320 [ 12.404389][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.404602][ C2] irq event stamp: 2790 [ 12.404763][ C2] hardirqs last enabled at (2790): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 12.405181][ C2] hardirqs last disabled at (2789): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 12.405553][ C2] softirqs last enabled at (1240): [] fpu_flush_thread+0x2b7/0x390 [ 12.405915][ C2] softirqs last disabled at (1357): [] __irq_exit_rcu+0xfa/0x160 [ 12.406283][ C2] [ 12.406283][ C2] other info that might help us debug this: [ 12.406597][ C2] Possible unsafe locking scenario: [ 12.406597][ C2] [ 12.406903][ C2] CPU0 [ 12.407060][ C2] ---- [ 12.407216][ C2] lock(pin_fs_lock); [ 12.407379][ C2] [ 12.407536][ C2] lock(pin_fs_lock); [ 12.407696][ C2] [ 12.407696][ C2] *** DEADLOCK *** [ 12.407696][ C2] [ 12.408003][ C2] 2 locks held by modprobe/230: [ 12.408214][ C2] #0: ffff8880010860a0 (&mm->mmap_lock){++++}-{4:4}, at: __vm_munmap+0x105/0x2d0 [ 12.408585][ C2] #1: ffffffff9bf774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 12.408959][ C2] [ 12.408959][ C2] stack backtrace: [ 12.409217][ C2] CPU: 2 UID: 0 PID: 230 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.409222][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.409223][ C2] Call Trace: [ 12.409225][ C2] [ 12.409228][ C2] dump_stack_lvl+0x82/0xd0 [ 12.409234][ C2] print_usage_bug.part.0+0x25f/0x360 [ 12.409239][ C2] mark_lock_irq+0x343/0x400 [ 12.409244][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 12.409249][ C2] ? save_trace+0x52/0x170 [ 12.409253][ C2] mark_lock+0x174/0x2f0 [ 12.409257][ C2] mark_usage+0x46/0x150 [ 12.409260][ C2] __lock_acquire+0x20b/0x7e0 [ 12.409264][ C2] ? __lock_acquire+0x44d/0x7e0 [ 12.409268][ C2] lock_acquire.part.0+0xb6/0x240 [ 12.409271][ C2] ? simple_pin_fs+0x24/0x150 [ 12.409274][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.409279][ C2] ? lock_acquire+0x10c/0x170 [ 12.409282][ C2] ? simple_pin_fs+0x24/0x150 [ 12.409286][ C2] _raw_spin_lock+0x33/0x40 [ 12.409289][ C2] ? simple_pin_fs+0x24/0x150 [ 12.409291][ C2] simple_pin_fs+0x24/0x150 [ 12.409295][ C2] debugfs_remove+0x35/0x70 [ 12.409298][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.409303][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.409305][ C2] ? __sk_destruct+0x383/0x780 [ 12.409311][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.409313][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.409316][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.409319][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.409323][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.409327][ C2] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 12.409330][ C2] ? get_partial_node.part.0+0x1c2/0x3b0 [ 12.409333][ C2] ? ___slab_alloc+0x4b2/0x1170 [ 12.409336][ C2] ? __slab_alloc.constprop.0+0x5b/0xb0 [ 12.409339][ C2] ? kmem_cache_alloc_noprof+0x1ab/0x330 [ 12.409342][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.409346][ C2] ? mas_store_gfp+0x419/0x590 [ 12.409349][ C2] ? do_vmi_align_munmap+0x35d/0x4b0 [ 12.409354][ C2] __put_net+0x19/0x60 [ 12.409358][ C2] __sk_destruct+0x58a/0x780 [ 12.409362][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.409365][ C2] rcu_do_batch+0x34c/0xf20 [ 12.409369][ C2] ? find_held_lock+0x2b/0x80 [ 12.409372][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.409376][ C2] ? mark_held_locks+0x49/0x80 [ 12.409379][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.409382][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.409387][ C2] rcu_core+0x2bb/0x500 [ 12.409392][ C2] handle_softirqs+0x218/0x620 [ 12.409397][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.409400][ C2] irq_exit_rcu+0xe/0x30 [ 12.409403][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.409407][ C2] [ 12.409408][ C2] [ 12.409410][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.409412][ C2] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 12.409417][ C2] Code: 74 24 10 e8 c1 fe 81 fd 48 89 ef e8 79 51 82 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 fa 4e 76 fd 65 8b 05 13 bd 96 02 85 c0 74 0e 5b 5d c3 cc cc cc [ 12.409419][ C2] RSP: 0018:ffffc900006e7538 EFLAGS: 00000206 [ 12.409422][ C2] RAX: 0000000000000006 RBX: 0000000000000200 RCX: 0000000000000040 [ 12.409424][ C2] RDX: 0000000000000000 RSI: ffffffff9ba9175c RDI: 0000000000000001 [ 12.409426][ C2] RBP: ffff88800104fe40 R08: 0000000000000001 R09: 0000000000000001 [ 12.409428][ C2] R10: ffffffff9c9e7cd7 R11: ffff88800104fe58 R12: ffff88800104fe40 [ 12.409429][ C2] R13: ffffea0000141900 R14: ffff888001050ac0 R15: ffff888005064100 [ 12.409436][ C2] get_partial_node.part.0+0x1c2/0x3b0 [ 12.409441][ C2] ___slab_alloc+0x4b2/0x1170 [ 12.409445][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.409450][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.409453][ C2] __slab_alloc.constprop.0+0x5b/0xb0 [ 12.409457][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.409460][ C2] kmem_cache_alloc_noprof+0x1ab/0x330 [ 12.409465][ C2] mas_alloc_nodes+0x108/0x7f0 [ 12.409470][ C2] mas_store_gfp+0x419/0x590 [ 12.409475][ C2] ? __pfx_mas_store_gfp+0x10/0x10 [ 12.409478][ C2] ? __pfx_mas_prev_range+0x10/0x10 [ 12.409482][ C2] ? vms_gather_munmap_vmas+0x76a/0xb50 [ 12.409488][ C2] do_vmi_align_munmap+0x35d/0x4b0 [ 12.409493][ C2] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 12.409504][ C2] ? __vm_munmap+0x105/0x2d0 [ 12.409508][ C2] ? mas_walk+0x82/0x200 [ 12.409513][ C2] do_vmi_munmap+0x167/0x300 [ 12.409517][ C2] __vm_munmap+0x168/0x2d0 [ 12.409521][ C2] ? __pfx___vm_munmap+0x10/0x10 [ 12.409525][ C2] ? vm_mmap_pgoff+0x1d0/0x2e0 [ 12.409533][ C2] ? __pfx_get_random_u64+0x10/0x10 [ 12.409539][ C2] elf_load+0x3c2/0x700 [ 12.409544][ C2] load_elf_binary+0x9c2/0x2960 [ 12.409551][ C2] ? find_held_lock+0x2b/0x80 [ 12.409554][ C2] ? __pfx_load_elf_binary+0x10/0x10 [ 12.409556][ C2] ? exec_binprm+0x237/0x640 [ 12.409562][ C2] exec_binprm+0x255/0x640 [ 12.409567][ C2] ? __pfx_exec_binprm+0x10/0x10 [ 12.409569][ C2] ? bprm_execve+0x93/0x490 [ 12.409574][ C2] bprm_execve+0x1af/0x490 [ 12.409577][ C2] kernel_execve+0x252/0x2f0 [ 12.409581][ C2] call_usermodehelper_exec_async+0x23e/0x460 [ 12.409585][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.409589][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.409591][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.409595][ C2] ret_from_fork+0x240/0x320 [ 12.409598][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.409601][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.409607][ C2] [ 12.431846][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 12.432214][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 230, name: modprobe [ 12.432573][ C2] preempt_count: 102, expected: 0 [ 12.432780][ C2] RCU nest depth: 0, expected: 0 [ 12.432986][ C2] INFO: lockdep is turned off. [ 12.433197][ C2] Preemption disabled at: [ 12.433199][ C2] [] __slab_alloc.constprop.0+0x2c/0xb0 [ 12.433625][ C2] CPU: 2 UID: 0 PID: 230 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 12.433630][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 12.433632][ C2] Call Trace: [ 12.433634][ C2] [ 12.433636][ C2] dump_stack_lvl+0xb0/0xd0 [ 12.433643][ C2] __might_resched+0x360/0x5a0 [ 12.433651][ C2] down_write+0x72/0x210 [ 12.433655][ C2] ? __pfx_down_write+0x10/0x10 [ 12.433657][ C2] ? simple_recursive_removal+0x33/0x610 [ 12.433662][ C2] ? rcu_is_watching+0x12/0xc0 [ 12.433668][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.433672][ C2] simple_recursive_removal+0x6a/0x610 [ 12.433675][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 12.433678][ C2] ? __pfx_remove_one+0x10/0x10 [ 12.433684][ C2] debugfs_remove+0x44/0x70 [ 12.433687][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 12.433692][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 12.433694][ C2] ? __sk_destruct+0x383/0x780 [ 12.433700][ C2] ? rcu_do_batch+0x34c/0xf20 [ 12.433704][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 12.433706][ C2] ? irq_exit_rcu+0xe/0x30 [ 12.433711][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.433716][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.433720][ C2] ? _raw_spin_unlock_irqrestore+0x41/0x80 [ 12.433724][ C2] ? get_partial_node.part.0+0x1c2/0x3b0 [ 12.433727][ C2] ? ___slab_alloc+0x4b2/0x1170 [ 12.433730][ C2] ? __slab_alloc.constprop.0+0x5b/0xb0 [ 12.433733][ C2] ? kmem_cache_alloc_noprof+0x1ab/0x330 [ 12.433736][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.433740][ C2] ? mas_store_gfp+0x419/0x590 [ 12.433744][ C2] ? do_vmi_align_munmap+0x35d/0x4b0 [ 12.433751][ C2] __put_net+0x19/0x60 [ 12.433754][ C2] __sk_destruct+0x58a/0x780 [ 12.433759][ C2] ? rcu_do_batch+0x34a/0xf20 [ 12.433761][ C2] rcu_do_batch+0x34c/0xf20 [ 12.433765][ C2] ? find_held_lock+0x2b/0x80 [ 12.433769][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 12.433772][ C2] ? mark_held_locks+0x49/0x80 [ 12.433777][ C2] ? note_gp_changes+0x182/0x1e0 [ 12.433780][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.433785][ C2] rcu_core+0x2bb/0x500 [ 12.433790][ C2] handle_softirqs+0x218/0x620 [ 12.433795][ C2] __irq_exit_rcu+0xfa/0x160 [ 12.433799][ C2] irq_exit_rcu+0xe/0x30 [ 12.433802][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 12.433805][ C2] [ 12.433806][ C2] [ 12.433808][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 12.433811][ C2] RIP: 0010:_raw_spin_unlock_irqrestore+0x41/0x80 [ 12.433815][ C2] Code: 74 24 10 e8 c1 fe 81 fd 48 89 ef e8 79 51 82 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 fa 4e 76 fd 65 8b 05 13 bd 96 02 85 c0 74 0e 5b 5d c3 cc cc cc [ 12.433818][ C2] RSP: 0018:ffffc900006e7538 EFLAGS: 00000206 [ 12.433821][ C2] RAX: 0000000000000006 RBX: 0000000000000200 RCX: 0000000000000040 [ 12.433823][ C2] RDX: 0000000000000000 RSI: ffffffff9ba9175c RDI: 0000000000000001 [ 12.433825][ C2] RBP: ffff88800104fe40 R08: 0000000000000001 R09: 0000000000000001 [ 12.433827][ C2] R10: ffffffff9c9e7cd7 R11: ffff88800104fe58 R12: ffff88800104fe40 [ 12.433829][ C2] R13: ffffea0000141900 R14: ffff888001050ac0 R15: ffff888005064100 [ 12.433835][ C2] get_partial_node.part.0+0x1c2/0x3b0 [ 12.433841][ C2] ___slab_alloc+0x4b2/0x1170 [ 12.433845][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.433849][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.433852][ C2] __slab_alloc.constprop.0+0x5b/0xb0 [ 12.433857][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 12.433860][ C2] kmem_cache_alloc_noprof+0x1ab/0x330 [ 12.433865][ C2] mas_alloc_nodes+0x108/0x7f0 [ 12.433870][ C2] mas_store_gfp+0x419/0x590 [ 12.433874][ C2] ? __pfx_mas_store_gfp+0x10/0x10 [ 12.433877][ C2] ? __pfx_mas_prev_range+0x10/0x10 [ 12.433882][ C2] ? vms_gather_munmap_vmas+0x76a/0xb50 [ 12.433888][ C2] do_vmi_align_munmap+0x35d/0x4b0 [ 12.433892][ C2] ? __pfx_do_vmi_align_munmap+0x10/0x10 [ 12.433903][ C2] ? __vm_munmap+0x105/0x2d0 [ 12.433908][ C2] ? mas_walk+0x82/0x200 [ 12.433912][ C2] do_vmi_munmap+0x167/0x300 [ 12.433917][ C2] __vm_munmap+0x168/0x2d0 [ 12.433921][ C2] ? __pfx___vm_munmap+0x10/0x10 [ 12.433925][ C2] ? vm_mmap_pgoff+0x1d0/0x2e0 [ 12.433933][ C2] ? __pfx_get_random_u64+0x10/0x10 [ 12.433940][ C2] elf_load+0x3c2/0x700 [ 12.433945][ C2] load_elf_binary+0x9c2/0x2960 [ 12.433952][ C2] ? find_held_lock+0x2b/0x80 [ 12.433955][ C2] ? __pfx_load_elf_binary+0x10/0x10 [ 12.433957][ C2] ? exec_binprm+0x237/0x640 [ 12.433963][ C2] exec_binprm+0x255/0x640 [ 12.433967][ C2] ? __pfx_exec_binprm+0x10/0x10 [ 12.433970][ C2] ? bprm_execve+0x93/0x490 [ 12.433974][ C2] bprm_execve+0x1af/0x490 [ 12.433978][ C2] kernel_execve+0x252/0x2f0 [ 12.433981][ C2] call_usermodehelper_exec_async+0x23e/0x460 [ 12.433986][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 12.433989][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.433992][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.433995][ C2] ret_from_fork+0x240/0x320 [ 12.434000][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 12.434003][ C2] ret_from_fork_asm+0x1a/0x30 [ 12.434011][ C2]