syzbot


general protection fault in __vfs_write (3)

Status: auto-obsoleted due to no activity on 2023/03/01 17:09
Reported-by: syzbot+087e0af9eaec1b3dd859@syzkaller.appspotmail.com
First crash: 883d, last: 569d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in __vfs_write (2) 10 1122d 1317d 0/1 auto-closed as invalid on 2021/08/25 20:18
upstream general protection fault in __vfs_write fs syz 25 2173d 2177d 8/26 fixed on 2018/07/09 18:05
linux-4.14 general protection fault in __vfs_write 1 1497d 1497d 0/1 auto-closed as invalid on 2020/08/16 02:04

Sample crash report:
 __vfs_write+0xe4/0x630 fs/read_write.c:480
kasan: CONFIG_KASAN_INLINE enabled
 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
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
CPU: 0 PID: 1797 Comm: syz-executor.4 Not tainted 4.14.296-syzkaller #0
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022
RIP: 0033:0x7f83d010b5a9
task: ffff88809898c2c0 task.stack: ffff888092698000
RSP: 002b:00007f83ce67e168 EFLAGS: 00000246
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
 ORIG_RAX: 0000000000000001
RSP: 0018:ffff88809269fc00 EFLAGS: 00010246
RAX: ffffffffffffffda RBX: 00007f83d022bf80 RCX: 00007f83d010b5a9
RDX: 00000000000000a0 RSI: 0000000020000100 RDI: 0000000000000003
RAX: dffffc0000000000 RBX: ffff88808798dc80 RCX: 0000000000000000
RBP: 00007f83ce67e1d0 R08: 0000000000000000 R09: 0000000000000000
RDX: 0000000000000002 RSI: ffffffff857ec2f5 RDI: ffff88808798dd40
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
RBP: ffffed1010f31ba1 R08: 0000000000000000 R09: 0000000000040698
R13: 00007ffc6b6c046f R14: 00007f83ce67e300 R15: 0000000000022000
R10: ffff88809898cb98 R11: ffff88809898c2c0 R12: 0000000000000002
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff110124d3f87
FS:  00007fd4d0ee7700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000090782000 CR4: 00000000003406f0
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+0x46/0xbb
RIP: 0033:0x7fd4d29745a9
RSP: 002b:00007fd4d0ee7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fd4d2a94f80 RCX: 00007fd4d29745a9
RDX: 0000000000000048 RSI: 0000000020000140 RDI: 0000000000000003
RBP: 00007fd4d29cf7b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc501c8eff R14: 00007fd4d0ee7300 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: ffff88809269fc00
RIP: vhost_del_umem_range drivers/vhost/vhost.c:977 [inline] RSP: ffff88809269fc00
RIP: vhost_process_iotlb_msg drivers/vhost/vhost.c:1048 [inline] RSP: ffff88809269fc00
RIP: vhost_chr_write_iter drivers/vhost/vhost.c:1077 [inline] RSP: ffff88809269fc00
RIP: vhost_chr_write_iter+0x873/0x1100 drivers/vhost/vhost.c:1061 RSP: ffff88809269fc00
---[ end trace 6fc25d75f0910e23 ]---
----------------
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 (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/01 17:09 linux-4.14.y 41f36d7859a7 a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 general protection fault in __vfs_write
2022/10/03 16:03 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 general protection fault in __vfs_write
2022/09/21 02:10 linux-4.14.y 4edbf74132a4 c4b8ccfd .config console log report info [disk image] [vmlinux] ci2-linux-4-14 general protection fault in __vfs_write
2022/08/04 23:03 linux-4.14.y b641242202ed 1c9013ac .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
2022/06/18 13:38 linux-4.14.y 84bae26850e3 8f633d84 .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
2022/03/24 01:32 linux-4.14.y 004bfaafc45c 5ff41e94 .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
2022/03/21 05:01 linux-4.14.y eb045674aab3 e2d91b1d .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
2022/02/28 19:41 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
2022/01/09 06:05 linux-4.14.y bfdef05c8da4 2ca0d385 .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
2021/12/22 02:20 linux-4.14.y 9dfbac0e6b86 6caa12e4 .config console log report info ci2-linux-4-14 general protection fault in __vfs_write
* Struck through repros no longer work on HEAD.