syzbot


KASAN: null-ptr-deref Write in kvm_write_guest_virt_system

Status: fixed on 2019/12/12 05:11
Reported-by: syzbot+88ca9093220c4af4d216@syzkaller.appspotmail.com
Fix commit: 3683dd7074dc crypto: cavium/zip - Add missing single_release()
First crash: 1886d, last: 1868d
Fix bisection: fixed by (bisect log) :
commit 3683dd7074dcda394cc4f976c5ef26fbb9dfb11c
Author: Wei Yongjun <weiyongjun1@huawei.com>
Date: Wed Sep 4 14:18:09 2019 +0000

  crypto: cavium/zip - Add missing single_release()

  
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 KASAN: null-ptr-deref Write in kvm_write_guest_virt_system C done 53 1868d 1886d 1/1 fixed on 2019/12/12 05:11

Sample crash report:
audit: type=1400 audit(1570626853.915:36): avc:  denied  { map } for  pid=7477 comm="syz-executor696" path="/root/syz-executor696951167" dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details.
==================================================================
BUG: KASAN: null-ptr-deref in memset include/linux/string.h:333 [inline]
BUG: KASAN: null-ptr-deref in kvm_write_guest_virt_system+0x64/0x90 arch/x86/kvm/x86.c:5030
Write of size 24 at addr 0000000000000000 by task syz-executor696/7477

CPU: 0 PID: 7477 Comm: syz-executor696 Not tainted 4.19.78 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 kasan_report_error mm/kasan/report.c:352 [inline]
 kasan_report mm/kasan/report.c:412 [inline]
 kasan_report.cold+0x199/0x2ba mm/kasan/report.c:396
 check_memory_region_inline mm/kasan/kasan.c:260 [inline]
 check_memory_region+0x123/0x190 mm/kasan/kasan.c:267
 memset+0x24/0x40 mm/kasan/kasan.c:285
 memset include/linux/string.h:333 [inline]
 kvm_write_guest_virt_system+0x64/0x90 arch/x86/kvm/x86.c:5030
 handle_vmread+0x7fe/0xa10 arch/x86/kvm/vmx.c:8802
 vmx_handle_exit+0x276/0x16b0 arch/x86/kvm/vmx.c:10183
 vcpu_enter_guest+0x10ca/0x5ed0 arch/x86/kvm/x86.c:7756
 vcpu_run arch/x86/kvm/x86.c:7819 [inline]
 kvm_arch_vcpu_ioctl_run+0x457/0x16b0 arch/x86/kvm/x86.c:8019
 kvm_vcpu_ioctl+0x4dc/0xf90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2617
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xd5f/0x1380 fs/ioctl.c:688
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:710
 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x443679
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 1b 0c fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe8759d9b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffe8759d9c0 RCX: 0000000000443679
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005
RBP: 0000000000000000 R08: 0000000000400f60 R09: 0000000000400f60
R10: 0000000020003800 R11: 0000000000000246 R12: 0000000000404720
R13: 00000000004047b0 R14: 0000000000000000 R15: 0000000000000000
==================================================================

Crashes (50):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/09 13:18 linux-4.19.y 58fce2064530 312c6a5a .config console log report syz C ci2-linux-4-19
2019/10/09 10:29 linux-4.19.y 58fce2064530 312c6a5a .config console log report syz C ci2-linux-4-19
2019/09/23 07:30 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report syz C ci2-linux-4-19
2019/10/11 06:36 linux-4.19.y 58fce2064530 1a3bad90 .config console log report ci2-linux-4-19
2019/10/08 10:05 linux-4.19.y 58fce2064530 28ac6e64 .config console log report ci2-linux-4-19
2019/10/06 20:25 linux-4.19.y 6cad9d0cf87b f3f7d9c8 .config console log report ci2-linux-4-19
2019/10/06 11:20 linux-4.19.y 6cad9d0cf87b f3f7d9c8 .config console log report ci2-linux-4-19
2019/10/06 10:02 linux-4.19.y 6cad9d0cf87b f3f7d9c8 .config console log report ci2-linux-4-19
2019/10/06 06:42 linux-4.19.y 6cad9d0cf87b f3f7d9c8 .config console log report ci2-linux-4-19
2019/10/06 06:36 linux-4.19.y 6cad9d0cf87b f3f7d9c8 .config console log report ci2-linux-4-19
2019/10/05 06:36 linux-4.19.y 555161ee1b7a f3f7d9c8 .config console log report ci2-linux-4-19
2019/10/04 09:25 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/04 05:35 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/04 05:17 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/04 05:12 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/04 04:08 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/03 21:39 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/03 21:38 linux-4.19.y 555161ee1b7a fc17ba49 .config console log report ci2-linux-4-19
2019/10/02 15:56 linux-4.19.y 555161ee1b7a 2e29b534 .config console log report ci2-linux-4-19
2019/10/02 15:32 linux-4.19.y 555161ee1b7a 2e29b534 .config console log report ci2-linux-4-19
2019/10/02 04:55 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/02 04:54 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/02 04:50 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/02 02:05 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/01 22:53 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/01 22:52 linux-4.19.y 555161ee1b7a b7a87a83 .config console log report ci2-linux-4-19
2019/10/01 06:14 linux-4.19.y d573e8a79f70 c7a4fb99 .config console log report ci2-linux-4-19
2019/09/30 09:27 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/30 09:27 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/30 09:27 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/30 09:27 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/30 09:26 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/30 08:51 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/29 18:48 linux-4.19.y d573e8a79f70 c1ad5441 .config console log report ci2-linux-4-19
2019/09/29 02:23 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report ci2-linux-4-19
2019/09/29 02:16 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report ci2-linux-4-19
2019/09/29 02:12 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report ci2-linux-4-19
2019/09/29 02:10 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report ci2-linux-4-19
2019/09/29 02:05 linux-4.19.y d573e8a79f70 eb6b9855 .config console log report ci2-linux-4-19
2019/09/28 05:58 linux-4.19.y d573e8a79f70 d8074e0b .config console log report ci2-linux-4-19
2019/09/28 05:48 linux-4.19.y d573e8a79f70 d8074e0b .config console log report ci2-linux-4-19
2019/09/28 04:05 linux-4.19.y d573e8a79f70 d8074e0b .config console log report ci2-linux-4-19
2019/09/23 17:48 linux-4.19.y d573e8a79f70 c68252d2 .config console log report ci2-linux-4-19
2019/09/23 07:13 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
2019/09/23 07:07 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
2019/09/23 07:07 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
2019/09/23 07:04 linux-4.19.y d573e8a79f70 d96e88f3 .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.