Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3114947yba; Mon, 8 Apr 2019 11:26:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFGoCDoDhGKR2r3F/b83NsXF3MT+V7EklILCdtUJ47F1g5grsYaFJUjHmLdzD4mmWJZqEb X-Received: by 2002:a62:e50a:: with SMTP id n10mr31404384pff.55.1554747972553; Mon, 08 Apr 2019 11:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554747972; cv=none; d=google.com; s=arc-20160816; b=jf3qWqMOWQ2hpAKmE69I+wfIeYCalX62eaQ+qQPUJ1QGGeQL7BnUHXMRpYTLfvr6Yu ktrJuloUIjc0RhkN5MzzSSbBC/A+RVbpLqy2L4sCR9EwAKVPiGuNyVsXYx0UQM16dPiT 6/K4oTG+kT3al8AS9Ys6DU5SPPYXEEUn5PHZATZ0+5xFiW6jZHvNFWyKF1kgmn2nYQ6V OPa5a9INY4qQA+XembYT+vOotAwUA/hmn9UfhQ0o7bMLU+2agFFe1DB874okiR1A3zL2 BffaT66Y6wwf4nMrR41s/++K+zddeQawvktGIUpL1oah6tT9CYEu9KESHQv8ovJIAIhg Zdgg== 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=vVJdVYwihraoKiOZ7ZY6NRrqizU9Yjhs3bSjAJcqQUM=; b=n2svNHm5hCBkVrRBIK4OjOsQrpG7b22djNbP0o/k3d837rsM6NLw91RAv/bnjjDkfl szShmfrXFclpW1x0DiNAGULpxEhO8agrLhVFUKS1N2s7ACODq7rSsAiACxTJyvV4Fcbv 6bHbDgptIYm9z9pXx17xVUE7Hg71dvtefPQdBzUXluCjeuIpn1uokreSaYNwa1AGtoHb f41NIz095DcYzI3fHajmkrXgTC10fZhdxSA/ZPt3iG2g3LwWbzoDjQU+8Ba77RYQNprs Ksldk+5qZD2p6oKNrfqmPYxWMKG0gzztBxiO2dPln5sIpsgeiDlDrWqSY5MLORrukpvH Wt2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=bSJsi9JK; 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 1si18907661pln.373.2019.04.08.11.25.56; Mon, 08 Apr 2019 11:26:12 -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=bSJsi9JK; 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 S1729332AbfDHQ6r (ORCPT + 99 others); Mon, 8 Apr 2019 12:58:47 -0400 Received: from mail.skyhub.de ([5.9.137.197]:36646 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729246AbfDHQ6q (ORCPT ); Mon, 8 Apr 2019 12:58:46 -0400 Received: from zn.tnic (p200300EC2F07270000CFE9C28C8FA671.dip0.t-ipconnect.de [IPv6:2003:ec:2f07:2700:cf:e9c2:8c8f:a671]) (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 C9A2F1EC086F; Mon, 8 Apr 2019 18:58:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1554742723; 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=vVJdVYwihraoKiOZ7ZY6NRrqizU9Yjhs3bSjAJcqQUM=; b=bSJsi9JK1m0wU45OUJ7cc4Tepq6inU19SXYWyYoKQ/3ML/a3EI34HEo8Qz/B2EmMuXo8TU 5ZDHuIVgFKgTOOQ06hg0QpJP4gTumLSF8iBmVb91lv3E135HfQhRlbbpIWy6HfMlFpItDC w/U23GUm7+zVgpDN950jHTX3tqOqJK4= Date: Mon, 8 Apr 2019 18:58:35 +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: <20190408165835.GJ15689@zn.tnic> References: <155440965936.6194.3202659723198724589.stgit@sosrh7.amd.com> <5dfcb133-0a0e-9e07-3774-313e30814e79@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5dfcb133-0a0e-9e07-3774-313e30814e79@amd.com> 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 Mon, Apr 08, 2019 at 04:46:31PM +0000, Gary R Hook wrote: > My reasoning (not arguing): the file has been touched exactly one time > in 4 years, by Thomas. Doesn't appear to be a candidate for constant > modification, so this approach doesn't seem risky to me. I could be wrong. The problem, like we discussed it with Tom offlist, is that you simply cannot turn off instrumentation for those generic files just because SME has trouble with them, and that last thing can be any vendor-specific feature. Even if the functions there are "trivial" now (doesn't mean new stuff won't be added there in the future and we forget about the disabled instrumentation here.) We simply cannot constrain generic compilation units like that. So the functions there either need to be copied or ifdeffed. At the time SME was going in, the intention was to reuse code so that there is less duplication. But if there's trouble doing that sharing, then we need to "unshare" it again. Or come up with something else slick and clean. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.