Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1865753ybb; Thu, 9 Apr 2020 10:25:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKUGgNWGXd9LYEEZwipTdFI2q93kSDwq6nvb73RQo0vXH7049YNbU3mLHuUWWmFWHIrtRYn X-Received: by 2002:a05:620a:1ed:: with SMTP id x13mr995245qkn.70.1586453148740; Thu, 09 Apr 2020 10:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586453148; cv=none; d=google.com; s=arc-20160816; b=BDrfZ836WsoQ1UiyzvJ0POJbLIJpMMcYuW4MO7efjqX+cywGJTVZpNbUeaRncBFAPw 7dv/JLzqM5kQUvgIO5UshLEfh+JMlOAdpnUuoYXRTZJPLBOzEqlj76BqJbtIDQYSNf3D A8e8RnTO8Lir9uazcUsqxpcfxKPjxA8IxwFodw+B0ChaA2q5igXSf+zyhlmkygZfCPza mkRKu1VFRZ1yLpy5X+sXqGclJbuM8jdeI0qUFTX7uYHfRWACLzbQ8N8b9kpgzN8r2ic+ hQekOUbU55/BWTZT/UNTfaqebN99OtHsFcEGk7dbu7E+ZFupUZPLNGlQXhvEjhh9QI00 GtnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=DIocbXZ/GrySYJM2qjlB0aVfLDG/I+8RC+5beeuDqKQ=; b=mqzjnSSC61XS0BfZONGWmbBbviYitv45W5dkuo0MSCYIbw2BNG62igZvhhEFEOeXyA c7c7cyTZsqOCFyXKtYNeCeW0P4eyNpoAn6vjjQxC59v7QshvCckC29f3FEetlmNmbwoe 7E0IQ1ttzbfCL9is6iQ4Qaw4Tf1BE7X2XwNERf3TegFEZKIJtJciM0lofRws8JbzbIdF yzfEBoT98/qOf5CasqTyhDgRG1QZFRROiUX0sHQUoSbrChQApxiKIB6SUdpM7DM+o3eP KiEt8gtvPXHnV5yf/Lu+AqEsiULPsVgg8Atnk6K4LcJdFIfpZmJc3OZVzrI9cka5jqB6 xZbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=rropwxWi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u187si6440303qkb.229.2020.04.09.10.25.32; Thu, 09 Apr 2020 10:25:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=rropwxWi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728027AbgDIPKd (ORCPT + 99 others); Thu, 9 Apr 2020 11:10:33 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:45598 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbgDIPKc (ORCPT ); Thu, 9 Apr 2020 11:10:32 -0400 Received: by mail-qk1-f196.google.com with SMTP id m67so4208168qke.12 for ; Thu, 09 Apr 2020 08:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DIocbXZ/GrySYJM2qjlB0aVfLDG/I+8RC+5beeuDqKQ=; b=rropwxWiFn2w4WZ/eqv8MdbJFi26bRLRbgBUG9wGB+0VCTjauS8nU81/N8kxvdyVnD R4UvF4evvwf2RWu7qI44owvQYpgghZYQE7g2936Uc0Wamem2nJTvqwbKYpWxXMfBN+Td ybZn1+3VDLyLj6y12q5q52UK0I+8kWOaMfyk1Y1+cZBFcK7KxU3yUcdtkJLu5puQIvp2 UMSRjN0cbdDNmQBCpno7rcnePcplHvCOKqxA3OuMF0VHiHnJaB2h0aZwVYX4sqrUAlpl MD52i3KsjWHxtvJNSvCQrHlfU0D6H11iF7PJHSf3JJhA3QpS8Oq7MXAFkFIlltUtKJb6 1bTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DIocbXZ/GrySYJM2qjlB0aVfLDG/I+8RC+5beeuDqKQ=; b=VKAMGx7aoZlKc4fZe0rZxY+ikTHEQUQjYaIkTDk7lST1dbfpcI7rbTG5rczXxVmtVc JmKCs4mqW5mencGOkoDpiJ9iNeUj3of6Rvda5/JWJHheWgMCym25Z1K8q7VCaGf8yZFv X66LlhHmSUnwhGDkSSueplKL39vcsjeUzRzyKeCkzuIJD8pEXODumL1zaE92Bx1IDQTu j+6sNHgrHcrp0Aw2g/8RS7rpf3Qgju7d2LXQ49t6ikjtinKYwtj6W0ilNyQbuhn//DGo aXGVGxqD5bzNO9TLeDxfES5EBB+rIVO/AWWnru92HQpiX6RNM8MMJctb2+9RGh8Vsaku 3cxg== X-Gm-Message-State: AGi0PuYaGruQ1gy0oX0R/etsQHS2yj2PTVY+3fNC3jcxCsJJ14hhjc/D 5F+A7ViuxyD8Z3w2om/3tSekPg== X-Received: by 2002:a05:620a:12fa:: with SMTP id f26mr282331qkl.374.1586445030295; Thu, 09 Apr 2020 08:10:30 -0700 (PDT) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id y21sm21347011qka.37.2020.04.09.08.10.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Apr 2020 08:10:29 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: KCSAN + KVM = host reset From: Qian Cai In-Reply-To: Date: Thu, 9 Apr 2020 11:10:28 -0400 Cc: Paolo Bonzini , "paul E. McKenney" , kasan-dev , LKML , kvm@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <017E692B-4791-46AD-B9ED-25B887ECB56B@lca.pw> To: Marco Elver X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Apr 9, 2020, at 3:03 AM, Marco Elver wrote: >=20 > On Wed, 8 Apr 2020 at 23:29, Qian Cai wrote: >>=20 >>=20 >>=20 >>> On Apr 8, 2020, at 5:25 PM, Paolo Bonzini = wrote: >>>=20 >>> On 08/04/20 22:59, Qian Cai wrote: >>>> Running a simple thing on this AMD host would trigger a reset right = away. >>>> Unselect KCSAN kconfig makes everything work fine (the host would = also >>>> reset If only "echo off > /sys/kernel/debug/kcsan=E2=80=9D before = running qemu-kvm). >>>=20 >>> Is this a regression or something you've just started to play with? = (If >>> anything, the assembly language conversion of the AMD world switch = that >>> is in linux-next could have reduced the likelihood of such a = failure, >>> not increased it). >>=20 >> I don=E2=80=99t remember I had tried this combination before, so = don=E2=80=99t know if it is a >> regression or not. >=20 > What happens with KASAN? My guess is that, since it also happens with > "off", something that should not be instrumented is being > instrumented. No, KASAN + KVM works fine. >=20 > What happens if you put a 'KCSAN_SANITIZE :=3D n' into > arch/x86/kvm/Makefile? Since it's hard for me to reproduce on this Yes, that works, but this below alone does not work, KCSAN_SANITIZE_kvm-amd.o :=3D n I have been able to reproduce this on a few AMD hosts. > exact system, I'd ask you to narrow it down by placing 'KCSAN_SANITIZE > :=3D n' into suspect subsystems' Makefiles. Once you get it to work = with > that, we can refine the solution. >=20 > Thanks, > -- Marco