Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1586348ybt; Sat, 27 Jun 2020 13:01:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC1eyFzpMBX3HRQy1U163PIVLGZRA13y0IovFaTvJTnLmKiVj66Hrk9IfzEnm6A5yu6QKm X-Received: by 2002:a17:906:7751:: with SMTP id o17mr8187647ejn.111.1593288113366; Sat, 27 Jun 2020 13:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593288113; cv=none; d=google.com; s=arc-20160816; b=gJ5tgtCYzG4j2zbofr6tPP3gb467dn9WFVOh3j7B2/aUSHLP8oNjONINe5s2PiP0y6 CqBrYazAUtd4CsszaMuVt+lVxP0aHcblVai8OiXckANK4oQSRi66tuyDffCXLE+3Oc2D odScjt94p04c1GEK5hF7STvrC6CNAFshycU2jfHLEJDal3bd2vEuHYxxbZIc9kHLz2GN drxFpEu820KVINKfxk7dg3JlWRONqnrMboqrbyvpU5hHCZllBLmRHGmJVQa17gna9XjE Bq2wPYNj9Bji9cYgqDmYGTPxip4VkcEQGU7oBGuS9wSJVt9i8qFCpLSIhaH0ESy+zrGi 1UFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=Mvxz2KaB3q5DOPBNFkkKBK9pRd2aubCwIdLOx3Y8RO4=; b=pl5XBIaX62t2XBcQCNL5PqcHgmo6QjnFmr3OmY/YdAmhJn+Y3Pbw1x/bi9Ku/fMPG2 7DtJ2GgbdZ8UMsSerpDEgsKnIvIQXMN8/IcVUHhCeAJeVCIzeikhK33yjSKFUFdZ5q3U +h0ypN3r9TjmzMhmCoy/vbwXx/wE9dnTxJNdnkyLYpwdxTlSCAPAYq28ZK/GCax82qnv OO1tN8wA8XPuTIiwrs5iTQEThKILLp70R58SF9fXyucG0hCCs5PnrncfH/hzpPhecQJg nObK87v/QYzUfmfaMDya2lv1zHRK+/shhR4b5sY5SDQTwtdcq3uz+xATZH1O5CtES2xs AUgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh22si4877272edb.38.2020.06.27.13.01.30; Sat, 27 Jun 2020 13:01:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726586AbgF0UBP (ORCPT + 99 others); Sat, 27 Jun 2020 16:01:15 -0400 Received: from mail-il1-f197.google.com ([209.85.166.197]:51847 "EHLO mail-il1-f197.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725900AbgF0UBO (ORCPT ); Sat, 27 Jun 2020 16:01:14 -0400 Received: by mail-il1-f197.google.com with SMTP id m3so9025087ila.18 for ; Sat, 27 Jun 2020 13:01:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=Mvxz2KaB3q5DOPBNFkkKBK9pRd2aubCwIdLOx3Y8RO4=; b=WvGgCo0ZxAWpckdagg/7MieMWq4EF/nfSOj/aVXAlyu8TGiRR8d+xNtwt3f6yl/Ey+ cr3O4Doiswn77jV0AHCr0z42mWJx+5/MUotKgOu1C1G2q9Ak1qh4JieLIlKOuMeE8uEL AmqE9TNLHHVwH4DcfI5GDWIncGuGMVlyqg6H6jfNvR4ugBUP768tw0gXQJYjHTFqPGh/ o0mZtHbfbbNA9ClqOqcKCIN0NZJddO4DCe+ljmZB1lQLusbCn0Qax4XgQc6feIgpQD3/ Itg/E+3FFzI075rvWnOMa8MFcCMaFX0bgq07KZKKVKSZpKVUzCHGwOFp5J2Rw15LYmbQ IzOg== X-Gm-Message-State: AOAM530eO3W3kyIku7wbzAzfTsAeYOFqDsSQhFXgofol2EdOGLsotYGP q0Vc22l/0xfCDNXyBcgCmpaucBS/HxnwFoaMG+0/Mqa5Slow MIME-Version: 1.0 X-Received: by 2002:a02:1443:: with SMTP id 64mr9868582jag.43.1593288073178; Sat, 27 Jun 2020 13:01:13 -0700 (PDT) Date: Sat, 27 Jun 2020 13:01:13 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a0784a05a916495e@google.com> Subject: KASAN: out-of-bounds Read in kvm_arch_hardware_setup From: syzbot To: bp@alien8.de, hpa@zytor.com, jmattson@google.com, joro@8bytes.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, pbonzini@redhat.com, sean.j.christopherson@intel.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, vkuznets@redhat.com, wanpengli@tencent.com, x86@kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 7ae77150 Merge tag 'powerpc-5.8-1' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1654e385100000 kernel config: https://syzkaller.appspot.com/x/.config?x=be4578b3f1083656 dashboard link: https://syzkaller.appspot.com/bug?extid=e0240f9c36530bda7130 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15f3abc9100000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=131b7bb5100000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+e0240f9c36530bda7130@syzkaller.appspotmail.com ================================================================== BUG: KASAN: out-of-bounds in kvm_cpu_cap_get arch/x86/kvm/cpuid.h:292 [inline] BUG: KASAN: out-of-bounds in kvm_cpu_cap_has arch/x86/kvm/cpuid.h:297 [inline] BUG: KASAN: out-of-bounds in kvm_init_msr_list arch/x86/kvm/x86.c:5362 [inline] BUG: KASAN: out-of-bounds in kvm_arch_hardware_setup+0xb05/0xf40 arch/x86/kvm/x86.c:9802 Read of size 4 at addr ffffffff896c3134 by task syz-executor614/6786 CPU: 1 PID: 6786 Comm: syz-executor614 Not tainted 5.7.0-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+0x1e9/0x30e lib/dump_stack.c:118 print_address_description+0x66/0x5a0 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report+0x132/0x1d0 mm/kasan/report.c:530 kvm_cpu_cap_get arch/x86/kvm/cpuid.h:292 [inline] kvm_cpu_cap_has arch/x86/kvm/cpuid.h:297 [inline] kvm_init_msr_list arch/x86/kvm/x86.c:5362 [inline] kvm_arch_hardware_setup+0xb05/0xf40 arch/x86/kvm/x86.c:9802 The buggy address belongs to the variable: kvm_cpu_caps+0x24/0x50 Memory state around the buggy address: ffffffff896c3000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff896c3080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffffff896c3100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffffff896c3180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff896c3200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== --- This bug 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 syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches