Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp108013ybt; Thu, 25 Jun 2020 16:38:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKAjCsUqz4JRgF0Vhsip9Pyfw42LeCdqsiJBdbvaqAESaEcHFewpX1sWFUkYXQoZ3D3667 X-Received: by 2002:a05:6402:b1a:: with SMTP id bm26mr671279edb.144.1593128280491; Thu, 25 Jun 2020 16:38:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593128280; cv=none; d=google.com; s=arc-20160816; b=oeyOp5S940wnmWuG1P80J3HgUWFFwT/nVnLzblaYBob/4bwvS4+hsYgl/ArDMdCR3X CpddZfk9E10xlztQTabnjCUwbkgts++VrAotlpC3NGBbkItc408OmQ5LVjl5gmh38my1 8r8Z0S7QlKgM7hJ4Hevo+qbBzB4FQXtVREDLTbkGIPoDU8ejXhu9ePtOPkY4iEg9p5Ab XkXRFXF24CujEfwxtbo0/313KnHiQp1kTTUt1ODdxH0jo6sx6F9Sl3V60+UwpEwLeGBu gVlYx+FjcTh31D7w6uxvGAyR7RiDOfCiTnaLRSmTbOfuYm6+M9RrHS1trG3BIGKWp7Xf 1UBA== 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=dXxVfxv7f3F5/PiC22toYmhLfZrwalx+qVjBPwz2Dvg=; b=fJFuaPMoHA4ehetdPVsHILM8rnsU6edV5Ze4WVlLqA8NB5BR54tWB+VnCE7gegVzRv MFv0ZbAdaoae0NXBaYeTxhmMNanAdlu8ocdTiT/8AREjXTkChmgZC4UvgPg9roW8Xdq8 PyjBEzpqjf98PjOCTreVVgk7ty2w5PWrvZwj3+dBOi3fKs/fNY3xk5CDu9reGA7K+b/K 8ts0L9J/AK5ZjhTen8y8uaQafg66aqetc9pZDp1B3ADJ10eVpyhB0cgfsOssrmTFG7hS Pn95u/p/OAm5NODWayoqqdx3Usx2Xph01j3qWiHKC9SvL17ON5KHYF7Jol7O7inOQ/hN YQDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=ODWrabi6; 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 g26si1501030edq.238.2020.06.25.16.37.37; Thu, 25 Jun 2020 16:38:00 -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=ODWrabi6; 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 S2405756AbgFYVO4 (ORCPT + 99 others); Thu, 25 Jun 2020 17:14:56 -0400 Received: from mail.skyhub.de ([5.9.137.197]:55152 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404016AbgFYVOz (ORCPT ); Thu, 25 Jun 2020 17:14:55 -0400 Received: from zn.tnic (p200300ec2f0ed100d8d4e97d1105ac1f.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:d100:d8d4:e97d:1105:ac1f]) (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 7C86A1EC03D6; Thu, 25 Jun 2020 23:14:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1593119694; 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=dXxVfxv7f3F5/PiC22toYmhLfZrwalx+qVjBPwz2Dvg=; b=ODWrabi6owFfOhAtTV4fO/MRr6wwEEONMqy6WkwxfUD0IGwFQpDbsj4LFwsBj4qFB5GUUb rtzBZJFKXeP+U/jpuDwqDc58bzMJZVYDcr9A2vUXXdAKtf6lPKHtPWt+k0AGtH8YzNJNeI mqNvdOyuK2t/JrDgJx5NrWOMkSIfqEA= Date: Thu, 25 Jun 2020 23:14:53 +0200 From: Borislav Petkov To: Daniel Gutson Cc: "Kirill A. Shutemov" , 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 Subject: Re: [PATCH] Ability to read the MKTME status from userspace (patch v2) Message-ID: <20200625211453.GS20319@zn.tnic> References: <20200625211029.34733-1-daniel.gutson@eclypsium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200625211029.34733-1-daniel.gutson@eclypsium.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 06:10:29PM -0300, Daniel Gutson wrote: > The intent of this patch is to provide visibility of the > MKTME status to userspace. This is an important factor for > firmware security related applilcations. > > Changes since v1: > * Documentation/ABI/stable/securityfs-mktme-status (new file) > * include/uapi/misc/mktme_status.h (new file) > * Fixed MAINTAINER title. > * cpu.h: added values to the enumerands > * Renamed the function from get_mktme_status to mktme_get_status > * Improved Kconfig help > * Removed unnecessary license-related lines since there is a SPDX line > * Moved pr_fmt macro before the includes > * Turned global variables (mktme_dir, mktme_file) as static > * Removed BUFFER_SIZE macro > * No longer returning -1 for error, but using the previously error. > * No more pr_info for the normal behavior. > * Renamed this from a kernel driver to a kernel module. No, we don't want a module driver which, as Dave explained, tells you exactly nothing whether encryption is actually enabled on the system. Didn't that become clear from the thread last time? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette