Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp469688ybt; Sat, 13 Jun 2020 10:08:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqDTjJ8n0z0QZbd7pYAa8MviRo7IvVzmNwv5wcq9+oSXxopleiF/XH+1gkhTiegZOZW0dj X-Received: by 2002:a50:be8f:: with SMTP id b15mr16387489edk.182.1592068121744; Sat, 13 Jun 2020 10:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592068121; cv=none; d=google.com; s=arc-20160816; b=upSvwB4CDn7/ZCwl3PndvNKGDx/glApHBx+hF+kukcc3XkZzjwKHPwOjOkaAWiyMAo nRCZ2+ypXi3EFabaeQw2e92LT7KwVq4FDK8RcGGI731NEbKqNSdDLSUTT8K8ePKFFR3v 73erwhrOhCD+Hz/7C8XV1rZF5Y7kkGoLXXEdTKz9wuyc3MHq1wlfyPw5/fD/PlV5ItT/ UcEXbTSYxto6w8IsGMdHrHWF8MZ6clgQtdR9dNQEbRuGRx+P8q9oCud89DjDUckxYJaR L+p/l6oHqvxGevSjanyKi6XyotN/aQiju2CUqYK3x1LHlRZjaaGgVsR4n2Ul9rQeCa2X EnTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=TVoF46ZTp3UNeAoEv5PyfO7EYExBt4O+bZ/7yxKofXw=; b=HMt21HY+n8OT1r3QY4EJ9fQi7uRKRCUQTPGqY3Zfx3qsgWaKbmLxsASEAwxiTL94aV ZvlalUCm8YkTPaStcZTdINDD/IfZrefItjE23GPsln3bk/OpLvpQ21JS48XR+Hi5sSHh zOzhO5cZbugQ3cLkF01PX0g0AhSdTz4wWltQ6LxCm9s6R4pSc3Ew4xBlueD97A0ZEZzG aiNSEP1zzpbZxz23Yn9BTxiq4dR7RrKkLUe4t/kUMyqQVYqO3KrVC1SMUguE3r/6mYjl DoOVqiVrR2gpXjAHoSEkNmEfnVDomKEQ5Qe6+pKEnXu6Ulhwcm+2BP0erFvsCY0JhR/D CSKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=jjhW0IgQ; 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 s9si6217719edx.608.2020.06.13.10.08.18; Sat, 13 Jun 2020 10:08:41 -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=jjhW0IgQ; 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 S1726437AbgFMRDX (ORCPT + 99 others); Sat, 13 Jun 2020 13:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbgFMRDX (ORCPT ); Sat, 13 Jun 2020 13:03:23 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AD45C03E96F for ; Sat, 13 Jun 2020 10:03:21 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id w3so12002809qkb.6 for ; Sat, 13 Jun 2020 10:03:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=TVoF46ZTp3UNeAoEv5PyfO7EYExBt4O+bZ/7yxKofXw=; b=jjhW0IgQ5iypg/RAK65TJNtp969dLa6vQ9x2xTLeqLtYLtF5kW/dsxRMMU7Se8MRuM HESFz0USBa+Az+ganFw6KppBpdAjqcirv8FzCsXfw+Dex9jW3woqoVsRjGkgsLpF8ib1 H45UmGZYF+Wv3bIwZHOM+8nHKe2qO42woDE+gQdAmvDHQOMN+dS7trEQVrbqAnat/Urx vLr4UFJSo1FCfuJcYzV7r6yMkXLfGjiDwjrEMR5O7y/V0DnTkLcilSQAkxtNMfg6vlCu 2lQ/FVGxXEexTsFs58UHDozXyZxsK0zIEceGviLzVPQL3fkia/v+viAALAiF/Kwtblhk fVvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=TVoF46ZTp3UNeAoEv5PyfO7EYExBt4O+bZ/7yxKofXw=; b=um9h0bdo7rCXIhiOSdyD8dlOHY7BAVjGlPudpXxtkSrzOGWHhi8Zfh13R6ljY6B8VG WBcz722CDvrYdRFq4DWpE8fQw2H6fF2i3ITBwCCO4O4KGzOuxIUZ5yq3TTeexrx/ePlF lZLuiVHZrEDwio8395JjC9hQUacQqp8tNVHv7atBPZIvAygrJFh67dzv4M5LO7lK0Y+q KY51OvHvK/CdREGei4PCSDbqzoN+WQ9pXFmgoirAyngqXPKt/vc/vhyBK6ml/7MkqSMp EulEvX/Oo4ygMgfElw0BcsumSlzhP+SLbL10Q9b/c03BOAXORy32X+BPWRFMsQInG3Z1 Oqqw== X-Gm-Message-State: AOAM531JooAEUX3jGOmM8910BGiCzWmEKoyIcJwdnGjXYvfQcl78eH35 8YdfC6KtUQ1+iQJ390Lz8FrsLg== X-Received: by 2002:a05:620a:21cc:: with SMTP id h12mr8301162qka.194.1592067800115; Sat, 13 Jun 2020 10:03:20 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id c191sm6627234qke.114.2020.06.13.10.03.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Jun 2020 10:03:19 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: AMD SME + KASAN = doom Date: Sat, 13 Jun 2020 13:03:18 -0400 Message-Id: References: <20200613155449.GB3090@zn.tnic> Cc: Thomas.Lendacky@amd.com, brijesh.singh@amd.com, tglx@linutronix.de, glider@google.com, peterz@infradead.org, dvyukov@google.com, kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org In-Reply-To: <20200613155449.GB3090@zn.tnic> To: Borislav Petkov X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jun 13, 2020, at 11:54 AM, Borislav Petkov wrote: >=20 > $ head arch/x86/mm/Makefile > # SPDX-License-Identifier: GPL-2.0 > # Kernel does not boot with instrumentation of tlb.c and mem_encrypt*.c > KCOV_INSTRUMENT_tlb.o :=3D n > KCOV_INSTRUMENT_mem_encrypt.o :=3D n > KCOV_INSTRUMENT_mem_encrypt_identity.o :=3D n >=20 > KASAN_SANITIZE_mem_encrypt.o :=3D n > KASAN_SANITIZE_mem_encrypt_identity.o :=3D n >=20 > so something else needs to be de-KASAN-ed too. Okay, I=E2=80=99ll try to figure out what else needs to be done. >=20 > For now flip your Subject: AMD SME - KASAN =3D boot. Which is a bit of shame because KASAN is proved useful for testing and at th= e same time SME could flags some issues with drivers like megasas_raid (wher= e the driver will do a firmware dump during the boot which I plan to debug m= ore a bit later).=