lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 01 Nov 2017 13:25:00 -0700
From:   syzbot 
        <bot+65daf4c780913c8a66e29f92f9fa9dc97a700038@...kaller.appspotmail.com>
To:     hpa@...or.com, kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
        mingo@...hat.com, pbonzini@...hat.com, rkrcmar@...hat.com,
        syzkaller-bugs@...glegroups.com, tglx@...utronix.de, x86@...nel.org
Subject: kernel BUG at arch/x86/kvm/mmu.c:LINE!

Hello,

syzkaller hit the following crash on  
bb70832dd42b298d4303fd054bf18a78650ff04a
git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/master
compiler: gcc (GCC) 7.1.1 20170620
.config is attached
Raw console output is attached.
C reproducer is attached
syzkaller reproducer is attached. See https://goo.gl/kgGztJ
for information about syzkaller reproducers


------------[ cut here ]------------
kernel BUG at arch/x86/kvm/mmu.c:1194!
invalid opcode: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
    (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 2997 Comm: syzkaller760858 Not tainted  
4.13.0-rc5-next-20170817+ #5
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
task: ffff88006ce641c0 task.stack: ffff880069448000
RIP: 0010:pte_list_remove+0x3ae/0x3c0 arch/x86/kvm/mmu.c:1193
RSP: 0018:ffff88006944eee8 EFLAGS: 00010286
RAX: 0000000000000028 RBX: ffff88003debd700 RCX: 0000000000000000
RDX: 0000000000000028 RSI: 1ffff1000d289d9d RDI: ffffed000d289dd1
RBP: ffff88006944ef28 R08: 0000000000000000 R09: 1ffff1000d289d6f
R10: ffff88006944f2d0 R11: ffffffff85b2cbf8 R12: ffff88003cab9000
R13: 0000000000000000 R14: ffff88003d4d5cf0 R15: ffff88003d4d5d18
FS:  0000000000000000(0000) GS:ffff88003ec00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000202ecfa3 CR3: 000000003976d000 CR4: 00000000000026f0
Call Trace:
  rmap_remove arch/x86/kvm/mmu.c:1270 [inline]
  drop_spte+0x15a/0x250 arch/x86/kvm/mmu.c:1352
  mmu_page_zap_pte+0x224/0x340 arch/x86/kvm/mmu.c:2484
  kvm_mmu_page_unlink_children arch/x86/kvm/mmu.c:2506 [inline]
  kvm_mmu_prepare_zap_page+0x1c5/0x1310 arch/x86/kvm/mmu.c:2550
  kvm_zap_obsolete_pages arch/x86/kvm/mmu.c:5225 [inline]
  kvm_mmu_invalidate_zap_all_pages+0x4a0/0x680 arch/x86/kvm/mmu.c:5266
  kvm_arch_flush_shadow_all+0x15/0x20 arch/x86/kvm/x86.c:8398
  kvm_mmu_notifier_release+0x59/0x90  
arch/x86/kvm/../../../virt/kvm/kvm_main.c:508
  __mmu_notifier_release+0x1d5/0x690 mm/mmu_notifier.c:75
  mmu_notifier_release include/linux/mmu_notifier.h:235 [inline]
  exit_mmap+0x479/0x560 mm/mmap.c:2982
  __mmput kernel/fork.c:906 [inline]
  mmput+0x223/0x6e0 kernel/fork.c:928
  exit_mm kernel/exit.c:544 [inline]
  do_exit+0x9a1/0x1b30 kernel/exit.c:852
  do_group_exit+0x149/0x400 kernel/exit.c:968
  SYSC_exit_group kernel/exit.c:979 [inline]
  SyS_exit_group+0x1d/0x20 kernel/exit.c:977
  entry_SYSCALL_64_fastpath+0x1f/0xbe
RIP: 0033:0x436c49
RSP: 002b:00007ffdd78a9b88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000436c49
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000006 R08: 000000000000003c R09: 00000000000000e7
R10: ffffffffffffffc0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000004 R14: 0000000000000004 R15: 0000000020cde000
Code: f9 59 5e 00 48 8b 75 d0 48 c7 c7 40 4d e2 84 e8 7e 3a 49 00 0f 0b e8  
e2 59 5e 00 48 8b 75 d0 48 c7 c7 00 4d e2 84 e8 67 3a 49 00 <0f> 0b 4c 89  
ef e8 18 c4 92 00 e9 01 fe ff ff 0f 1f 00 55 48 89
RIP: pte_list_remove+0x3ae/0x3c0 arch/x86/kvm/mmu.c:1193 RSP:  
ffff88006944eee8
---[ end trace 0ef225aa830b2789 ]---


---
This bug is generated by a dumb bot. It may contain errors.
See https://goo.gl/tpsmEJ for details.
Direct all questions to syzkaller@...glegroups.com.
Please credit me with: Reported-by: syzbot <syzkaller@...glegroups.com>

syzbot will keep track of this bug report.
Once a fix for this bug is committed, please reply to this email with:
#syz fix: exact-commit-title
To mark this as a duplicate of another syzbot report, please reply with:
#syz dup: exact-subject-of-another-report
If it's a one-off invalid bug report, please reply with:
#syz invalid
Note: if the crash happens again, it will cause creation of a new bug  
report.
Note: all commands must start from beginning of the line.

View attachment "config.txt" of type "text/plain" (123749 bytes)

Download attachment "raw.log" of type "application/octet-stream" (7461 bytes)

View attachment "repro.txt" of type "text/plain" (1020 bytes)

Download attachment "repro.c" of type "application/octet-stream" (38123 bytes)

Powered by blists - more mailing lists