kasan: GPF could be caused by NULL-ptr deref or user memory access snd_pcm_oss_open+0x32/0x50 sound/core/oss/pcm_oss.c:2493 general protection fault: 0000 [#1] PREEMPT SMP KASAN soundcore_open+0x3ee/0x5a0 sound/sound_core.c:640 Modules linked in: chrdev_open+0x23c/0x6d0 fs/char_dev.c:423 CPU: 1 PID: 14657 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 do_dentry_open+0x44b/0xec0 fs/open.c:777 task: ffff88808fbe0100 task.stack: ffff8880a3378000 RIP: 0010:vhost_umem_interval_tree_iter_first drivers/vhost/vhost.c:53 [inline] RIP: 0010:vhost_del_umem_range drivers/vhost/vhost.c:977 [inline] RIP: 0010:vhost_process_iotlb_msg drivers/vhost/vhost.c:1048 [inline] RIP: 0010:vhost_chr_write_iter drivers/vhost/vhost.c:1077 [inline] RIP: 0010:vhost_chr_write_iter+0x873/0x1100 drivers/vhost/vhost.c:1061 RSP: 0018:ffff8880a337fc00 EFLAGS: 00010246 vfs_open+0x105/0x220 fs/open.c:888 do_last fs/namei.c:3428 [inline] path_openat+0x628/0x2970 fs/namei.c:3571 RAX: dffffc0000000000 RBX: ffff8880918e4180 RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff857f16f5 RDI: ffff8880918e4240 RBP: ffffed101231c841 R08: 0000000000000000 R09: 0000000000000000 do_filp_open+0x179/0x3c0 fs/namei.c:3605 R10: 0000000000000002 R11: ffff88808fbe0100 R12: 0000000000000002 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff1101466ff87 FS: 00007fb898b5d700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb89a70434c CR3: 000000009689c000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 do_sys_open+0x296/0x410 fs/open.c:1081 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 call_write_iter include/linux/fs.h:1780 [inline] new_sync_write fs/read_write.c:469 [inline] __vfs_write+0x44c/0x630 fs/read_write.c:482 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f8e110460f9 RSP: 002b:00007f8e0f5b8168 EFLAGS: 00000246 vfs_write+0x17f/0x4d0 fs/read_write.c:544 ORIG_RAX: 0000000000000101 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 RAX: ffffffffffffffda RBX: 00007f8e11165f80 RCX: 00007f8e110460f9 RDX: 0000000000024202 RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007f8e0f5b81d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffce353d36f R14: 00007f8e0f5b8300 R15: 0000000000022000 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7fb89a5eb0f9 RSP: 002b:00007fb898b5d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb89a70af80 RCX: 00007fb89a5eb0f9 RDX: 0000000000000048 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007fb89a646ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd32c597bf R14: 00007fb898b5d300 R15: 0000000000022000 Code: ff df 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 c6 06 00 00 4c 8b ab c0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e9 48 c1 e9 03 <80> 3c 01 00 0f 85 8f 06 00 00 49 8b 6d 00 48 85 ed 0f 84 e4 03 RIP: vhost_umem_interval_tree_iter_first drivers/vhost/vhost.c:53 [inline] RSP: ffff8880a337fc00 RIP: vhost_del_umem_range drivers/vhost/vhost.c:977 [inline] RSP: ffff8880a337fc00 RIP: vhost_process_iotlb_msg drivers/vhost/vhost.c:1048 [inline] RSP: ffff8880a337fc00 RIP: vhost_chr_write_iter drivers/vhost/vhost.c:1077 [inline] RSP: ffff8880a337fc00 RIP: vhost_chr_write_iter+0x873/0x1100 drivers/vhost/vhost.c:1061 RSP: ffff8880a337fc00 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 CPU: 1 PID: 14683 Comm: syz-executor.2 Tainted: G D 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 ---[ end trace 987043fd93a8227c ]--- Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0x10a/0x149 lib/fault-inject.c:149 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: df 48 89 fisttps -0x77(%rax) 3: f9 stc 4: 48 c1 e9 03 shr $0x3,%rcx 8: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) c: 0f 85 c6 06 00 00 jne 0x6d8 12: 4c 8b ab c0 00 00 00 mov 0xc0(%rbx),%r13 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 4c 89 e9 mov %r13,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction 2e: 0f 85 8f 06 00 00 jne 0x6c3 34: 49 8b 6d 00 mov 0x0(%r13),%rbp 38: 48 85 ed test %rbp,%rbp 3b: 0f .byte 0xf 3c: 84 e4 test %ah,%ah 3e: 03 .byte 0x3