Hello,
syzbot found the following issue on:
HEAD commit: a87f9628 Linux 4.19.145
git tree: linux-4.19.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=1374d755900000
kernel config:
https://syzkaller.appspot.com/x/.config?x=9688ecb5b728ce13
dashboard link:
https://syzkaller.appspot.com/bug?extid=d19d5da4d11d50d2f314
compiler: gcc (GCC) 10.1.0-syz 20200507
Unfortunately, I don't have any reproducer for this issue yet.
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+d19d5d...@syzkaller.appspotmail.com
================================================================================
UBSAN: Undefined behaviour in arch/x86/kvm/pmu_intel.c:299:45
shift exponent 194 is too large for 64-bit type 'long long unsigned int'
CPU: 1 PID: 13946 Comm: syz-executor.5 Not tainted 4.19.145-syzkaller #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+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
intel_pmu_refresh.cold+0x9b/0xa0 arch/x86/kvm/pmu_intel.c:299
kvm_update_cpuid+0x6d9/0xaf0 arch/x86/kvm/cpuid.c:147
kvm_vcpu_ioctl_set_cpuid2+0x151/0x1c0 arch/x86/kvm/cpuid.c:255
kvm_arch_vcpu_ioctl+0xfc0/0x2e10 arch/x86/kvm/x86.c:3930
kvm_vcpu_ioctl+0x8af/0xe30 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2974
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5f9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc9a3384c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000011b00 RCX: 000000000045d5f9
RDX: 0000000020000540 RSI: 000000004008ae90 RDI: 0000000000000006
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffd2eb7484f R14: 00007fc9a33859c0 R15: 000000000118cf4c
================================================================================
================================================================================
UBSAN: Undefined behaviour in arch/x86/kvm/pmu_intel.c:301:13
shift exponent 248 is too large for 64-bit type 'long long unsigned int'
CPU: 0 PID: 13946 Comm: syz-executor.5 Not tainted 4.19.145-syzkaller #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+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
intel_pmu_refresh.cold+0x75/0xa0 arch/x86/kvm/pmu_intel.c:301
kvm_update_cpuid+0x6d9/0xaf0 arch/x86/kvm/cpuid.c:147
kvm_vcpu_ioctl_set_cpuid2+0x151/0x1c0 arch/x86/kvm/cpuid.c:255
kvm_arch_vcpu_ioctl+0xfc0/0x2e10 arch/x86/kvm/x86.c:3930
kvm_vcpu_ioctl+0x8af/0xe30 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2974
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5f9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc9a3384c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000011b00 RCX: 000000000045d5f9
RDX: 0000000020000540 RSI: 000000004008ae90 RDI: 0000000000000006
RBP: 000000000118cf80 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffd2eb7484f R14: 00007fc9a33859c0 R15: 000000000118cf4c
================================================================================
================================================================================
UBSAN: Undefined behaviour in arch/x86/kvm/pmu_intel.c:310:12
shift exponent 164 is too large for 64-bit type 'long long unsigned int'
CPU: 1 PID: 13987 Comm: syz-executor.5 Not tainted 4.19.145-syzkaller #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+0x22c/0x33e lib/dump_stack.c:118
ubsan_epilogue+0xe/0x3a lib/ubsan.c:161
__ubsan_handle_shift_out_of_bounds.cold+0x1c4/0x250 lib/ubsan.c:422
intel_pmu_refresh.cold+0x56/0xa0 arch/x86/kvm/pmu_intel.c:310
kvm_update_cpuid+0x6d9/0xaf0 arch/x86/kvm/cpuid.c:147
kvm_vcpu_ioctl_set_cpuid2+0x151/0x1c0 arch/x86/kvm/cpuid.c:255
kvm_arch_vcpu_ioctl+0xfc0/0x2e10 arch/x86/kvm/x86.c:3930
kvm_vcpu_ioctl+0x8af/0xe30 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2974
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:501 [inline]
do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
__do_sys_ioctl fs/ioctl.c:712 [inline]
__se_sys_ioctl fs/ioctl.c:710 [inline]
__x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45d5f9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc9a3321c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000011b00 RCX: 000000000045d5f9
RDX: 0000000020000540 RSI: 000000004008ae90 RDI: 0000000000000006
RBP: 000000000118d160 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118d12c
R13: 00007ffd2eb7484f R14: 00007fc9a33229c0 R15: 000000000118d12c
================================================================================
audit: type=1804 audit(1600306655.178:68): pid=14265 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir495383878/syzkaller.BrSfsD/261/file1/file0" dev="loop4" ino=23 res=1
audit: type=1804 audit(1600306657.928:69): pid=14308 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir495383878/syzkaller.BrSfsD/262/file1/file0" dev="loop4" ino=24 res=1
audit: type=1804 audit(1600306660.898:70): pid=14359 uid=0 auid=0 ses=4 subj=system_u:system_r:kernel_t:s0 op=invalid_pcr cause=open_writers comm="syz-executor.4" name="/root/syzkaller-testdir495383878/syzkaller.BrSfsD/263/file1/file0" dev="loop4" ino=25 res=1
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.