Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp431564ybt; Sat, 13 Jun 2020 08:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdWbPqKIVBGWhhJp/op2eGIODb/ZEhdYk6p8cyi/84gO9wMEht8OicoaMtsQUe1GxUQEgU X-Received: by 2002:a17:906:648e:: with SMTP id e14mr2514287ejm.308.1592063945776; Sat, 13 Jun 2020 08:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592063945; cv=none; d=google.com; s=arc-20160816; b=cj24zx6qGpTSsi0wAWRjrF1MiIi2ZQzbClHD17ceeyJ4rjbNk6yD/BkHOdgndukGYh Bjj9ctQKresm9JE1WmgHJSw6sKDq+KTj3hSCnJjr54XooSIAGsPwBYjH5933B+L08+aX elb7XtE0DpSqXdehMPO+BDbozKQw2owOUAtDwtLV5TsdrT4U/mbsHxP9n5HFabOd52s5 0cI4JxQCYnJzBaouGLU/+Ur3A6cqT9cF32KHzw21uqlIzIUmY7LdvlfnX/1kcjwrhedy SIOA0kLXb8Kz81CAY3TrBPBY6tlU8+obDF/rJhQ5C9hb0lArw6GzVZEE0Ff4VnnaqjW+ C52A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=L11aPAgfuQ6rfO/04YpICoQpKfv2/gzciCyYcX7Ltok=; b=qmBrMRH/p39cyPsgCtP0Nbt9NiQbp1WwE+vAFPr48owWSy4QQZZiiWBaU7H+0uj7k9 y9anKxE93fvHVymOKUIu0nO+A9hqUYZiOC9YgBqVuaiCe2E/uHgAJBU8GIgo58NYcgcd cp2xeRFdGgPNRrjL6+C1jAsGhY3g1fTc6XMU90TlU43svPwq/9xphbNEIFuRE4RuM0x1 8ANO+g9dtKWZ8Z+bW1YRius2ye7x4HeaocXSo6g2NV3ZxUC/d38uuLmxnJivQxMKKd8R 6heOWM1MDZnIEcqFcgEo3iWtEDTOG3DpVYCljskBap0uAqJML2aRPP7uB+qRXZUdMfL8 t6Bw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si5911187eja.202.2020.06.13.08.58.42; Sat, 13 Jun 2020 08:59:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726437AbgFMPyw (ORCPT + 99 others); Sat, 13 Jun 2020 11:54:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:47286 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbgFMPyw (ORCPT ); Sat, 13 Jun 2020 11:54:52 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 8A9DDAB76; Sat, 13 Jun 2020 15:54:54 +0000 (UTC) Date: Sat, 13 Jun 2020 17:54:49 +0200 From: Borislav Petkov To: Qian Cai 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 Subject: Re: AMD SME + KASAN = doom Message-ID: <20200613155449.GB3090@zn.tnic> References: <20200613152408.GB992@lca.pw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200613152408.GB992@lca.pw> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 13, 2020 at 11:24:08AM -0400, Qian Cai wrote: > CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=y + KASAN (inline) will reset > the host right away after those lines on linux-next (the mainline has > the same problem when I tested a while back, so it seems never work), $ 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 := n KCOV_INSTRUMENT_mem_encrypt.o := n KCOV_INSTRUMENT_mem_encrypt_identity.o := n KASAN_SANITIZE_mem_encrypt.o := n KASAN_SANITIZE_mem_encrypt_identity.o := n so something else needs to be de-KASAN-ed too. For now flip your Subject: AMD SME - KASAN = boot. -- Regards/Gruss, Boris. SUSE Software Solutions Germany GmbH, GF: Felix Imendörffer, HRB 36809, AG Nürnberg