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-prev] [day] [month] [year] [list]
Message-ID: <f40304380b901d8b6e0566335b9e@google.com>
Date:   Tue, 27 Feb 2018 07:34:01 -0800
From:   syzbot <syzbot+fb7a33a4b6c35007a72b@...kaller.appspotmail.com>
To:     dvyukov@...gle.com, kvm@...r.kernel.org,
        linux-kernel@...r.kernel.org, pbonzini@...hat.com,
        rkrcmar@...hat.com, syzkaller-bugs@...glegroups.com,
        tglx@...utronix.de
Subject: Re: general protection fault in hrtimer_active (2)

syzbot has found reproducer for the following crash on upstream commit
6f70eb2b00eb416146247c65003d31f4df983ce0 (Mon Feb 26 21:22:45 2018 +0000)
Merge branch 'idr-2018-02-06' of  
git://git.infradead.org/users/willy/linux-dax

So far this crash happened 1825 times on upstream.
C reproducer is attached.
syzkaller reproducer is attached.
Raw console output is attached.
compiler: gcc (GCC) 7.1.1 20170620
.config is attached.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+fb7a33a4b6c35007a72b@...kaller.appspotmail.com
It will help syzbot understand when the bug is fixed.

audit: type=1400 audit(1519745465.629:7): avc:  denied  { map } for   
pid=4246 comm="syzkaller543411" path="/root/syzkaller543411621" dev="sda1"  
ino=16481 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023  
tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] SMP KASAN
Dumping ftrace buffer:
    (ftrace buffer empty)
Modules linked in:
CPU: 0 PID: 4246 Comm: syzkaller543411 Not tainted 4.16.0-rc3+ #331
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS  
Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline]
RIP: 0010:hrtimer_active+0x1da/0x3c0 kernel/time/hrtimer.c:1277
RSP: 0018:ffff8801b16173c0 EFLAGS: 00010202
RAX: 0000000000000008 RBX: 1ffff100362c2ea5 RCX: ffffffff81610225
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000010
RBP: ffff8801b1617500 R08: 0000000000002c02 R09: 0000000000000000
R10: 0000000000000011 R11: ffffed0036262078 R12: 0000000000000010
R13: 0000000000000000 R14: ffffed00362c2e83 R15: dffffc0000000000
FS:  000000000215d880(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa420cf1000 CR3: 00000001b2ef2002 CR4: 00000000001626f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
  hrtimer_try_to_cancel+0x91/0x5b0 kernel/time/hrtimer.c:1128
  hrtimer_cancel+0x22/0x40 kernel/time/hrtimer.c:1154
  kvm_lapic_reset+0x93/0xf40 arch/x86/kvm/lapic.c:2015
  kvm_arch_vcpu_setup+0x31/0x50 arch/x86/kvm/x86.c:7978
  kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2459  
[inline]
  kvm_vm_ioctl+0x52d/0x1cf0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2949
  vfs_ioctl fs/ioctl.c:46 [inline]
  do_vfs_ioctl+0x1b1/0x1520 fs/ioctl.c:686
  SYSC_ioctl fs/ioctl.c:701 [inline]
  SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692
  do_syscall_64+0x281/0x940 arch/x86/entry/common.c:287
  entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x43fcf9
RSP: 002b:00007ffdc42e1f88 EFLAGS: 00000217 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 000000000043fcf9
RDX: 0000000000000000 RSI: 000000000000ae41 RDI: 0000000000000004
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000004002c8 R11: 0000000000000217 R12: 0000000000401620
R13: 00000000004016b0 R14: 0000000000000000 R15: 0000000000000000
Code: ff ff 48 8d 85 18 ff ff ff 48 c1 e8 03 4e 8d 34 38 e8 1b f2 0f 00 48  
8b 85 f0 fe ff ff c6 00 00 48 8b 85 d8 fe ff ff 48 c1 e8 03 <42> 80 3c 38  
00 0f 85 c2 01 00 00 48 8b 85 e8 fe ff ff 48 8b 58
RIP: __read_once_size include/linux/compiler.h:188 [inline] RSP:  
ffff8801b16173c0
RIP: hrtimer_active+0x1da/0x3c0 kernel/time/hrtimer.c:1277 RSP:  
ffff8801b16173c0
---[ end trace f525a1611477bf99 ]---
Kernel panic - not syncing: Fatal exception
Dumping ftrace buffer:
    (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..


View attachment "raw.log.txt" of type "text/plain" (6915 bytes)

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

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ