From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D951FC55178 for ; Sun, 25 Oct 2020 18:53:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9807222269 for ; Sun, 25 Oct 2020 18:53:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="W2yXOFEB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1418319AbgJYSxn (ORCPT ); Sun, 25 Oct 2020 14:53:43 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:31204 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1418309AbgJYSxn (ORCPT ); Sun, 25 Oct 2020 14:53:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603652021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=l9opdhjO8wDOyQJdye7Bnt0YjHd2izk2OycmVO/q0mQ=; b=W2yXOFEBm47KDKGeWvL+aJGphLiAoPvnF1LoE5uvOTaq7SX1R0h8G6p80D/95Nr/xShYJG 63EAUV8HApWjsb/YEiLCKnI0OwccyPcPrBPi2tmSX6gpXh7SZfO4JWQlE55AvaBefxU4SL PItBLyODJ4wdURVJZXznyLVeJcZy9jE= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-446-wcY7MhUGM2WbMGhLo1lHeA-1; Sun, 25 Oct 2020 14:53:38 -0400 X-MC-Unique: wcY7MhUGM2WbMGhLo1lHeA-1 Received: by mail-qk1-f198.google.com with SMTP id z16so5020293qkg.15 for ; Sun, 25 Oct 2020 11:53:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=l9opdhjO8wDOyQJdye7Bnt0YjHd2izk2OycmVO/q0mQ=; b=aCNZfI2BvlVK09mLeZXm2li2N8e93FioAkFRnMBtVb4Dv+fGkLbXmkOAQolD4QzVwn fqydhjIJWszUyDEg03MRQfRXYOWM4mPDJdgR1j81f3cDd9h4jGz+OEE1BT4FN/92QdRb 50PWMPni0klstLT4y971AvqlBQFUoQOh/dewCRAP3guy+sm5GW5Yw/aH3j3ZoTUxxK5g vplG1niUnrDtslpGujru8lwckGPZErkflsUtb6j57NOTEXqiGyT30XWTGlFSHpuSAhQg 4oiZAMXIEbx6q3ZOpWuKm9sAkt9QXfb3EBpeydMw8wD6f2xRP4p5Bkn4DMqt2yq5LSwn dxmA== X-Gm-Message-State: AOAM531jcS+fGcYl3WIxvzEQs2eJreee4sOfTXDXNMDz+z7oC0dSFtzU BTz/Qci542qx9Wq6dRlT4irMJCjwAnWqGFb/pijT187QaJbAmkRdcR7fYQornLZHaan58qWbKGy 4yPAGIGNWgUKxYMGEUT+teNvf X-Received: by 2002:ac8:3510:: with SMTP id y16mr13427399qtb.300.1603652017282; Sun, 25 Oct 2020 11:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5KhSGchYzMGbuUSH7VwFwskXs0eZ8seChI+2sD6xWskBYWXULVezbnh/8TWgCLDUqJS/SKA== X-Received: by 2002:ac8:3510:: with SMTP id y16mr13427384qtb.300.1603652017070; Sun, 25 Oct 2020 11:53:37 -0700 (PDT) Received: from xz-x1.redhat.com (toroon474qw-lp140-04-174-95-215-133.dsl.bell.ca. [174.95.215.133]) by smtp.gmail.com with ESMTPSA id y3sm5305224qto.2.2020.10.25.11.53.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Oct 2020 11:53:36 -0700 (PDT) From: Peter Xu To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: Vitaly Kuznetsov , peterx@redhat.com, Sean Christopherson , Paolo Bonzini Subject: [PATCH 0/2] Fix null pointer dereference in kvm_msr_ignored_check Date: Sun, 25 Oct 2020 14:53:32 -0400 Message-Id: <20201025185334.389061-1-peterx@redhat.com> X-Mailer: git-send-email 2.26.2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bug report: https://lore.kernel.org/kvm/bug-209845-28872@https.bugzilla.ker= nel.org%2F/=0D =0D Unit test attached, which can reproduce the same issue.=0D =0D Thanks,=0D =0D Peter Xu (2):=0D KVM: selftests: Add get featured msrs test case=0D KVM: X86: Fix null pointer reference for KVM_GET_MSRS=0D =0D arch/x86/kvm/x86.c | 4 +-=0D .../testing/selftests/kvm/include/kvm_util.h | 3 +=0D tools/testing/selftests/kvm/lib/kvm_util.c | 14 +++++=0D .../testing/selftests/kvm/x86_64/state_test.c | 58 +++++++++++++++++++=0D 4 files changed, 77 insertions(+), 2 deletions(-)=0D =0D -- =0D 2.26.2=0D =0D