================================ WARNING: inconsistent lock state 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. syz-executor.0/9487 [HC0[0]:SC1[1]:HE0:SE0] takes: ffff8880296d2948 (&timer->lock){+.?.}-{2:2}, at: class_spinlock_irqsave_constructor include/linux/spinlock.h:574 [inline] ffff8880296d2948 (&timer->lock){+.?.}-{2:2}, at: snd_timer_interrupt.part.0+0x31/0xd80 sound/core/timer.c:818 {SOFTIRQ-ON-W} state was registered at: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x540 kernel/locking/lockdep.c:5719 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline] _raw_spin_lock+0x2e/0x40 kernel/locking/spinlock.c:154 spin_lock include/linux/spinlock.h:351 [inline] class_spinlock_constructor include/linux/spinlock.h:561 [inline] snd_timer_close_locked+0x65/0xbd0 sound/core/timer.c:412 snd_timer_close+0x8b/0xf0 sound/core/timer.c:464 snd_seq_timer_close+0xa4/0x100 sound/core/seq/seq_timer.c:302 queue_delete+0x49/0xa0 sound/core/seq/seq_queue.c:126 snd_seq_queue_client_leave+0x37/0x1a0 sound/core/seq/seq_queue.c:543 seq_free_client1.part.0+0x10a/0x260 sound/core/seq/seq_clientmgr.c:285 seq_free_client1 sound/core/seq/seq_clientmgr.c:278 [inline] seq_free_client+0x74/0x170 sound/core/seq/seq_clientmgr.c:306 snd_seq_release+0x50/0xe0 sound/core/seq/seq_clientmgr.c:387 __fput+0x270/0xb80 fs/file_table.c:422 __fput_sync+0x47/0x50 fs/file_table.c:507 __do_sys_close fs/open.c:1556 [inline] __se_sys_close fs/open.c:1541 [inline] __x64_sys_close+0x86/0x100 fs/open.c:1541 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6d/0x75 irq event stamp: 3215 hardirqs last enabled at (3214): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:159 [inline] hardirqs last enabled at (3214): [] _raw_spin_unlock_irq+0x23/0x50 kernel/locking/spinlock.c:202 hardirqs last disabled at (3215): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (3215): [] _raw_spin_lock_irqsave+0x52/0x60 kernel/locking/spinlock.c:162 softirqs last enabled at (96): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (96): [] __do_softirq+0x596/0x8de kernel/softirq.c:583 softirqs last disabled at (3211): [] invoke_softirq kernel/softirq.c:428 [inline] softirqs last disabled at (3211): [] __irq_exit_rcu kernel/softirq.c:633 [inline] softirqs last disabled at (3211): [] irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&timer->lock); lock(&timer->lock); *** DEADLOCK *** 2 locks held by syz-executor.0/9487: #0: ffff88801ec99148 (&vma->vm_lock->lock){++++}-{3:3}, at: vma_start_read include/linux/mm.h:663 [inline] #0: ffff88801ec99148 (&vma->vm_lock->lock){++++}-{3:3}, at: lock_vma_under_rcu+0x1e2/0x950 mm/memory.c:5626 #1: ffffc90000007cb0 ((&priv->tlist)){+.-.}-{0:0}, at: call_timer_fn+0x11a/0x5b0 kernel/time/timer.c:1789 stack backtrace: CPU: 0 PID: 9487 Comm: syz-executor.0 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_usage_bug kernel/locking/lockdep.c:3971 [inline] valid_state kernel/locking/lockdep.c:4013 [inline] mark_lock_irq kernel/locking/lockdep.c:4216 [inline] mark_lock+0x923/0xc60 kernel/locking/lockdep.c:4678 mark_usage kernel/locking/lockdep.c:4567 [inline] __lock_acquire+0x13d4/0x3b30 kernel/locking/lockdep.c:5091 lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1b1/0x540 kernel/locking/lockdep.c:5719 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3a/0x60 kernel/locking/spinlock.c:162 class_spinlock_irqsave_constructor include/linux/spinlock.h:574 [inline] snd_timer_interrupt.part.0+0x31/0xd80 sound/core/timer.c:818 snd_timer_interrupt sound/core/timer.c:1107 [inline] snd_timer_s_function+0x14f/0x200 sound/core/timer.c:1107 call_timer_fn+0x1a0/0x5b0 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers+0x74b/0xab0 kernel/time/timer.c:2408 __run_timer_base kernel/time/timer.c:2419 [inline] __run_timer_base kernel/time/timer.c:2412 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2428 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2438 __do_softirq+0x218/0x8de kernel/softirq.c:554 invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:633 [inline] irq_exit_rcu+0xb9/0x120 kernel/softirq.c:645 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:_raw_spin_trylock+0x5/0x80 kernel/locking/spinlock.c:137 Code: e0 5b 5d 41 5c c3 cc cc cc cc e8 16 06 be f6 eb be 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 55 <48> 89 fd bf 01 00 00 00 53 e8 5d 5d 87 f6 48 89 ef e8 95 bb 95 f6 RSP: 0000:ffffc9000372f810 EFLAGS: 00000282 RAX: 1ffffffff1a46764 RBX: ffff8880b9444580 RCX: 1ffffffff28d0b54 RDX: 1ffff1100c258298 RSI: ffffffff8b6e8820 RDI: ffff8880b9444580 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffff88813fffa740 R11: 0000000000000100 R12: 0000000000000003 R13: 00000000000584bd R14: dffffc0000000000 R15: 0000000000000003 spin_trylock include/linux/spinlock.h:361 [inline] rmqueue_pcplist mm/page_alloc.c:2849 [inline] rmqueue mm/page_alloc.c:2899 [inline] get_page_from_freelist+0xb39/0x3780 mm/page_alloc.c:3308 __alloc_pages+0x22b/0x2410 mm/page_alloc.c:4569 alloc_pages_mpol+0x258/0x600 mm/mempolicy.c:2133 vma_alloc_folio+0xad/0x220 mm/mempolicy.c:2172 alloc_anon_folio mm/memory.c:4234 [inline] do_anonymous_page mm/memory.c:4292 [inline] do_pte_missing mm/memory.c:3743 [inline] handle_pte_fault mm/memory.c:5164 [inline] __handle_mm_fault+0x25ca/0x4920 mm/memory.c:5305 handle_mm_fault+0x476/0xa00 mm/memory.c:5470 do_user_addr_fault+0x426/0x1080 arch/x86/mm/fault.c:1362 handle_page_fault arch/x86/mm/fault.c:1505 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1563 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7fc7b3c298f0 Code: 39 4f 08 72 4c 8d 4d ff 85 ed 74 33 66 0f 1f 44 00 00 48 39 f0 72 1b 4d 8b 07 49 89 c1 49 29 f1 47 0f b6 0c 08 45 84 c9 74 08 <45> 88 0c 00 49 8b 47 10 48 83 c0 01 49 89 47 10 83 e9 01 73 d3 41 RSP: 002b:00007fc7b37dd530 EFLAGS: 00010202 RAX: 00000000000dc000 RBX: 00007fc7b37dd5d0 RCX: 000000000000001e RDX: 0000000000006fff RSI: 0000000000001000 RDI: 00007fc7b37dd670 RBP: 000000000000001f R08: 00007fc7a9a00000 R09: 0000000000000001 R10: 0000000020014bc2 R11: 0000000000012729 R12: 0000000000000c01 R13: 00007fc7b3cece40 R14: 0000000000000017 R15: 00007fc7b37dd670 ---------------- Code disassembly (best guess): 0: e0 5b loopne 0x5d 2: 5d pop %rbp 3: 41 5c pop %r12 5: c3 ret 6: cc int3 7: cc int3 8: cc int3 9: cc int3 a: e8 16 06 be f6 call 0xf6be0625 f: eb be jmp 0xffffffcf 11: 0f 1f 40 00 nopl 0x0(%rax) 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 90 nop 1f: 90 nop 20: 90 nop 21: 90 nop 22: 90 nop 23: 90 nop 24: 90 nop 25: f3 0f 1e fa endbr64 29: 55 push %rbp * 2a: 48 89 fd mov %rdi,%rbp <-- trapping instruction 2d: bf 01 00 00 00 mov $0x1,%edi 32: 53 push %rbx 33: e8 5d 5d 87 f6 call 0xf6875d95 38: 48 89 ef mov %rbp,%rdi 3b: e8 95 bb 95 f6 call 0xf695bbd5