./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1170223447 <...> Warning: Permanently added '10.128.0.138' (ED25519) to the list of known hosts. execve("./syz-executor1170223447", ["./syz-executor1170223447"], 0x7ffe636dbe80 /* 10 vars */) = 0 brk(NULL) = 0x55558d021000 brk(0x55558d021d00) = 0x55558d021d00 arch_prctl(ARCH_SET_FS, 0x55558d021380) = 0 set_tid_address(0x55558d021650) = 5063 set_robust_list(0x55558d021660, 24) = 0 rseq(0x55558d021ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1170223447", 4096) = 28 getrandom("\x06\x61\x7b\x94\x15\x2e\xf1\x21", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558d021d00 brk(0x55558d042d00) = 0x55558d042d00 brk(0x55558d043000) = 0x55558d043000 mprotect(0x7f17ed1ee000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 openat(AT_FDCWD, "/dev/sequencer", O_RDWR|O_EXCL) = 3 openat(AT_FDCWD, "/dev/audio", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_LARGEFILE, 000) = 4 write(4, "\xd1\xd6\x69\xc1\x0a\xb1\x0d\xe4\xd9\xf6\x67\xfc\x4a\x29\x9c\x79\x4e\x7d\x7f\x10\xe7\xbc\xd8\x21\xa5\x8b\x56\x32\x57\x99\x80\x27\x50\x0b\x36\xcc\x01\x3c\x52\x49\x3a\x88\x66\xd3\xe9\xc6\x47\xab\x77\x64\x72\x97\x02\x3c\xfc\xb4\x4f\x10\x93\x9f\x19\xab\xcb\x89\x8f\xa8\x9f\xf0\x6d\xc0\xbb\xd7\x4b\x64\x97\x82\x76\x05\x55\x66\xdb\x53\x46\x45\x7c\x5c\x66\xf2\x86\x06\xda\xd3\x7b\x63\x53\xa8", 96) = 96 exit_group(0) = ? syzkaller login: [ 83.222246][ T5063] [ 83.224961][ T5063] ================================ [ 83.231148][ T5063] WARNING: inconsistent lock state [ 83.237486][ T5063] 6.8.0-syzkaller-08951-gfe46a7dd189e #0 Not tainted [ 83.245099][ T5063] -------------------------------- [ 83.252858][ T5063] inconsistent {IN-SOFTIRQ-W} -> {SOFTIRQ-ON-W} usage. [ 83.265824][ T5063] syz-executor117/5063 [HC0[0]:SC0[0]:HE1:SE1] takes: [ 83.280842][ T5063] ffff88802988e948 (&timer->lock){+.?.}-{2:2}, at: snd_timer_close_locked+0x53/0x8d0 [ 83.298449][ T5063] {IN-SOFTIRQ-W} state was registered at: [ 83.309048][ T5063] lock_acquire+0x1e4/0x530 [ 83.315848][ T5063] _raw_spin_lock_irqsave+0xd5/0x120 [ 83.328819][ T5063] snd_timer_notify+0x103/0x3d0 [ 83.335637][ T5063] snd_pcm_drain_done+0x2b8/0x3e0 [ 83.343370][ T5063] snd_pcm_update_state+0x31b/0x410 [ 83.351267][ T5063] snd_pcm_update_hw_ptr0+0x1066/0x1a70 [ 83.361881][ T5063] snd_pcm_period_elapsed_under_stream_lock+0xeb/0x210 [ 83.373971][ T5063] snd_pcm_period_elapsed+0x2c/0x50 [ 83.384138][ T5063] dummy_hrtimer_callback+0x7f/0x180 [ 83.389938][ T5063] __hrtimer_run_queues+0x595/0xd00 [ 83.396750][ T5063] hrtimer_run_softirq+0x19a/0x2c0 [ 83.402704][ T5063] __do_softirq+0x2bc/0x943 [ 83.408638][ T5063] __irq_exit_rcu+0xf2/0x1c0 [ 83.415050][ T5063] irq_exit_rcu+0x9/0x30 [ 83.421823][ T5063] sysvec_apic_timer_interrupt+0xa6/0xc0 [ 83.436390][ T5063] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 83.445918][ T5063] acpi_safe_halt+0x21/0x30 [ 83.455040][ T5063] acpi_idle_enter+0xe4/0x140 [ 83.461509][ T5063] cpuidle_enter_state+0x118/0x490 [ 83.467494][ T5063] cpuidle_enter+0x5d/0xa0 [ 83.476777][ T5063] do_idle+0x375/0x5d0 [ 83.481743][ T5063] cpu_startup_entry+0x42/0x60 [ 83.487675][ T5063] rest_init+0x2e0/0x300 [ 83.493159][ T5063] arch_call_rest_init+0xe/0x10 [ 83.501558][ T5063] start_kernel+0x47a/0x500 [ 83.508146][ T5063] x86_64_start_reservations+0x2a/0x30 [ 83.518206][ T5063] x86_64_start_kernel+0x99/0xa0 [ 83.527957][ T5063] common_startup_64+0x13e/0x147 [ 83.537083][ T5063] irq event stamp: 4745 [ 83.542710][ T5063] hardirqs last enabled at (4745): [] _raw_spin_unlock_irq+0x23/0x50 [ 83.558195][ T5063] hardirqs last disabled at (4744): [] _raw_spin_lock_irq+0xad/0x120 [ 83.572134][ T5063] softirqs last enabled at (4328): [] __irq_exit_rcu+0xf2/0x1c0 [ 83.593627][ T5063] softirqs last disabled at (4301): [] __irq_exit_rcu+0xf2/0x1c0 [ 83.606884][ T5063] [ 83.606884][ T5063] other info that might help us debug this: [ 83.616864][ T5063] Possible unsafe locking scenario: [ 83.616864][ T5063] [ 83.626648][ T5063] CPU0 [ 83.631844][ T5063] ---- [ 83.639104][ T5063] lock(&timer->lock); [ 83.645011][ T5063] [ 83.652324][ T5063] lock(&timer->lock); [ 83.662167][ T5063] [ 83.662167][ T5063] *** DEADLOCK *** [ 83.662167][ T5063] [ 83.674258][ T5063] 3 locks held by syz-executor117/5063: [ 83.681738][ T5063] #0: ffffffff8f2d3228 (register_mutex#4){+.+.}-{3:3}, at: odev_release+0x4e/0x80 [ 83.698735][ T5063] #1: ffff888029063578 (&q->timer_mutex){+.+.}-{3:3}, at: snd_seq_queue_delete+0x5b/0xf0 [ 83.713053][ T5063] #2: ffffffff8f2c1a68 (register_mutex){+.+.}-{3:3}, at: snd_timer_close+0xa3/0x130 [ 83.725868][ T5063] [ 83.725868][ T5063] stack backtrace: [ 83.733247][ T5063] CPU: 0 PID: 5063 Comm: syz-executor117 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0 [ 83.747482][ T5063] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 [ 83.758236][ T5063] Call Trace: [ 83.763993][ T5063] [ 83.767012][ T5063] dump_stack_lvl+0x241/0x360 [ 83.772052][ T5063] ? __pfx_dump_stack_lvl+0x10/0x10 [ 83.780624][ T5063] ? print_usage_bug+0x61a/0x8a0 [ 83.788588][ T5063] ? is_bpf_text_address+0x28d/0x2b0 [ 83.795743][ T5063] valid_state+0x13a/0x1c0 [ 83.803607][ T5063] mark_lock_irq+0xbb/0xc20 [ 83.814234][ T5063] ? arch_stack_walk+0x16d/0x1b0 [ 83.820745][ T5063] ? __pfx_mark_lock_irq+0x10/0x10 [ 83.827756][ T5063] ? stack_trace_save+0x118/0x1d0 [ 83.835904][ T5063] ? __pfx_stack_trace_save+0x10/0x10 [ 83.842385][ T5063] ? save_trace+0x749/0xb40 [ 83.848647][ T5063] mark_lock+0x223/0x350 [ 83.855015][ T5063] __lock_acquire+0x116e/0x1fd0 [ 83.861441][ T5063] lock_acquire+0x1e4/0x530 [ 83.867092][ T5063] ? snd_timer_close_locked+0x53/0x8d0 [ 83.874183][ T5063] ? __pfx___mutex_trylock_common+0x10/0x10 [ 83.880985][ T5063] ? __pfx_lock_acquire+0x10/0x10 [ 83.887429][ T5063] ? rcu_is_watching+0x15/0xb0 [ 83.896723][ T5063] ? trace_contention_end+0x3c/0x100 [ 83.902296][ T5063] ? __mutex_lock+0x2ef/0xd70 [ 83.908817][ T5063] ? snd_timer_close+0xa3/0x130 [ 83.913931][ T5063] _raw_spin_lock+0x2e/0x40 [ 83.919309][ T5063] ? snd_timer_close_locked+0x53/0x8d0 [ 83.928306][ T5063] snd_timer_close_locked+0x53/0x8d0 [ 83.933990][ T5063] snd_timer_close+0xae/0x130 [ 83.939021][ T5063] ? __pfx_snd_timer_close+0x10/0x10 [ 83.944528][ T5063] ? _raw_spin_unlock_irq+0x23/0x50 [ 83.951269][ T5063] ? lockdep_hardirqs_on+0x99/0x150 [ 83.956884][ T5063] snd_seq_timer_close+0xa9/0xe0 [ 83.962076][ T5063] snd_seq_queue_delete+0x8f/0xf0 [ 83.968190][ T5063] snd_seq_oss_release+0x1d3/0x310 [ 83.975098][ T5063] ? __pfx_snd_seq_oss_release+0x10/0x10 [ 83.981089][ T5063] ? __asan_memset+0x23/0x50 [ 83.987528][ T5063] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 83.995379][ T5063] ? evm_file_release+0x140/0x1d0 [ 84.001289][ T5063] ? __pfx_odev_release+0x10/0x10 [ 84.006721][ T5063] odev_release+0x56/0x80 [ 84.012289][ T5063] __fput+0x429/0x8a0 [ 84.016800][ T5063] task_work_run+0x24f/0x310 [ 84.021686][ T5063] ? __pfx_task_work_run+0x10/0x10 [ 84.026901][ T5063] ? switch_task_namespaces+0xe1/0x110 [ 84.032372][ T5063] do_exit+0xa1b/0x27e0 [ 84.036532][ T5063] ? __pfx_do_exit+0x10/0x10 [ 84.041408][ T5063] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 84.047581][ T5063] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 84.054383][ T5063] ? _raw_spin_unlock_irq+0x23/0x50 [ 84.059679][ T5063] ? lockdep_hardirqs_on+0x99/0x150 [ 84.064897][ T5063] do_group_exit+0x207/0x2c0 [ 84.069556][ T5063] __x64_sys_exit_group+0x3f/0x40 [ 84.074632][ T5063] do_syscall_64+0xfb/0x240 [ 84.079320][ T5063] entry_SYSCALL_64_after_hwframe+0x6d/0x75 [ 84.085214][ T5063] RIP: 0033:0x7f17ed179cf9 [ 84.089630][ T5063] Code: Unable to access opcode bytes at 0x7f17ed179ccf. [ 84.096653][ T5063] RSP: 002b:00007ffc0386e9e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 84.105079][ T5063] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f17ed179cf9 [ 84.113171][ T5063] RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 [ 84.121258][ T5063] RBP: 00007f17ed1f4270 R08: ffffffffffffffb8 R09: 00007ffc0386ec08 +++ exited with 0 +++ [ 84.129