[ OK ] Started Getty on tty2. [ OK ] Started Serial Getty on ttyS0. [ OK ] Started Getty on tty1. [ OK ] Reached target Login Prompts. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes. Starting Load/Save RF Kill Switch Status... [ OK ] Started Load/Save RF Kill Switch Status. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.0.193' (ECDSA) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program executing program syzkaller login: [ 27.365124] ================================================================== [ 27.372980] BUG: KASAN: use-after-free in snd_seq_timer_interrupt+0x2d4/0x340 [ 27.380244] Read of size 8 at addr ffff8880a90c8398 by task syz-executor976/7975 [ 27.387759] [ 27.389380] CPU: 0 PID: 7975 Comm: syz-executor976 Not tainted 4.14.241-syzkaller #0 [ 27.397271] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 27.406808] Call Trace: [ 27.409388] [ 27.411518] dump_stack+0x1b2/0x281 [ 27.415157] print_address_description.cold+0x54/0x1d3 [ 27.420429] kasan_report_error.cold+0x8a/0x191 [ 27.425081] ? snd_seq_timer_interrupt+0x2d4/0x340 [ 27.429989] __asan_report_load8_noabort+0x68/0x70 [ 27.434898] ? snd_seq_timer_interrupt+0x2d4/0x340 [ 27.439819] snd_seq_timer_interrupt+0x2d4/0x340 [ 27.444563] snd_timer_interrupt.part.0+0x8ea/0xe20 [ 27.449590] ? initialize_timer+0x270/0x270 [ 27.453892] snd_timer_s_function+0x12c/0x1b0 [ 27.458379] call_timer_fn+0x14a/0x650 [ 27.462245] ? snd_timer_user_info_compat.isra.0+0x320/0x320 [ 27.468108] ? collect_expired_timers+0x250/0x250 [ 27.472928] ? _raw_spin_unlock_irq+0x24/0x80 [ 27.477446] ? snd_timer_user_info_compat.isra.0+0x320/0x320 [ 27.483272] expire_timers+0x232/0x4d0 [ 27.487138] run_timer_softirq+0x1d5/0x5a0 [ 27.491357] ? expire_timers+0x4d0/0x4d0 [ 27.495458] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 27.500907] __do_softirq+0x24d/0x9ff [ 27.504783] ? check_preemption_disabled+0x35/0x240 [ 27.510076] irq_exit+0x193/0x240 [ 27.513516] smp_apic_timer_interrupt+0x141/0x5e0 [ 27.518564] apic_timer_interrupt+0x93/0xa0 [ 27.522951] [ 27.525173] RIP: 0010:__orc_find+0x20/0xf0 [ 27.529728] RSP: 0018:ffff8880a2b377d8 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff10 [ 27.537413] RAX: 0000000000000002 RBX: 1ffff11014566f0b RCX: ffffffff87400089 [ 27.544662] RDX: 0000000000000002 RSI: ffffffff8ae11afc RDI: ffffffff8a6308c0 [ 27.551908] RBP: 0000000000000001 R08: ffffffff8ae11afc R09: ffffffff8ae11b08 [ 27.559426] R10: 0000000000146546 R11: 0000000000066071 R12: ffffffff8a6308c4 [ 27.566776] R13: ffff8880a2b37918 R14: ffff8880a2b37930 R15: ffff8880a2b378e0 [ 27.574032] ? entry_SYSCALL_64_after_hwframe+0x45/0xbb [ 27.579378] unwind_next_frame+0x59a/0x17d0 [ 27.583676] ? do_syscall_64+0x1d5/0x640 [ 27.587721] ? deref_stack_reg+0x1a0/0x1a0 [ 27.592106] ? is_bpf_text_address+0xb8/0x150 [ 27.596584] ? kernel_text_address+0xbd/0xf0 [ 27.601004] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.606403] __save_stack_trace+0x90/0x160 [ 27.610623] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.616065] kasan_kmalloc+0xeb/0x160 [ 27.620107] ? kasan_kmalloc+0xeb/0x160 [ 27.624146] ? kmem_cache_alloc+0x111/0x3c0 [ 27.628461] ? anon_vma_fork+0x1c0/0x580 [ 27.632507] ? copy_process.part.0+0x4c64/0x71c0 [ 27.637239] ? _do_fork+0x184/0xc80 [ 27.640939] ? do_syscall_64+0x1d5/0x640 [ 27.645069] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.650517] ? kasan_kmalloc+0xeb/0x160 [ 27.654823] ? kmem_cache_alloc+0x124/0x3c0 [ 27.659142] ? trace_hardirqs_on+0x10/0x10 [ 27.663415] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.668763] ? trace_hardirqs_on+0x10/0x10 [ 27.673159] ? trace_hardirqs_on+0x10/0x10 [ 27.677381] ? anon_vma_clone+0x3ed/0x5b0 [ 27.681508] ? fs_reclaim_release+0xd0/0x110 [ 27.685892] ? mark_held_locks+0xa6/0xf0 [ 27.690160] ? kmem_cache_alloc+0x2c8/0x3c0 [ 27.694752] kmem_cache_alloc+0x111/0x3c0 [ 27.698970] anon_vma_fork+0x1c0/0x580 [ 27.702846] ? dup_userfaultfd+0x14a/0x5d0 [ 27.707078] copy_process.part.0+0x4c64/0x71c0 [ 27.711918] ? __cleanup_sighand+0x40/0x40 [ 27.716140] _do_fork+0x184/0xc80 [ 27.719575] ? fork_idle+0x270/0x270 [ 27.723269] ? common_nsleep+0x23/0x30 [ 27.727144] ? SyS_clock_nanosleep+0x210/0x2d0 [ 27.731724] ? compat_SyS_clock_getres+0x180/0x180 [ 27.736652] ? __do_page_fault+0x159/0xad0 [ 27.740875] ? do_syscall_64+0x4c/0x640 [ 27.744830] ? sys_vfork+0x20/0x20 [ 27.748355] do_syscall_64+0x1d5/0x640 [ 27.752253] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.757620] RIP: 0033:0x43eb0b [ 27.760817] RSP: 002b:00007ffcc335a8e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 [ 27.768592] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 000000000043eb0b [ 27.775845] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 [ 27.783232] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000628300 [ 27.790586] R10: 00000000006285d0 R11: 0000000000000246 R12: 0000000000000000 [ 27.797951] R13: 00007ffcc335a90c R14: 00007ffcc335a920 R15: 00007ffcc335a910 [ 27.805212] [ 27.806829] Allocated by task 8070: [ 27.810554] kasan_kmalloc+0xeb/0x160 [ 27.814430] kmem_cache_alloc_trace+0x131/0x3d0 [ 27.819310] snd_seq_queue_alloc+0x51/0x4c0 [ 27.823618] snd_seq_ioctl_create_queue+0xa5/0x2f0 [ 27.828539] snd_seq_ioctl+0x1af/0x310 [ 27.832409] do_vfs_ioctl+0x75a/0xff0 [ 27.836218] SyS_ioctl+0x7f/0xb0 [ 27.839585] do_syscall_64+0x1d5/0x640 [ 27.843492] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.848688] [ 27.850332] Freed by task 8070: [ 27.853605] kasan_slab_free+0xc3/0x1a0 [ 27.857661] kfree+0xc9/0x250 [ 27.860750] snd_seq_queue_client_leave+0x2f/0x120 [ 27.865856] seq_free_client1.part.0+0xf0/0x270 [ 27.870507] seq_free_client+0x6c/0xe0 [ 27.874489] snd_seq_release+0x4d/0xe0 [ 27.878361] __fput+0x25f/0x7a0 [ 27.881664] task_work_run+0x11f/0x190 [ 27.885550] do_exit+0xa44/0x2850 [ 27.889004] do_group_exit+0x100/0x2e0 [ 27.892871] SyS_exit_group+0x19/0x20 [ 27.896654] do_syscall_64+0x1d5/0x640 [ 27.900606] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 27.906206] [ 27.907847] The buggy address belongs to the object at ffff8880a90c8340 [ 27.907847] which belongs to the cache kmalloc-512 of size 512 [ 27.920674] The buggy address is located 88 bytes inside of [ 27.920674] 512-byte region [ffff8880a90c8340, ffff8880a90c8540) [ 27.932457] The buggy address belongs to the page: [ 27.937367] page:ffffea0002a43200 count:1 mapcount:0 mapping:ffff8880a90c80c0 index:0x0 [ 27.945489] flags: 0xfff00000000100(slab) [ 27.949619] raw: 00fff00000000100 ffff8880a90c80c0 0000000000000000 0000000100000006 [ 27.957479] raw: ffffea0002afcba0 ffffea0002afcbe0 ffff88813fe80940 0000000000000000 [ 27.965424] page dumped because: kasan: bad access detected [ 27.971286] [ 27.972905] Memory state around the buggy address: [ 27.977810] ffff8880a90c8280: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.985164] ffff8880a90c8300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb [ 27.992499] >ffff8880a90c8380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.000321] ^ [ 28.004793] ffff8880a90c8400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.012216] ffff8880a90c8480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.019642] ================================================================== [ 28.027064] Disabling lock debugging due to kernel taint [ 28.032498] Kernel panic - not syncing: panic_on_warn set ... [ 28.032498] [ 28.039934] CPU: 0 PID: 7975 Comm: syz-executor976 Tainted: G B 4.14.241-syzkaller #0 [ 28.049091] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 28.058430] Call Trace: [ 28.060992] [ 28.063122] dump_stack+0x1b2/0x281 [ 28.066733] panic+0x1f9/0x42d [ 28.069936] ? add_taint.cold+0x16/0x16 [ 28.073922] ? lock_downgrade+0x740/0x740 [ 28.078052] kasan_end_report+0x43/0x49 [ 28.082100] kasan_report_error.cold+0xa7/0x191 [ 28.086858] ? snd_seq_timer_interrupt+0x2d4/0x340 [ 28.091763] __asan_report_load8_noabort+0x68/0x70 [ 28.096675] ? snd_seq_timer_interrupt+0x2d4/0x340 [ 28.101593] snd_seq_timer_interrupt+0x2d4/0x340 [ 28.106443] snd_timer_interrupt.part.0+0x8ea/0xe20 [ 28.111444] ? initialize_timer+0x270/0x270 [ 28.115746] snd_timer_s_function+0x12c/0x1b0 [ 28.120363] call_timer_fn+0x14a/0x650 [ 28.124315] ? snd_timer_user_info_compat.isra.0+0x320/0x320 [ 28.130101] ? collect_expired_timers+0x250/0x250 [ 28.135147] ? _raw_spin_unlock_irq+0x24/0x80 [ 28.139720] ? snd_timer_user_info_compat.isra.0+0x320/0x320 [ 28.145994] expire_timers+0x232/0x4d0 [ 28.149867] run_timer_softirq+0x1d5/0x5a0 [ 28.154437] ? expire_timers+0x4d0/0x4d0 [ 28.158481] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 28.163920] __do_softirq+0x24d/0x9ff [ 28.167794] ? check_preemption_disabled+0x35/0x240 [ 28.173144] irq_exit+0x193/0x240 [ 28.176611] smp_apic_timer_interrupt+0x141/0x5e0 [ 28.181532] apic_timer_interrupt+0x93/0xa0 [ 28.185839] [ 28.188231] RIP: 0010:__orc_find+0x20/0xf0 [ 28.192445] RSP: 0018:ffff8880a2b377d8 EFLAGS: 00000297 ORIG_RAX: ffffffffffffff10 [ 28.200231] RAX: 0000000000000002 RBX: 1ffff11014566f0b RCX: ffffffff87400089 [ 28.207659] RDX: 0000000000000002 RSI: ffffffff8ae11afc RDI: ffffffff8a6308c0 [ 28.215107] RBP: 0000000000000001 R08: ffffffff8ae11afc R09: ffffffff8ae11b08 [ 28.222368] R10: 0000000000146546 R11: 0000000000066071 R12: ffffffff8a6308c4 [ 28.229617] R13: ffff8880a2b37918 R14: ffff8880a2b37930 R15: ffff8880a2b378e0 [ 28.236879] ? entry_SYSCALL_64_after_hwframe+0x45/0xbb [ 28.242228] unwind_next_frame+0x59a/0x17d0 [ 28.246541] ? do_syscall_64+0x1d5/0x640 [ 28.250586] ? deref_stack_reg+0x1a0/0x1a0 [ 28.254991] ? is_bpf_text_address+0xb8/0x150 [ 28.259560] ? kernel_text_address+0xbd/0xf0 [ 28.264010] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.269532] __save_stack_trace+0x90/0x160 [ 28.273923] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.279351] kasan_kmalloc+0xeb/0x160 [ 28.283145] ? kasan_kmalloc+0xeb/0x160 [ 28.287094] ? kmem_cache_alloc+0x111/0x3c0 [ 28.291410] ? anon_vma_fork+0x1c0/0x580 [ 28.295450] ? copy_process.part.0+0x4c64/0x71c0 [ 28.300180] ? _do_fork+0x184/0xc80 [ 28.303803] ? do_syscall_64+0x1d5/0x640 [ 28.307841] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.313181] ? kasan_kmalloc+0xeb/0x160 [ 28.317146] ? kmem_cache_alloc+0x124/0x3c0 [ 28.321454] ? trace_hardirqs_on+0x10/0x10 [ 28.325810] ? entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.331156] ? trace_hardirqs_on+0x10/0x10 [ 28.335376] ? trace_hardirqs_on+0x10/0x10 [ 28.339592] ? anon_vma_clone+0x3ed/0x5b0 [ 28.343877] ? fs_reclaim_release+0xd0/0x110 [ 28.348264] ? mark_held_locks+0xa6/0xf0 [ 28.352431] ? kmem_cache_alloc+0x2c8/0x3c0 [ 28.356739] kmem_cache_alloc+0x111/0x3c0 [ 28.361075] anon_vma_fork+0x1c0/0x580 [ 28.364951] ? dup_userfaultfd+0x14a/0x5d0 [ 28.369172] copy_process.part.0+0x4c64/0x71c0 [ 28.373761] ? __cleanup_sighand+0x40/0x40 [ 28.377977] _do_fork+0x184/0xc80 [ 28.381410] ? fork_idle+0x270/0x270 [ 28.385121] ? common_nsleep+0x23/0x30 [ 28.388986] ? SyS_clock_nanosleep+0x210/0x2d0 [ 28.393571] ? compat_SyS_clock_getres+0x180/0x180 [ 28.398748] ? __do_page_fault+0x159/0xad0 [ 28.403080] ? do_syscall_64+0x4c/0x640 [ 28.407070] ? sys_vfork+0x20/0x20 [ 28.410614] do_syscall_64+0x1d5/0x640 [ 28.414488] entry_SYSCALL_64_after_hwframe+0x46/0xbb [ 28.419657] RIP: 0033:0x43eb0b [ 28.422822] RSP: 002b:00007ffcc335a8e0 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 [ 28.431039] RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 000000000043eb0b [ 28.438481] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 [ 28.445850] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000628300 [ 28.453249] R10: 00000000006285d0 R11: 0000000000000246 R12: 0000000000000000 [ 28.460505] R13: 00007ffcc335a90c R14: 00007ffcc335a920 R15: 00007ffcc335a910 [ 28.469437] Kernel Offset: disabled [ 28.473046] Rebooting in 86400 seconds..