Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp832884yba; Fri, 26 Apr 2019 09:27:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7/UojdtA+oDNFFvtrCH+mb/TH+3hBmsedUv892Gel9KBQ5FFTyIvqXv0Mj+fey/giP7DC X-Received: by 2002:a65:5549:: with SMTP id t9mr44050194pgr.388.1556296046358; Fri, 26 Apr 2019 09:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556296046; cv=none; d=google.com; s=arc-20160816; b=Hyl5OlaAQKyC3q38gzPLq0HMjvXVoseiB4XMDozihrjpQE2vnSJgLe93D/ZVAunWvP WYkJnIGMB2Ri6aFOJtnGWnOOqVM9IyeHftxdgrt9gSO1niwuLcOXQSsbyqDxTXTvYAyg xn7ihOOOY/kWR4J1x/SVlBb+Kq1MlV2h366sDM+NHfVgT2myuqf/abqYPqwDaeYXVP+x InA2AiaeQvuOs2hhXYwZheWr9PjNvrdS6y6g3XQ1kkyhMi5qPE2o5zEsNdrY4rxUSxty ZgA+rLtobI5/QldSRJUAU1wSziFHZkWNkdDKACBj0Lb3PV+HbkSt3HzSP/u+GOSaYrug 8lyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2kiYXGYQX2SxOeynwl2dMGLr/4+J9UNbsvmt9zhXxcw=; b=h8V4Rzo/alQTOG/QN58GLOJDgcu6E1P3+9bbejQ9ZYrJwPIvJqoRMZgvzUGaNaR5ak u8ii+ggtcUwjVwFy4hMkBj5ZEXI2ByUtdJSBflGRQlaxz1KndlLit/JeT2TqKJEpl1HD UL0B2XlswdcxKLTg2RLagFP83S7Nxw9oBuRiHTp8ht4p0Akipq1vLoABom+sJC5poUjt M+BCVfd1hWwFbM/mAZ3DSMgo7AZ91OVkclZyNNmJ7N7cydFCru52rmaA8MQrFceHZuWc j9dIJA8dodqqt94EBU2DwdYU5S3y8OLPYe8UtwbrvqvxmG7TDD3wzXDuz72KyhI5cMJR drrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=MP8yg4sf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si18523640pgc.472.2019.04.26.09.27.10; Fri, 26 Apr 2019 09:27:26 -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=@alien8.de header.s=dkim header.b=MP8yg4sf; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726368AbfDZQY1 (ORCPT + 99 others); Fri, 26 Apr 2019 12:24:27 -0400 Received: from mail.skyhub.de ([5.9.137.197]:54062 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbfDZQY1 (ORCPT ); Fri, 26 Apr 2019 12:24:27 -0400 Received: from zn.tnic (p200300EC2F0E4E009523F59E52E4EA88.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:4e00:9523:f59e:52e4:ea88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6E77A1EC078A; Fri, 26 Apr 2019 18:24:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1556295866; 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:in-reply-to:in-reply-to: references:references; bh=2kiYXGYQX2SxOeynwl2dMGLr/4+J9UNbsvmt9zhXxcw=; b=MP8yg4sfmw/0aLJX6+H2QSXOfIqxrnrABKDyCgJuCZsGKOl2flA+YlHq+cwQwphTIHC97B cRbzKCVI+s2zOqUfNt2/LaJoWOd5HdA3LcLeuEgHBqScH5msH+VvopY8fybDznGIi5NTs9 WAM0JrQWVAyoxNdsJMDhAG0aqTJ7dOY= Date: Fri, 26 Apr 2019 18:24:25 +0200 From: Borislav Petkov To: Gary R Hook Cc: Thomas Gleixner , "Hook, Gary" , "linux-kernel@vger.kernel.org" , "dave.hansen@linux.intel.com" , "peterz@infradead.org" , "x86@kernel.org" , "mingo@redhat.com" , "luto@kernel.org" , Alexander Potapenko Subject: Re: [PATCH] x86/mm/mem_encrypt: Disable all instrumentation for SME early boot code Message-ID: <20190426162425.GI4608@zn.tnic> References: <155440965936.6194.3202659723198724589.stgit@sosrh7.amd.com> <5dfcb133-0a0e-9e07-3774-313e30814e79@amd.com> <20190408165835.GJ15689@zn.tnic> <8a14050e-2516-5c0f-195d-611c6959b94b@amd.com> <20190408190800.GL15689@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 26, 2019 at 03:11:17PM +0000, Gary R Hook wrote: > 2) Turn off instrumentation for lib/cmdline.c. The risk is that any > changes to its code would not enjoy the benefits of KASAN/etc testing > (if enabled). What happened to Thomas' suggestion to turn off instrumentation for those files only when CONFIG_AMD_MEM_ENCRYPT=y? Which is a variant of 2) above with ifdeffery. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.