syzbot


general protection fault in vhost_chr_write_iter

Status: upstream: reported C repro on 2019/04/11 11:22
Reported-by: syzbot+4846830ad5f7a8b1ac56@syzkaller.appspotmail.com
First crash: 1893d, last: 467d

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7968 Comm: syz-executor937 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b497a540 task.stack: ffff888096670000
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:ffff888096677c00 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff88808d260140 RCX: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff8ba5e0b0 RDI: ffff88808d260200
RBP: ffffed1011a4c039 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000002 R11: ffff8880b497a540 R12: 0000000000000002
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff11012ccef87
FS:  0000555556336300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000000e CR3: 000000009b5f7000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 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
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7fdc4bbd1029
RSP: 002b:00007ffe7c092d28 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdc4bbd1029
RDX: 0000000000000048 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007fdc4bb95010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdc4bb950a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
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: ffff888096677c00
RIP: vhost_del_umem_range drivers/vhost/vhost.c:977 [inline] RSP: ffff888096677c00
RIP: vhost_process_iotlb_msg drivers/vhost/vhost.c:1048 [inline] RSP: ffff888096677c00
RIP: vhost_chr_write_iter drivers/vhost/vhost.c:1077 [inline] RSP: ffff888096677c00
RIP: vhost_chr_write_iter+0x873/0x1100 drivers/vhost/vhost.c:1061 RSP: ffff888096677c00
---[ end trace 2d16608682c6b5f8 ]---
----------------
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

Crashes (14450):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/24 19:43 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/12/16 10:11 linux-4.14.y c4215ee4771b 6f9c033e .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/11/01 17:22 linux-4.14.y 41f36d7859a7 a1d8560a .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/10/03 16:17 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/09/21 02:19 linux-4.14.y 4edbf74132a4 c4b8ccfd .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/08/04 23:21 linux-4.14.y b641242202ed 1c9013ac .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/06/18 13:49 linux-4.14.y 84bae26850e3 8f633d84 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/06/13 14:49 linux-4.14.y b8f3be299d51 0d5abf15 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/03/24 01:48 linux-4.14.y 004bfaafc45c 5ff41e94 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/03/21 05:17 linux-4.14.y eb045674aab3 e2d91b1d .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/02/28 19:51 linux-4.14.y fa33f9094f36 45a13a73 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2022/01/09 06:19 linux-4.14.y bfdef05c8da4 2ca0d385 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/12/22 02:32 linux-4.14.y 9dfbac0e6b86 6caa12e4 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/06/12 15:38 linux-4.14.y 3d3abdc8ebd3 1ba81399 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/05/11 13:11 linux-4.14.y 7d7d1c0ab3eb ca873091 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/04/27 20:31 linux-4.14.y cf256fbcbe34 805b5003 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/04/03 12:00 linux-4.14.y bd634aa64163 6a81331a .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/03/27 11:41 linux-4.14.y 670d6552eda8 a8529b82 .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/02/11 05:23 linux-4.14.y 2c8a3fceddf0 a52ee10a .config console log report syz C ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/01/14 09:52 linux-4.14.y f79dc86058bc 269d24e8 .config console log report syz C ci2-linux-4-14
2021/01/01 11:12 linux-4.14.y 1752938529c6 79264ae3 .config console log report syz C ci2-linux-4-14
2020/11/30 18:37 linux-4.14.y 87335852c5d9 76831598 .config console log report syz C ci2-linux-4-14
2020/11/29 15:40 linux-4.14.y 87335852c5d9 a0092f9d .config console log report syz C ci2-linux-4-14
2020/11/25 03:39 linux-4.14.y 87335852c5d9 e34b696c .config console log report syz C ci2-linux-4-14
2020/11/07 08:07 linux-4.14.y 6b6446efedb2 cba33199 .config console log report syz C ci2-linux-4-14
2020/11/01 14:02 linux-4.14.y 2b7915014161 8bc4594f .config console log report syz C ci2-linux-4-14
2020/10/23 15:31 linux-4.14.y 5b7a52cd2eef 4e740c00 .config console log report syz C ci2-linux-4-14
2020/10/14 16:25 linux-4.14.y cbfa1702aaf6 fc7735a2 .config console log report syz C ci2-linux-4-14
2020/04/18 02:24 linux-4.14.y c10b57a567e4 435c6d53 .config console log report syz C ci2-linux-4-14
2019/12/15 01:23 linux-4.14.y a844dc4c5442 eef6e580 .config console log report syz C ci2-linux-4-14
2019/08/31 23:35 linux-4.14.y 01fd1694b93c bad3cce2 .config console log report syz C ci2-linux-4-14
2019/07/31 08:26 linux-4.14.y 10d6aa565d05 7c7ded69 .config console log report syz C ci2-linux-4-14
2019/06/15 23:15 linux-4.14.y a74d0e937a3a 442206d7 .config console log report syz C ci2-linux-4-14
2019/04/12 18:33 linux-4.14.y 1ec8f1f0bffe 4f421599 .config console log report syz C ci2-linux-4-14
2023/03/07 09:29 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/07 08:06 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/07 06:05 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/07 04:40 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/07 02:04 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/07 01:02 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 23:07 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 19:37 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 18:22 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 16:37 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 14:39 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 12:56 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 11:39 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 10:07 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 07:53 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 07:24 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 05:20 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 03:43 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/06 00:13 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 22:35 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 19:43 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 18:13 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 17:01 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 15:22 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 13:33 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 12:41 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 11:32 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 07:28 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 06:23 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 03:30 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/05 00:26 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 22:46 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 20:21 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 19:01 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 17:55 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 15:21 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 14:15 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 12:45 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 11:04 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 08:03 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 06:24 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 05:00 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 03:55 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/04 00:34 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/03 23:33 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/03 21:42 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2023/03/03 20:25 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in vhost_chr_write_iter
2021/01/17 09:11 linux-4.14.y f79dc86058bc 65a7a854 .config console log report info ci2-linux-4-14
2019/04/11 10:25 linux-4.14.y 1ec8f1f0bffe e955ac50 .config console log report ci2-linux-4-14
* Struck through repros no longer work on HEAD.