Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1720807ybt; Thu, 18 Jun 2020 15:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQNTHQXWD1ulyDydc870Opsslx9kbHDX0VUnui3oBpN/Tn1qnwM+m6DOOZNLdCo+U4hX0I X-Received: by 2002:a17:907:20ed:: with SMTP id rh13mr949215ejb.135.1592520668108; Thu, 18 Jun 2020 15:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592520668; cv=none; d=google.com; s=arc-20160816; b=zaQP3pBjTX9VpumT2d3npS5KUQDctC9EOW6hPTeIjKcDFFPxLef74h6ABma/8I2x+Q j+WV3cuakwmiQfnBoDcwNPZWneOG96XSk3XFc4KB1psgykepbYG9MonE4QdQitp3+k+9 VlrVgcnpy7m+GtLu7ImvRruiMDosdPJAHHUJ4N1RPZBaqSyIGnJNWV9OLn6ByjpltQNG HChZ6hmNVK02WwvRJfGU+kGv5JUOKH3oLm7BC2fFtWOAOYQGyERDU3KnWMVXaLmtxM7C baweEs+IzzfgOCEDzMW0hWp/NlUzcxvLG8twRRZHgiEyVnBBQzEeV9boaHxgn0u2NyS2 FwEg== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=z7tzUJcmxZPJQVGPWE/8k6uh061P0+HKZAnoMljoEl4=; b=dUI+8L9RAmC7u3ggGjl8d1vRM5ZSR0DY8DDz7Kf6RFnR5RbX7GsKgatdW/GMgf4oP5 tRKF5raKz9IvtdOsAp4oZAeoIdRhBByMOqKm1NOw9fT2WYIs7vDeMFGyzZhPzr2YLYi8 ifVdI/NwaV1TMpe13wdJuzR2rin3ZKoz14n6g0ayWBYKl96NKqAamS8kvFahRN/ZuAn7 /D5G8JLyTO3zXLM6F+eFlPscKJ6RzbtR4H+YWw2s3uq/tCZOFuxK7163kWYFZLatzezJ 1xM2i4oVbEJK45cSwcb6wVGq4uruks+dbRcVRaKwm/AgHiLgyCYp+ehFKFHtSUC7/Ie8 Ws2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=d76yf0ZZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si2718200edq.264.2020.06.18.15.50.44; Thu, 18 Jun 2020 15:51:08 -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=@alien8.de header.s=dkim header.b=d76yf0ZZ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731569AbgFRWBw (ORCPT + 99 others); Thu, 18 Jun 2020 18:01:52 -0400 Received: from mail.skyhub.de ([5.9.137.197]:40948 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729038AbgFRWBv (ORCPT ); Thu, 18 Jun 2020 18:01:51 -0400 Received: from zn.tnic (p200300ec2f0dcf00e5fab16b0229ac41.dip0.t-ipconnect.de [IPv6:2003:ec:2f0d:cf00:e5fa:b16b:229:ac41]) (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 BF2401EC0351; Fri, 19 Jun 2020 00:01:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1592517709; 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=z7tzUJcmxZPJQVGPWE/8k6uh061P0+HKZAnoMljoEl4=; b=d76yf0ZZ4aZtt8vWdCSWyVz+IWZuZcmCdHkH/OkjESUkKWtYHMGkyO8NXzCjj0V7DbhrVt mJb9ytD7Mw+jztZSKvZgJEPiNGKn98UiZXurmEA5p5KwpwkRcOyIUawVlVmwO/URlK+Q3j aN4wtg4lpEgukvlZUhotPheszn4Mgrk= Date: Fri, 19 Jun 2020 00:01:39 +0200 From: Borislav Petkov To: Daniel Gutson , Dave Hansen Cc: Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Greg Kroah-Hartman , Peter Zijlstra , "David S. Miller" , Rob Herring , Tony Luck , Rahul Tanwar , Xiaoyao Li , Sean Christopherson , Dave Hansen , linux-kernel@vger.kernel.org, Richard Hughes Subject: Re: [PATCH] Ability to read the MKTME status from userspace Message-ID: <20200618220139.GH27951@zn.tnic> References: <20200618210215.23602-1-daniel.gutson@eclypsium.com> <589c89ae-620e-36f8-2be5-4afc727c2911@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 06:26:25PM -0300, Daniel Gutson wrote: > Red Hat and Eclypsium are working on a specification to assess > firmware platform security. One of the inputs that the specification > takes into consideration is whether MKTME is enabled or disabled. > Exposing this value is necessary for tools checking the conformance of > the specification. Would it be enough to grep /proc/cpuinfo whether it has "tme" or not, instead of adding a bunch of code just to read a status value? @Dave: this is where those flags in /proc/cpuinfo come real handy. :-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette