[ 17.481024][ C0] [ 17.481214][ C0] ================================ [ 17.481531][ C0] WARNING: inconsistent lock state [ 17.481847][ C0] 6.15.0-virtme #1 Not tainted [ 17.482094][ C0] -------------------------------- [ 17.482355][ C0] inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. [ 17.482658][ C0] ksft_runner.sh/219 [HC0[0]:SC1[1]:HE1:SE0] takes: [ 17.482963][ C0] ffffffffb978d218 (&xa->xa_lock#8){+.?.}-{3:3}, at: xa_set_mark+0x73/0x120 [ 17.483402][ C0] {SOFTIRQ-ON-W} state was registered at: [ 17.483680][ C0] __lock_acquire+0x20b/0x7e0 [ 17.483956][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.484224][ C0] _raw_spin_lock+0x33/0x40 [ 17.484497][ C0] xa_store+0x1c/0x50 [ 17.484679][ C0] ref_tracker_dir_debugfs+0x168/0x1b0 [ 17.484922][ C0] init_net_debugfs+0x15/0x70 [ 17.485164][ C0] do_one_initcall+0x8c/0x1e0 [ 17.485417][ C0] do_initcalls+0x176/0x280 [ 17.485662][ C0] kernel_init_freeable+0x22d/0x300 [ 17.485904][ C0] kernel_init+0x20/0x200 [ 17.486145][ C0] ret_from_fork+0x240/0x320 [ 17.486408][ C0] ret_from_fork_asm+0x1a/0x30 [ 17.486646][ C0] irq event stamp: 60638 [ 17.486834][ C0] hardirqs last enabled at (60638): [] _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.487332][ C0] hardirqs last disabled at (60637): [] _raw_spin_lock_irqsave+0x5b/0x60 [ 17.487817][ C0] softirqs last enabled at (58862): [] handle_softirqs+0x358/0x620 [ 17.488240][ C0] softirqs last disabled at (60073): [] __irq_exit_rcu+0xfa/0x160 [ 17.488673][ C0] [ 17.488673][ C0] other info that might help us debug this: [ 17.489031][ C0] Possible unsafe locking scenario: [ 17.489031][ C0] [ 17.489401][ C0] CPU0 [ 17.489582][ C0] ---- [ 17.489760][ C0] lock(&xa->xa_lock#8); [ 17.489946][ C0] [ 17.490141][ C0] lock(&xa->xa_lock#8); [ 17.490414][ C0] [ 17.490414][ C0] *** DEADLOCK *** [ 17.490414][ C0] [ 17.490772][ C0] 5 locks held by ksft_runner.sh/219: [ 17.491019][ C0] #0: ffffffffb6edaa30 (dup_mmap_sem){.+.+}-{0:0}, at: copy_mm+0x2ad/0x5e0 [ 17.491572][ C0] #1: ffff88800ab2a1a0 (&mm->mmap_lock){++++}-{4:4}, at: dup_mmap+0xed/0x1800 [ 17.492285][ C0] #2: ffff8880031aeb20 (&mm->mmap_lock/1){+.+.}-{4:4}, at: dup_mmap+0x15a/0x1800 [ 17.493013][ C0] #3: ffffffffb6f81e90 (remove_cache_srcu){.+.+}-{0:0}, at: kasan_quarantine_reduce+0x88/0x1e0 [ 17.493840][ C0] #4: ffffffffb6d793c0 (rcu_callback){....}-{0:0}, at: rcu_do_batch+0x2e4/0xf20 [ 17.494562][ C0] [ 17.494562][ C0] stack backtrace: [ 17.495050][ C0] CPU: 0 UID: 0 PID: 219 Comm: ksft_runner.sh Not tainted 6.15.0-virtme #1 PREEMPT(full) [ 17.495058][ C0] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.495061][ C0] Call Trace: [ 17.495065][ C0] [ 17.495068][ C0] dump_stack_lvl+0x82/0xd0 [ 17.495080][ C0] print_usage_bug.part.0+0x25f/0x360 [ 17.495089][ C0] mark_lock_irq+0x343/0x400 [ 17.495098][ C0] mark_lock+0x174/0x2f0 [ 17.495103][ C0] mark_usage+0x46/0x150 [ 17.495108][ C0] __lock_acquire+0x20b/0x7e0 [ 17.495112][ C0] ? unwind_next_frame+0x4f8/0x1e10 [ 17.495119][ C0] ? arch_stack_walk+0xa1/0xf0 [ 17.495126][ C0] lock_acquire.part.0+0xb6/0x240 [ 17.495131][ C0] ? xa_set_mark+0x73/0x120 [ 17.495137][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.495145][ C0] ? lock_acquire+0x10c/0x170 [ 17.495149][ C0] ? xa_set_mark+0x73/0x120 [ 17.495153][ C0] _raw_spin_lock+0x33/0x40 [ 17.495160][ C0] ? xa_set_mark+0x73/0x120 [ 17.495164][ C0] xa_set_mark+0x73/0x120 [ 17.495168][ C0] ? __pfx_xa_set_mark+0x10/0x10 [ 17.495172][ C0] ? __lock_acquire+0x44d/0x7e0 [ 17.495182][ C0] ? find_held_lock+0x2b/0x80 [ 17.495188][ C0] ref_tracker_dir_exit+0xb2/0x740 [ 17.495197][ C0] ? mark_held_locks+0x49/0x80 [ 17.495202][ C0] ? _raw_spin_unlock_irqrestore+0x5d/0x80 [ 17.495209][ C0] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 17.495215][ C0] ? ref_tracker_free+0x35d/0x900 [ 17.495221][ C0] ? __lock_acquire+0x44d/0x7e0 [ 17.495225][ C0] ? __pfx_ref_tracker_free+0x10/0x10 [ 17.495230][ C0] ? __sk_destruct+0x383/0x780 [ 17.495239][ C0] ? rcu_do_batch+0x34f/0xf20 [ 17.495245][ C0] ? rcu_core+0x2bb/0x500 [ 17.495249][ C0] ? handle_softirqs+0x21b/0x620 [ 17.495257][ C0] __put_net+0x83/0x140 [ 17.495265][ C0] ? __kernel_text_address+0x12/0x40 [ 17.495273][ C0] ? __pfx___put_net+0x10/0x10 [ 17.495281][ C0] ? bpf_sk_storage_free+0x9f/0x1c0 [ 17.495290][ C0] __sk_destruct+0x58a/0x780 [ 17.495296][ C0] ? rcu_do_batch+0x34a/0xf20 [ 17.495300][ C0] rcu_do_batch+0x34f/0xf20 [ 17.495307][ C0] ? find_held_lock+0x2b/0x80 [ 17.495313][ C0] ? __pfx_rcu_do_batch+0x10/0x10 [ 17.495319][ C0] ? mark_held_locks+0x49/0x80 [ 17.495324][ C0] ? note_gp_changes+0x182/0x1e0 [ 17.495330][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.495339][ C0] rcu_core+0x2bb/0x500 [ 17.495344][ C0] handle_softirqs+0x21b/0x620 [ 17.495352][ C0] __irq_exit_rcu+0xfa/0x160 [ 17.495357][ C0] irq_exit_rcu+0xe/0x30 [ 17.495362][ C0] sysvec_apic_timer_interrupt+0xa8/0xc0 [ 17.495368][ C0] [ 17.495370][ C0] [ 17.495372][ C0] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 17.495379][ C0] RIP: 0010:debug_lockdep_rcu_enabled+0xe/0x40 [ 17.495386][ C0] Code: 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 8b 05 a6 c7 a2 01 85 c0 74 20 <8b> 05 30 d7 a2 01 85 c0 74 16 65 48 8b 05 f8 b4 97 02 8b 80 4c 0a [ 17.495391][ C0] RSP: 0018:ffffc90000ab7438 EFLAGS: 00000202 [ 17.495397][ C0] RAX: 0000000000000002 RBX: dffffc0000000000 RCX: ffffc90000ab7404 [ 17.495401][ C0] RDX: 0000000000000000 RSI: ffffffffb688de21 RDI: 00007f1ef534ea47 [ 17.495404][ C0] RBP: 00007f1ef534ea47 R08: 0000000000000000 R09: 0000000000000001 [ 17.495408][ C0] R10: 0000000000000000 R11: ffffffffb6d794e0 R12: ffffffffb77f69e0 [ 17.495411][ C0] R13: 0000000000000000 R14: ffff88800a9245c0 R15: ffff8880010407c0 [ 17.495423][ C0] ftrace_ops_trampoline+0x2a/0x110 [ 17.495432][ C0] is_ftrace_trampoline+0x9/0x20 [ 17.495437][ C0] kernel_text_address+0x4a/0xe0 [ 17.495443][ C0] __kernel_text_address+0x12/0x40 [ 17.495449][ C0] unwind_get_return_address+0x5e/0xa0 [ 17.495455][ C0] ? __pfx_stack_trace_consume_entry+0x10/0x10 [ 17.495462][ C0] arch_stack_walk+0xa1/0xf0 [ 17.495473][ C0] stack_trace_save+0x93/0xd0 [ 17.495478][ C0] ? __pfx_stack_trace_save+0x10/0x10 [ 17.495482][ C0] ? check_bytes_and_report+0x6d/0x150 [ 17.495495][ C0] ? check_object+0x164/0x3a0 [ 17.495500][ C0] set_track_prepare+0x30/0x70 [ 17.495505][ C0] ? kasan_quarantine_reduce+0x195/0x1e0 [ 17.495511][ C0] ? __kasan_slab_alloc+0x49/0x70 [ 17.495517][ C0] ? kmem_cache_alloc_bulk_noprof+0xde/0x170 [ 17.495523][ C0] ? mas_dup_alloc.isra.0+0x375/0x500 [ 17.495530][ C0] ? mas_dup_build+0x245/0xa50 [ 17.495535][ C0] ? __mt_dup+0xdd/0x180 [ 17.495540][ C0] ? dup_mmap+0x30b/0x1800 [ 17.495545][ C0] ? copy_mm+0x2b8/0x5e0 [ 17.495552][ C0] ? copy_process+0x1a7b/0x5210 [ 17.495558][ C0] ? kernel_clone+0xc1/0x510 [ 17.495562][ C0] ? __do_sys_clone+0xb5/0x100 [ 17.495566][ C0] ? do_syscall_64+0xc1/0x380 [ 17.495570][ C0] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.495577][ C0] free_to_partial_list+0x1d8/0x340 [ 17.495582][ C0] ? qlist_free_all+0x47/0x120 [ 17.495590][ C0] qlist_free_all+0x4c/0x120 [ 17.495597][ C0] kasan_quarantine_reduce+0x195/0x1e0 [ 17.495602][ C0] __kasan_slab_alloc+0x49/0x70 [ 17.495608][ C0] kmem_cache_alloc_bulk_noprof+0xde/0x170 [ 17.495616][ C0] mas_dup_alloc.isra.0+0x375/0x500 [ 17.495624][ C0] mas_dup_build+0x245/0xa50 [ 17.495632][ C0] ? __lock_acquire+0x44d/0x7e0 [ 17.495641][ C0] __mt_dup+0xdd/0x180 [ 17.495647][ C0] ? __pfx___mt_dup+0x10/0x10 [ 17.495656][ C0] ? find_held_lock+0x2b/0x80 [ 17.495667][ C0] ? dup_mm_exe_file+0x7f/0x130 [ 17.495673][ C0] dup_mmap+0x30b/0x1800 [ 17.495679][ C0] ? rcu_read_lock_any_held+0x43/0xb0 [ 17.495693][ C0] ? __pfx_dup_mmap+0x10/0x10 [ 17.495704][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.495713][ C0] copy_mm+0x2b8/0x5e0 [ 17.495721][ C0] copy_process+0x1a7b/0x5210 [ 17.495727][ C0] ? do_fault_around+0x2d0/0x4c0 [ 17.495735][ C0] ? find_held_lock+0x2b/0x80 [ 17.495745][ C0] ? __pfx_copy_process+0x10/0x10 [ 17.495752][ C0] ? __lock_acquire+0x44d/0x7e0 [ 17.495760][ C0] ? __mutex_trylock_common+0xf9/0x260 [ 17.495770][ C0] kernel_clone+0xc1/0x510 [ 17.495776][ C0] ? __pfx_kernel_clone+0x10/0x10 [ 17.495783][ C0] ? find_held_lock+0x2b/0x80 [ 17.495788][ C0] ? ovl_llseek+0x173/0x260 [ 17.495795][ C0] ? __lock_release+0x5d/0x170 [ 17.495803][ C0] ? ovl_llseek+0x173/0x260 [ 17.495810][ C0] __do_sys_clone+0xb5/0x100 [ 17.495814][ C0] ? __pfx___do_sys_clone+0x10/0x10 [ 17.495825][ C0] ? rcu_is_watching+0x12/0xc0 [ 17.495829][ C0] ? do_syscall_64+0x85/0x380 [ 17.495834][ C0] ? lockdep_hardirqs_on+0x7c/0x110 [ 17.495839][ C0] do_syscall_64+0xc1/0x380 [ 17.495845][ C0] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 17.495850][ C0] RIP: 0033:0x7f1ef534ea47 [ 17.495857][ C0] Code: 00 00 00 f3 0f 1e fa 64 48 8b 04 25 10 00 00 00 45 31 c0 31 d2 31 f6 bf 11 00 20 01 4c 8d 90 d0 02 00 00 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 39 41 89 c0 85 c0 75 2a 64 48 8b 04 25 10 00 [ 17.495861][ C0] RSP: 002b:00007ffd2dc573e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 [ 17.495867][ C0] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f1ef534ea47 [ 17.495870][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 [ 17.495874][ C0] RBP: 0000000000000000 R08: 0000000000000000 R09: 0065726168736e75 [ 17.495877][ C0] R10: 00007f1ef5233a10 R11: 0000000000000246 R12: 0000000000000000 [ 17.495880][ C0] R13: 00007ffd2dc57520 R14: 00005618f5e6ff27 R15: 0000561912cd0670 [ 17.495890][ C0]