syzbot


general protection fault in __vfs_write (2)

Status: auto-closed as invalid on 2021/08/25 20:18
Reported-by: syzbot+4caad7ea5e910fb6d9ff@syzkaller.appspotmail.com
First crash: 623d, last: 428d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 general protection fault in __vfs_write (3) 6 11d 189d 0/1 upstream: reported on 2021/12/22 02:20
upstream general protection fault in __vfs_write syz 25 1479d 1483d 9/22 fixed on 2018/07/09 18:05
linux-4.14 general protection fault in __vfs_write 1 802d 802d 0/1 auto-closed as invalid on 2020/08/16 02:04

Sample crash report:
kasan: GPF could be caused by NULL-ptr deref or user memory access
 __sys_sendmsg+0xa3/0x120 net/socket.c:2096
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
 SYSC_sendmsg net/socket.c:2107 [inline]
 SyS_sendmsg+0x27/0x40 net/socket.c:2103
CPU: 0 PID: 31861 Comm: syz-executor.0 Not tainted 4.14.231-syzkaller #0
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
task: ffff88809dce4480 task.stack: ffff8880280d0000
RIP: 0033:0x4665f9
RIP: 0010:vhost_umem_interval_tree_iter_first drivers/vhost/vhost.c:53 [inline]
RIP: 0010:vhost_del_umem_range drivers/vhost/vhost.c:971 [inline]
RIP: 0010:vhost_process_iotlb_msg drivers/vhost/vhost.c:1042 [inline]
RIP: 0010:vhost_chr_write_iter drivers/vhost/vhost.c:1071 [inline]
RIP: 0010:vhost_chr_write_iter+0x863/0x10f0 drivers/vhost/vhost.c:1055
RSP: 002b:00007f3d69c1e188 EFLAGS: 00000246
RSP: 0018:ffff8880280d7c00 EFLAGS: 00010246
 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RAX: dffffc0000000000 RBX: ffff888028700180 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003
RDX: 0000000000000002 RSI: ffffffff857dc415 RDI: ffff888028700240
RBP: 00007f3d69c1e1d0 R08: 0000000000000000 R09: 0000000000000000
RBP: ffffed10050e0041 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R10: 0000000000000002 R11: ffff88809dce4480 R12: 0000000000000002
R13: 00007fffbcfa627f R14: 00007f3d69c1e300 R15: 0000000000022000
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff1100501af87
netlink: 44 bytes leftover after parsing attributes in process `syz-executor.5'.
FS:  00007fcb91a02700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f02a8255000 CR3: 0000000094be3000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 call_write_iter include/linux/fs.h:1778 [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:0x4665f9
RSP: 002b:00007fcb91a02188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000048 RSI: 0000000020000640 RDI: 0000000000000004
RBP: 00000000004bfce1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffc609b5f6f R14: 00007fcb91a02300 R15: 0000000000022000
Code: ff df 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 cd 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 96 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: ffff8880280d7c00
RIP: vhost_del_umem_range drivers/vhost/vhost.c:971 [inline] RSP: ffff8880280d7c00
RIP: vhost_process_iotlb_msg drivers/vhost/vhost.c:1042 [inline] RSP: ffff8880280d7c00
RIP: vhost_chr_write_iter drivers/vhost/vhost.c:1071 [inline] RSP: ffff8880280d7c00
RIP: vhost_chr_write_iter+0x863/0x10f0 drivers/vhost/vhost.c:1055 RSP: ffff8880280d7c00
---[ end trace 231584842cb7c29f ]---

Crashes (10):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/04/27 20:18 linux-4.14.y cf256fbcbe34 805b5003 .config log report info general protection fault in __vfs_write
ci2-linux-4-14 2021/04/03 11:39 linux-4.14.y bd634aa64163 6a81331a .config log report info general protection fault in __vfs_write
ci2-linux-4-14 2021/03/27 11:31 linux-4.14.y 670d6552eda8 a8529b82 .config log report info general protection fault in __vfs_write
ci2-linux-4-14 2021/01/31 14:28 linux-4.14.y 2c8a3fceddf0 fc9fd31e .config log report info general protection fault in __vfs_write
ci2-linux-4-14 2021/01/14 09:42 linux-4.14.y f79dc86058bc 269d24e8 .config log report info
ci2-linux-4-14 2021/01/01 10:56 linux-4.14.y 1752938529c6 79264ae3 .config log report info
ci2-linux-4-14 2020/11/30 18:27 linux-4.14.y 87335852c5d9 76831598 .config log report info
ci2-linux-4-14 2020/11/25 03:28 linux-4.14.y 87335852c5d9 e34b696c .config log report info
ci2-linux-4-14 2020/10/23 15:22 linux-4.14.y 5b7a52cd2eef 4e740c00 .config log report info
ci2-linux-4-14 2020/10/14 16:14 linux-4.14.y cbfa1702aaf6 fc7735a2 .config log report info