[ 13.876669][ C2] [ 13.876833][ C2] ================================ [ 13.877060][ C2] WARNING: inconsistent lock state [ 13.877273][ C2] 6.15.0-virtme #1 Not tainted [ 13.877489][ C2] -------------------------------- [ 13.877701][ C2] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 13.877966][ C2] modprobe/234 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 13.878229][ C2] ffffffffbb9c5af8 (pin_fs_lock){+.?.}-{3:3}, at: simple_pin_fs+0x24/0x150 [ 13.878608][ C2] {SOFTIRQ-ON-W} state was registered at: [ 13.878820][ C2] __lock_acquire+0x20b/0x7e0 [ 13.879043][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.879255][ C2] _raw_spin_lock+0x33/0x40 [ 13.879473][ C2] simple_pin_fs+0x24/0x150 [ 13.879683][ C2] start_creating.part.0+0x52/0x310 [ 13.879897][ C2] debugfs_create_dir+0x6a/0x540 [ 13.880116][ C2] component_debug_init+0x17/0x30 [ 13.880332][ C2] do_one_initcall+0x8f/0x1e0 [ 13.880545][ C2] do_initcalls+0x176/0x280 [ 13.880761][ C2] kernel_init_freeable+0x22d/0x300 [ 13.880976][ C2] kernel_init+0x20/0x200 [ 13.881190][ C2] ret_from_fork+0x240/0x320 [ 13.881404][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.881616][ C2] irq event stamp: 2242 [ 13.881779][ C2] hardirqs last enabled at (2242): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.882209][ C2] hardirqs last disabled at (2241): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 13.882584][ C2] softirqs last enabled at (1456): [] fpu_flush_thread+0x2b7/0x390 [ 13.882979][ C2] softirqs last disabled at (1651): [] __irq_exit_rcu+0xfa/0x160 [ 13.883360][ C2] [ 13.883360][ C2] other info that might help us debug this: [ 13.883680][ C2] Possible unsafe locking scenario: [ 13.883680][ C2] [ 13.883996][ C2] CPU0 [ 13.884158][ C2] ---- [ 13.884320][ C2] lock(pin_fs_lock); [ 13.884487][ C2] [ 13.884647][ C2] lock(pin_fs_lock); [ 13.884817][ C2] [ 13.884817][ C2] *** DEADLOCK *** [ 13.884817][ C2] [ 13.885156][ C2] 2 locks held by modprobe/234: [ 13.885395][ C2] #0: ffff888009954ba0 (&mm->mmap_lock){++++}-{4:4}, at: vm_mmap_pgoff+0xde/0x2e0 [ 13.885804][ C2] #1: ffffffffbb7774c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 13.886190][ C2] [ 13.886190][ C2] stack backtrace: [ 13.886457][ C2] CPU: 2 UID: 0 PID: 234 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.886462][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.886465][ C2] Call Trace: [ 13.886467][ C2] [ 13.886470][ C2] dump_stack_lvl+0x82/0xd0 [ 13.886478][ C2] print_usage_bug.part.0+0x25f/0x360 [ 13.886485][ C2] mark_lock_irq+0x343/0x400 [ 13.886489][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.886495][ C2] ? save_trace+0x52/0x170 [ 13.886500][ C2] mark_lock+0x174/0x2f0 [ 13.886504][ C2] mark_usage+0x46/0x150 [ 13.886507][ C2] __lock_acquire+0x20b/0x7e0 [ 13.886511][ C2] ? __lock_acquire+0x44d/0x7e0 [ 13.886517][ C2] lock_acquire.part.0+0xb6/0x240 [ 13.886522][ C2] ? simple_pin_fs+0x24/0x150 [ 13.886529][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.886537][ C2] ? lock_acquire+0x10c/0x170 [ 13.886541][ C2] ? simple_pin_fs+0x24/0x150 [ 13.886545][ C2] _raw_spin_lock+0x33/0x40 [ 13.886550][ C2] ? simple_pin_fs+0x24/0x150 [ 13.886552][ C2] simple_pin_fs+0x24/0x150 [ 13.886556][ C2] debugfs_remove+0x35/0x70 [ 13.886560][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.886565][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.886568][ C2] ? __sk_destruct+0x383/0x780 [ 13.886575][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.886578][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.886581][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.886586][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.886592][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.886596][ C2] ? lock_release+0x91/0xc0 [ 13.886599][ C2] ? unwind_next_frame+0x4f3/0x1e10 [ 13.886601][ C2] ? arch_stack_walk+0x8b/0xf0 [ 13.886605][ C2] ? stack_trace_save+0x93/0xd0 [ 13.886610][ C2] ? set_track_prepare+0x30/0x70 [ 13.886614][ C2] ? ___slab_alloc+0xba4/0x1170 [ 13.886618][ C2] ? __slab_alloc.constprop.0+0x5b/0xb0 [ 13.886622][ C2] ? kmem_cache_alloc_noprof+0x1ab/0x330 [ 13.886627][ C2] __put_net+0x19/0x60 [ 13.886633][ C2] __sk_destruct+0x58a/0x780 [ 13.886637][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.886640][ C2] rcu_do_batch+0x34c/0xf20 [ 13.886645][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.886649][ C2] ? mark_held_locks+0x49/0x80 [ 13.886652][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.886655][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.886660][ C2] rcu_core+0x2bb/0x500 [ 13.886665][ C2] handle_softirqs+0x218/0x620 [ 13.886670][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.886674][ C2] irq_exit_rcu+0xe/0x30 [ 13.886677][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.886680][ C2] [ 13.886681][ C2] [ 13.886683][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.886686][ C2] RIP: 0010:lock_release+0x91/0xc0 [ 13.886690][ C2] Code: c7 82 ab 27 bb e8 bf f9 7b 02 b8 ff ff ff ff 65 0f c1 05 42 fe 14 05 83 f8 01 75 16 9c 58 f6 c4 02 75 2c 80 e7 02 74 01 fb 5b <5d> 41 5c e9 97 35 7e 02 90 0f 0b 90 48 c7 c7 5c 17 29 bb e8 87 f9 [ 13.886693][ C2] RSP: 0018:ffffc90000b57128 EFLAGS: 00000202 [ 13.886696][ C2] RAX: 0000000000000046 RBX: 1ffff9200016ae31 RCX: ffffc90000b570ec [ 13.886698][ C2] RDX: 0000000000000001 RSI: ffffffffbb27ab82 RDI: ffffffffbaa53ca0 [ 13.886700][ C2] RBP: ffffffffbb7775e0 R08: 0000000000000000 R09: ffffc90000b57281 [ 13.886702][ C2] R10: 0000000000000000 R11: ffffc90000b57280 R12: ffffffffb7e13a2e [ 13.886704][ C2] R13: ffffc90000b57240 R14: ffffc90000b50000 R15: ffffc90000b57a10 [ 13.886706][ C2] ? unwind_next_frame+0x4ee/0x1e10 [ 13.886713][ C2] unwind_next_frame+0x4f3/0x1e10 [ 13.886716][ C2] ? __mmap_region+0x7b2/0x1780 [ 13.886722][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.886727][ C2] ? __mmap_region+0x7b2/0x1780 [ 13.886730][ C2] ? kernel_text_address+0x17/0xe0 [ 13.886735][ C2] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 13.886739][ C2] arch_stack_walk+0x8b/0xf0 [ 13.886743][ C2] ? do_mmap+0x9b5/0xf10 [ 13.886748][ C2] stack_trace_save+0x93/0xd0 [ 13.886751][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 13.886755][ C2] ? mark_held_locks+0x49/0x80 [ 13.886759][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.886763][ C2] set_track_prepare+0x30/0x70 [ 13.886765][ C2] ? kmem_cache_alloc_noprof+0x1ab/0x330 [ 13.886768][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.886773][ C2] ? mas_preallocate+0x212/0x5d0 [ 13.886776][ C2] ? __mmap_region+0x7b2/0x1780 [ 13.886779][ C2] ? get_partial_node.part.0+0x1c2/0x3b0 [ 13.886784][ C2] ___slab_alloc+0xba4/0x1170 [ 13.886788][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.886793][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.886796][ C2] __slab_alloc.constprop.0+0x5b/0xb0 [ 13.886800][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.886803][ C2] kmem_cache_alloc_noprof+0x1ab/0x330 [ 13.886806][ C2] ? mas_wr_store_type+0x778/0x1b30 [ 13.886811][ C2] mas_alloc_nodes+0x108/0x7f0 [ 13.886816][ C2] mas_preallocate+0x212/0x5d0 [ 13.886819][ C2] ? __pfx_mas_preallocate+0x10/0x10 [ 13.886822][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.886828][ C2] ? vma_merge_new_range+0x860/0xb40 [ 13.886831][ C2] ? lockdep_init_map_type+0x4b/0x280 [ 13.886836][ C2] __mmap_region+0x7b2/0x1780 [ 13.886841][ C2] ? __pfx___mmap_region+0x10/0x10 [ 13.886845][ C2] ? __virt_addr_valid+0x22e/0x450 [ 13.886857][ C2] ? vms_complete_munmap_vmas+0x53c/0x9c0 [ 13.886860][ C2] ? vms_gather_munmap_vmas+0x76a/0xb50 [ 13.886874][ C2] ? mmap_region+0xe1/0x2e0 [ 13.886879][ C2] do_mmap+0x9b5/0xf10 [ 13.886883][ C2] ? __pfx_do_mmap+0x10/0x10 [ 13.886885][ C2] ? down_write_killable+0x15e/0x250 [ 13.886888][ C2] ? __pfx_down_write_killable+0x10/0x10 [ 13.886891][ C2] ? __lock_release+0x5d/0x170 [ 13.886896][ C2] vm_mmap_pgoff+0x151/0x2e0 [ 13.886901][ C2] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 13.886906][ C2] ? __pfx_get_random_u64+0x10/0x10 [ 13.886913][ C2] elf_load+0x123/0x700 [ 13.886919][ C2] load_elf_binary+0x9c2/0x2960 [ 13.886926][ C2] ? find_held_lock+0x2b/0x80 [ 13.886929][ C2] ? __pfx_load_elf_binary+0x10/0x10 [ 13.886931][ C2] ? exec_binprm+0x237/0x640 [ 13.886938][ C2] exec_binprm+0x255/0x640 [ 13.886943][ C2] ? __pfx_exec_binprm+0x10/0x10 [ 13.886945][ C2] ? bprm_execve+0x93/0x490 [ 13.886950][ C2] bprm_execve+0x1af/0x490 [ 13.886953][ C2] kernel_execve+0x252/0x2f0 [ 13.886957][ C2] call_usermodehelper_exec_async+0x23e/0x460 [ 13.886963][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.886966][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.886969][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.886972][ C2] ret_from_fork+0x240/0x320 [ 13.886977][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.886980][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.886988][ C2] [ 13.917545][ C2] BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1576 [ 13.918078][ C2] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 234, name: modprobe [ 13.918449][ C2] preempt_count: 101, expected: 0 [ 13.918684][ C2] RCU nest depth: 1, expected: 0 [ 13.919041][ C2] INFO: lockdep is turned off. [ 13.919264][ C2] Preemption disabled at: [ 13.919266][ C2] [] __slab_alloc.constprop.0+0x2c/0xb0 [ 13.919712][ C2] CPU: 2 UID: 0 PID: 234 Comm: modprobe Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 13.919718][ C2] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.919721][ C2] Call Trace: [ 13.919723][ C2] [ 13.919728][ C2] dump_stack_lvl+0xb0/0xd0 [ 13.919736][ C2] __might_resched+0x360/0x5a0 [ 13.919746][ C2] down_write+0x72/0x210 [ 13.919751][ C2] ? __pfx_down_write+0x10/0x10 [ 13.919754][ C2] ? simple_recursive_removal+0x33/0x610 [ 13.919760][ C2] ? rcu_is_watching+0x12/0xc0 [ 13.919769][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.919773][ C2] simple_recursive_removal+0x6a/0x610 [ 13.919776][ C2] ? do_raw_spin_unlock+0x58/0x220 [ 13.919779][ C2] ? __pfx_remove_one+0x10/0x10 [ 13.919786][ C2] debugfs_remove+0x44/0x70 [ 13.919789][ C2] ref_tracker_dir_exit+0xcf/0x740 [ 13.919795][ C2] ? __pfx_ref_tracker_free+0x10/0x10 [ 13.919797][ C2] ? __sk_destruct+0x383/0x780 [ 13.919804][ C2] ? rcu_do_batch+0x34c/0xf20 [ 13.919809][ C2] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 13.919812][ C2] ? irq_exit_rcu+0xe/0x30 [ 13.919819][ C2] ? sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.919824][ C2] ? asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.919829][ C2] ? lock_release+0x91/0xc0 [ 13.919834][ C2] ? unwind_next_frame+0x4f3/0x1e10 [ 13.919839][ C2] ? arch_stack_walk+0x8b/0xf0 [ 13.919844][ C2] ? stack_trace_save+0x93/0xd0 [ 13.919848][ C2] ? set_track_prepare+0x30/0x70 [ 13.919850][ C2] ? ___slab_alloc+0xba4/0x1170 [ 13.919853][ C2] ? __slab_alloc.constprop.0+0x5b/0xb0 [ 13.919857][ C2] ? kmem_cache_alloc_noprof+0x1ab/0x330 [ 13.919862][ C2] __put_net+0x19/0x60 [ 13.919868][ C2] __sk_destruct+0x58a/0x780 [ 13.919873][ C2] ? rcu_do_batch+0x34a/0xf20 [ 13.919875][ C2] rcu_do_batch+0x34c/0xf20 [ 13.919881][ C2] ? __pfx_rcu_do_batch+0x10/0x10 [ 13.919884][ C2] ? mark_held_locks+0x49/0x80 [ 13.919887][ C2] ? note_gp_changes+0x182/0x1e0 [ 13.919891][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.919895][ C2] rcu_core+0x2bb/0x500 [ 13.919900][ C2] handle_softirqs+0x218/0x620 [ 13.919906][ C2] __irq_exit_rcu+0xfa/0x160 [ 13.919909][ C2] irq_exit_rcu+0xe/0x30 [ 13.919912][ C2] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 13.919916][ C2] [ 13.919917][ C2] [ 13.919918][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 13.919921][ C2] RIP: 0010:lock_release+0x91/0xc0 [ 13.919926][ C2] Code: c7 82 ab 27 bb e8 bf f9 7b 02 b8 ff ff ff ff 65 0f c1 05 42 fe 14 05 83 f8 01 75 16 9c 58 f6 c4 02 75 2c 80 e7 02 74 01 fb 5b <5d> 41 5c e9 97 35 7e 02 90 0f 0b 90 48 c7 c7 5c 17 29 bb e8 87 f9 [ 13.919928][ C2] RSP: 0018:ffffc90000b57128 EFLAGS: 00000202 [ 13.919934][ C2] RAX: 0000000000000046 RBX: 1ffff9200016ae31 RCX: ffffc90000b570ec [ 13.919936][ C2] RDX: 0000000000000001 RSI: ffffffffbb27ab82 RDI: ffffffffbaa53ca0 [ 13.919938][ C2] RBP: ffffffffbb7775e0 R08: 0000000000000000 R09: ffffc90000b57281 [ 13.919940][ C2] R10: 0000000000000000 R11: ffffc90000b57280 R12: ffffffffb7e13a2e [ 13.919942][ C2] R13: ffffc90000b57240 R14: ffffc90000b50000 R15: ffffc90000b57a10 [ 13.919945][ C2] ? unwind_next_frame+0x4ee/0x1e10 [ 13.919952][ C2] unwind_next_frame+0x4f3/0x1e10 [ 13.919955][ C2] ? __mmap_region+0x7b2/0x1780 [ 13.919961][ C2] ? __pfx_unwind_next_frame+0x10/0x10 [ 13.919966][ C2] ? __mmap_region+0x7b2/0x1780 [ 13.919969][ C2] ? kernel_text_address+0x17/0xe0 [ 13.919975][ C2] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 13.919978][ C2] arch_stack_walk+0x8b/0xf0 [ 13.919983][ C2] ? do_mmap+0x9b5/0xf10 [ 13.919988][ C2] stack_trace_save+0x93/0xd0 [ 13.919991][ C2] ? __pfx_stack_trace_save+0x10/0x10 [ 13.919995][ C2] ? mark_held_locks+0x49/0x80 [ 13.919998][ C2] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 13.920004][ C2] set_track_prepare+0x30/0x70 [ 13.920006][ C2] ? kmem_cache_alloc_noprof+0x1ab/0x330 [ 13.920010][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.920015][ C2] ? mas_preallocate+0x212/0x5d0 [ 13.920018][ C2] ? __mmap_region+0x7b2/0x1780 [ 13.920021][ C2] ? get_partial_node.part.0+0x1c2/0x3b0 [ 13.920026][ C2] ___slab_alloc+0xba4/0x1170 [ 13.920030][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.920035][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.920038][ C2] __slab_alloc.constprop.0+0x5b/0xb0 [ 13.920043][ C2] ? mas_alloc_nodes+0x108/0x7f0 [ 13.920046][ C2] kmem_cache_alloc_noprof+0x1ab/0x330 [ 13.920049][ C2] ? mas_wr_store_type+0x778/0x1b30 [ 13.920055][ C2] mas_alloc_nodes+0x108/0x7f0 [ 13.920060][ C2] mas_preallocate+0x212/0x5d0 [ 13.920063][ C2] ? __pfx_mas_preallocate+0x10/0x10 [ 13.920065][ C2] ? _raw_spin_unlock_irqrestore+0x46/0x80 [ 13.920071][ C2] ? vma_merge_new_range+0x860/0xb40 [ 13.920075][ C2] ? lockdep_init_map_type+0x4b/0x280 [ 13.920079][ C2] __mmap_region+0x7b2/0x1780 [ 13.920084][ C2] ? __pfx___mmap_region+0x10/0x10 [ 13.920088][ C2] ? __virt_addr_valid+0x22e/0x450 [ 13.920099][ C2] ? vms_complete_munmap_vmas+0x53c/0x9c0 [ 13.920103][ C2] ? vms_gather_munmap_vmas+0x76a/0xb50 [ 13.920116][ C2] ? mmap_region+0xe1/0x2e0 [ 13.920121][ C2] do_mmap+0x9b5/0xf10 [ 13.920126][ C2] ? __pfx_do_mmap+0x10/0x10 [ 13.920128][ C2] ? down_write_killable+0x15e/0x250 [ 13.920131][ C2] ? __pfx_down_write_killable+0x10/0x10 [ 13.920133][ C2] ? __lock_release+0x5d/0x170 [ 13.920138][ C2] vm_mmap_pgoff+0x151/0x2e0 [ 13.920144][ C2] ? __pfx_vm_mmap_pgoff+0x10/0x10 [ 13.920149][ C2] ? __pfx_get_random_u64+0x10/0x10 [ 13.920155][ C2] elf_load+0x123/0x700 [ 13.920161][ C2] load_elf_binary+0x9c2/0x2960 [ 13.920168][ C2] ? find_held_lock+0x2b/0x80 [ 13.920171][ C2] ? __pfx_load_elf_binary+0x10/0x10 [ 13.920173][ C2] ? exec_binprm+0x237/0x640 [ 13.920180][ C2] exec_binprm+0x255/0x640 [ 13.920185][ C2] ? __pfx_exec_binprm+0x10/0x10 [ 13.920187][ C2] ? bprm_execve+0x93/0x490 [ 13.920192][ C2] bprm_execve+0x1af/0x490 [ 13.920195][ C2] kernel_execve+0x252/0x2f0 [ 13.920198][ C2] call_usermodehelper_exec_async+0x23e/0x460 [ 13.920203][ C2] ? lockdep_hardirqs_on+0x7c/0x110 [ 13.920207][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.920209][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.920213][ C2] ret_from_fork+0x240/0x320 [ 13.920219][ C2] ? __pfx_call_usermodehelper_exec_async+0x10/0x10 [ 13.920223][ C2] ret_from_fork_asm+0x1a/0x30 [ 13.920231][ C2] [ 15.094996][ T230] setsockopt-clos (230) used greatest stack depth: 24816 bytes left