Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp710902ybz; Wed, 15 Apr 2020 17:15:20 -0700 (PDT) X-Google-Smtp-Source: APiQypLnIeDU3Lqr1yLu5KBYz+h1OQNdMLCzWC5GcqVTMPFDLzD94EvP64dNBdkOheT70WJls0Yy X-Received: by 2002:a17:906:cec5:: with SMTP id si5mr7345605ejb.267.1586996119876; Wed, 15 Apr 2020 17:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996119; cv=none; d=google.com; s=arc-20160816; b=MY1k4s7fviHe9O+Ok54o6ceFLnr8g5nXDm7LFXeHPP2wZdgUG1J2wAy+/9kkfzupDn I20B2tQkRL1ZE5SSvnaRtUGupeB0Ik9a7oSurT3C3NBXL0sbc5PlBgYsvfFIh8DpX9lJ 3uBUswhZV1zkoyHYqNLWDpWcEzzedf0lN1pmL1CEeeo7/LTPYs2VC/1twXxdwd8+L3Xw I5MtITvoCK8SaryHdMwIpFvrCDBS2VfSynvI8ycaoOqJ0Dgf8Vk+TzXE1NO6AL+lJVCn gSEugQZxkOLAczlFvI39MZsApXdrf11rs5UbM0ItCkMGRwkejS3pZGbVkLcfF0U4DAeq vceA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EeFIVTegln/F+8Ij5JttngNbXaEaGERsEIMec13qZzg=; b=gh9VMqZliLKe33CHyW5f5/ZlfMv0QrRyqXpn5ZfnaPxIOYqjP9tb2m41rhmmZjyVXc kPR9OoGLwlTTvPXs+F2Ge5LMzE+6JZgooUN29KmWegwKd8oLX8Y1gRYohVugZT8RSvX+ yS8cnRn0AMXHmZIC8IZo9Yj/+0FrruzF/CfN30TAIh4GvbVhE9SHEhMq51ZNyZN9N6vC 87cjjUg3eG+Vb5R2IxKN+B/Tiq/eYUx1geCXjh28dNG06oUpYwNP9n9yUQK9i+ISlw9B JKM7R5x5TuED0ExFVJuY0xbWaZ3AcRrrktJdRcF66/JRbFiy47GlgTfGAfTg1/c9k3fw QT4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=WRxp2lhf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s1si11832909edw.590.2020.04.15.17.14.56; Wed, 15 Apr 2020 17:15:19 -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; dkim=pass header.i=@lca.pw header.s=google header.b=WRxp2lhf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1414765AbgDOPh0 (ORCPT + 99 others); Wed, 15 Apr 2020 11:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1414766AbgDOPhX (ORCPT ); Wed, 15 Apr 2020 11:37:23 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B641C061A0E for ; Wed, 15 Apr 2020 08:37:23 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id y3so17629986qky.8 for ; Wed, 15 Apr 2020 08:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EeFIVTegln/F+8Ij5JttngNbXaEaGERsEIMec13qZzg=; b=WRxp2lhfPadNKlqzoLQV8hxug+VjD1ar3yARtG3bgGXwaV60vtGjZu8bYj/o37CTnb zB9cQxs1a26yeWJxcq0kShTttFpZdGdVWGFu2b2NWqZtAUSvKXrdWq1e61oPN65WnmPv 0wOyIFtOQ+sdg9DpVuH+Y9bIzb1WyusCnIKviWgXUBuPrlUD4FkuIJ8ilAH4pOlXDPs5 RDFFcI86GJlJlgy1CIJS+sVrjplPRCBwz5CS0669dIORCcYAqaa0aS8nLJF1HkEVDFn8 jLh4wehfQ/a5bDFy1BtqaBNoIWddIDLPYeSBKvL4Dl5RZV/c/WlhfsftBxtC7yrquuNs FE3w== 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=EeFIVTegln/F+8Ij5JttngNbXaEaGERsEIMec13qZzg=; b=ASafoGU7V7uzUOoV2cD4kXc2qUPTXBV/1q8f2h1CNcOyG6e9yLosLwroS8yBXDhG9u DnG5qMej6Rc4+ziOmqCZrj3JweQogBth1g2vG2vYv4kJuzA2JYI/+Pa/p8Ga0JR1ymdt FpRaA5ctRpwiNhjTmb3EYgVXUrEgWnu4j42OQYaa4Sf7XiG0KNn99zL+CRJ2JCyDMC28 cSWo+BHtsE3naPZO7xgfde0nMxXA9g+yAFNojLsJ0bSKGHOOLWvy3PKPEqzg+1GZrSew OMTDYxZFJigIX9ohYCCNSroPs1hs1gPyaFBje1B4kMQaZjaVvXFg0DqlxJG3WxtCABcX nXiw== X-Gm-Message-State: AGi0PuZSzfbQtJytIogad2JZbj92kndtE0oeco7dZtXga9mPch2cvByV Fi6/rpkrUGrt4omq8D5ltbx3Lg== X-Received: by 2002:a37:9dd6:: with SMTP id g205mr8286950qke.9.1586965042621; Wed, 15 Apr 2020 08:37:22 -0700 (PDT) Received: from ovpn-113-148.phx2.redhat.com (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id i20sm12549999qkl.135.2020.04.15.08.37.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2020 08:37:21 -0700 (PDT) From: Qian Cai To: paulmck@kernel.org, pbonzini@redhat.com Cc: elver@google.com, sean.j.christopherson@intel.com, kasan-dev@googlegroups.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Qian Cai Subject: [PATCH -next] kvm/svm: disable KCSAN for svm_vcpu_run() Date: Wed, 15 Apr 2020 11:37:09 -0400 Message-Id: <20200415153709.1559-1-cai@lca.pw> X-Mailer: git-send-email 2.21.0 (Apple Git-122.2) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For some reasons, running a simple qemu-kvm command with KCSAN will reset AMD hosts. It turns out svm_vcpu_run() could not be instrumented. Disable it for now. # /usr/libexec/qemu-kvm -name ubuntu-18.04-server-cloudimg -cpu host -smp 2 -m 2G -hda ubuntu-18.04-server-cloudimg.qcow2 === console output === Kernel 5.6.0-next-20200408+ on an x86_64 hp-dl385g10-05 login: <...host reset...> HPE ProLiant System BIOS A40 v1.20 (03/09/2018) (C) Copyright 1982-2018 Hewlett Packard Enterprise Development LP Early system initialization, please wait... Signed-off-by: Qian Cai --- arch/x86/kvm/svm/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 2be5bbae3a40..1fdb300e9337 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -3278,7 +3278,7 @@ static void svm_cancel_injection(struct kvm_vcpu *vcpu) bool __svm_vcpu_run(unsigned long vmcb_pa, unsigned long *regs); -static void svm_vcpu_run(struct kvm_vcpu *vcpu) +static __no_kcsan void svm_vcpu_run(struct kvm_vcpu *vcpu) { struct vcpu_svm *svm = to_svm(vcpu); -- 2.21.0 (Apple Git-122.2)