Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp986175ybb; Wed, 25 Mar 2020 13:22:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtr41KcMhY2mvRMooqL/EdHfJpoV4sfUteZcHobWhKW0IoFAelzBHu7NTbyXmCvOzn9nEwW X-Received: by 2002:aca:d40f:: with SMTP id l15mr3706983oig.90.1585167742845; Wed, 25 Mar 2020 13:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585167742; cv=none; d=google.com; s=arc-20160816; b=UeC0BdXyVnMw+BnEH3KHUhOEN5U/HR1spQnEaeEtotnAoh0k2PljActc1Zs4ljpNVg Lxbth5RDUVAjQL8uUHWzkGkeQiT+kg/X5A8SgxK6u+9GS+HhehvtcOPik4oD6oD3+Mr0 HidfqGRQ9JGkvtoE5yJPZpyS8fNKRBOvAwu+tgiUD8AmJv8kP5qzSEUtVGcV4u9vcaP2 95cZ5/r/EnYOPSAkzcIIBQKFMULbF+XuGxd1SInBAc3wd7JM00jyW+9plJtVFkI79l3m HHCQJan1HftsV+muYof8WncDjDAf0nYWhIAjccuu+Urj2NHI/icIlL3Ngn3EQXIOYzXj QBTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5wcc3fwrS8JnPRZprBTyUdvWc4Xei4mHeogWRJkq6CY=; b=Gsqu+A7OKXgdbhpDJg5jgPjmV4pLqpAMmk5ZwWCHfaT+N/J6WeuxmuuR7zF315PqpL cPHT5HICN+HKmR+5FmDFrVgG0HbMzI9S1+kye07moLxo1ubU0kBw8109H+tWv5rrI3Yh gKQDietdBhObncD+silxmJ5sDgWkmvpvKbSNHPMAwTd4eFxrZp6yl7pNoo3DQ8Klf7zA oTVFpkhJaQnVDPnpAitEXoG9FFZ3Q+v3GNQsZXuceRdQqaFMF+F7t2zW4U57OEaAHw6g NXvumVHzxoBof0xVVBIICJAYVuXckmzIur3PRkNhL/v68VlutHj7K0VSS4qYJs0ROmOS vHeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=I5+h1gu5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u64si42235oig.238.2020.03.25.13.22.09; Wed, 25 Mar 2020 13:22:22 -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=@google.com header.s=20161025 header.b=I5+h1gu5; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727505AbgCYUV3 (ORCPT + 99 others); Wed, 25 Mar 2020 16:21:29 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:41187 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727316AbgCYUV3 (ORCPT ); Wed, 25 Mar 2020 16:21:29 -0400 Received: by mail-io1-f67.google.com with SMTP id y24so3679652ioa.8 for ; Wed, 25 Mar 2020 13:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5wcc3fwrS8JnPRZprBTyUdvWc4Xei4mHeogWRJkq6CY=; b=I5+h1gu5mhDMyLsqRy+xtMr+jh3nd27e83biTBarZMcqTcDeYgBseua5H+62syFNcz nlLeOTcMKcP+UQ2EbWz8mTHCNhnDP8S9ZqOf0YhHJcLvj0NH3V8ewqVrHtdkao934D69 5oA/ci7plPjM92gm5MPNqF6RpkNkffYZ9AzwOQthDYXjhXl6hUT5ydE4H65F+GjyRpwk oZ1W1EFjC8y6ErFvwQHUkdlFoFtHcXD25cothFiX8R+NxsZm+DJf+ZjywXBwd8MlYV1/ T7MR37EFQzOM2GejOS/cBQj/WDlNZ+pHCHsvSuFH44inNY2/K8Aded6YdR1TnkaEH2Y8 3f+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5wcc3fwrS8JnPRZprBTyUdvWc4Xei4mHeogWRJkq6CY=; b=t4vBWU63MzwxzSqu0kZDcLiQutQcBAtVFoc64n9SAqZ9F+0qhHPZ1CGjJURoJQFAkm egYBWNKNG2cUC17XPHX5xiyQXJzR2Ko3S4vpGyIDxYZKHcQAVLO2uQv7Z7+Wfet+bXhF ndDnKBtjM05ttdoyVzBXd08E9G2Tzh9zf75IU/lKs369yr/jm0a/Iu70dNjCQXTicIbQ rwna6F8a1Zu5oIe525mW2U0jkgrneR5IvwjkNDBePVGEksV8X9iiEOVAu75ULz553+eO 1tKKhG0mHQBZq/vjcIayA8KMg/p3F7ve871WEAexYokDJmAoPeb+JcB+1gFORe+/XeMy dL+Q== X-Gm-Message-State: ANhLgQ2JxkxpHOJGAYh7NETwIZWX+PHZfdKlNoixr70cXbPvSA6P9hN5 j5M/D+DBH57a3LCjZNIfCSvqAJGYjP0h9/pAdzw5BQ== X-Received: by 2002:a5e:c803:: with SMTP id y3mr4608774iol.82.1585167686234; Wed, 25 Mar 2020 13:21:26 -0700 (PDT) MIME-Version: 1.0 References: <20200325194317.526492-1-ross.philipson@oracle.com> <20200325194317.526492-11-ross.philipson@oracle.com> In-Reply-To: <20200325194317.526492-11-ross.philipson@oracle.com> From: Matthew Garrett Date: Wed, 25 Mar 2020 13:21:14 -0700 Message-ID: Subject: Re: [RFC PATCH 10/12] x86: Secure Launch adding event log securityfs To: Ross Philipson Cc: Linux Kernel Mailing List , "the arch/x86 maintainers" , linux-doc@vger.kernel.org, dpsmith@apertussolutions.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , trenchboot-devel@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 25, 2020 at 12:43 PM Ross Philipson wrote: > > From: "Daniel P. Smith" > > The late init functionality registers securityfs nodes to allow fetching > of and writing events to the late launch TPM log. Is there a reason we would want this exposed separately from the regular event log, rather than just appending it there? > +static ssize_t sl_evtlog_write(struct file *file, const char __user *buf, > + size_t datalen, loff_t *ppos) > +{ What's expected to be writing to this?