Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1133266lqd; Thu, 25 Apr 2024 07:01:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV5uAz4nK2ZLX/6+syJMKQkK0TBf6TmnefvBVCpgcTd5K1/GeW8nIvOT5qRPEupqUTWyfTlmFNs079uVgp8QbpdTKShT9RMSpMS4RjuMQ== X-Google-Smtp-Source: AGHT+IHs7c4eUzJTCV209ctKIdib73QLada9//tlMCWJZctWynK8eVG10+BDkNGL9Ba9oDKkhSiu X-Received: by 2002:a2e:7e05:0:b0:2d8:2d0a:7b9b with SMTP id z5-20020a2e7e05000000b002d82d0a7b9bmr4855709ljc.14.1714053702037; Thu, 25 Apr 2024 07:01:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714053702; cv=pass; d=google.com; s=arc-20160816; b=pt4HMB8COiizUs03UJPnxwfHaJwG9Zd/ZaU2q6rk1a+WStQ+qYMQPcRJkrYd5Lfh63 +ZzDjj6RixJFZ5lU4C3BXEwJaos/9l1KWm9tjk58tNSBMojxnhAs1h1qpWgd2dafMu30 f2NpYTHKVIbbSMqYPfiM5oIGhucdD0a1so7DKcIce1D09csx7CWiPCBFUS+CoIqBT9dZ 16g8YrAmE8jPWDWJAfEvOTX7GZZQCuhRdLrw3xkNkLwd96EQfi4kxVWRa4tPTYR6Xfha ef24cdBEanKP5opXuemnquIo23NcnQuJM4WMjPH4iWKEHls8IY9umjfQXubfSUVVYT5Z dHZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=gOKjqTrwy/H/hFGh4uedpQPBDplAM1BDzbOPolpCIYg=; fh=J200pLUg4AxVPcB0TzhXpsYI0+YsHh0anyuIiQc0l/M=; b=wNlkt0Y6nwvLTt1MeKT2N2tySXs4wqVKHcpJ/LVmr+CWWa5om5c8lsNAhqkzaHMINj C+4rOvT8r049zYDGTvGM4zKpa3r0SYMags12FbXlzb7wxOt8nhMzeR8nFPRzqfz0/QFF OKHK+RIfMQjYAfpRKr81n2YSLd0dEWLvmkMjq6Kgs+7eAhZgyqPIqJB301Gqm6KOSluD 7g0WSFHWMnz9iFXouG+dJn7PF+Ym3NKbq9i0InE8RXyIfJg2Hm6c3199p5yg5LqM1bv9 Zd/fmTcBJvBAlG/uZSprpQzAvp6e1KXOzyuzLwdWVugIZLUonzz+OtvFvi8RBl/QCi5J Qrdw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EbeyGHjb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id l7-20020a170906644700b00a55b5b4aa59si5235271ejn.249.2024.04.25.07.01.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 07:01:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EbeyGHjb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-158645-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BA8761F220D1 for ; Thu, 25 Apr 2024 14:01:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6363149DF9; Thu, 25 Apr 2024 14:01:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="EbeyGHjb" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E54D8149C6E; Thu, 25 Apr 2024 14:01:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714053695; cv=none; b=lCjuaz2HJK4w0p0RrTTKhXDLHbDN7gakVpRpnHTJPZtlplqgc+7Wz8Axhk9gJ/NJ1/MPPvVE8IZjYN0svzSRk2SI5sQry4GdfFnjnO3p6ULJ1N3s8NDsMiEq39ol1SMIiTni2NInoiEQcMw5TiE4Bsm6Rubrrby3keHkBq5fwAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714053695; c=relaxed/simple; bh=gOKjqTrwy/H/hFGh4uedpQPBDplAM1BDzbOPolpCIYg=; h=Mime-Version:Content-Type:Date:Message-Id:To:Cc:Subject:From: References:In-Reply-To; b=tlUc8Txksa3qvXJBbCng/tgeTnbsSEmpRThuQvQVVi2CuD7CWOJ0iIYMeU583DMIB/Ore7MZeaQzK7lKIpoqfLjqVOLTNROCj9iIdx9PWocW678P215RPSIQyD98wF7VA+VTCxO/p6lMw/Kais960MF0CcHmmYJe1t3++0rmI+A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=EbeyGHjb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2A1FC113CC; Thu, 25 Apr 2024 14:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714053694; bh=gOKjqTrwy/H/hFGh4uedpQPBDplAM1BDzbOPolpCIYg=; h=Date:To:Cc:Subject:From:References:In-Reply-To:From; b=EbeyGHjbiDenFYP6KGmF/qCZqSu6doaojbB9dgrUPfciACqeqsBTPpfSn1RekYtTw CufsNwYj+bScnknse+DnYbet1t3Ziqn8DUQop+Ej5fqex+ag8duuyQjzMwNHrvKX5B 0Ux2whXse8jX/0w0y7hF/S5to5IUyRPihqrhgZWPTHf8o4Oz7cVs6J/938dIIkJamF Zf2ZNbxL3ibXeaFpaTfUETc+KvNDwmriW42SUVPHb164ERFpDsiSTB5azlqleLhvUp vYOyHC+vo5yGzw7KU11M3fJswSBNJ5nDpxTnL+vwYvJkuEyBP5HEa3kArC6GVEEvel xFhnAT+pLkxNQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 25 Apr 2024 17:01:28 +0300 Message-Id: To: "Lennart Poettering" , "Ard Biesheuvel" Cc: "Ilias Apalodimas" , "James Bottomley" , "Mikko Rapeli" , , , Subject: Re: [PATCH] efi: expose TPM event log to userspace via sysfs From: "Jarkko Sakkinen" X-Mailer: aerc 0.17.0 References: <20240422112711.362779-1-mikko.rapeli@linaro.org> <6e751959b9056884c1b9d3ba23e303d1737d8763.camel@HansenPartnership.com> In-Reply-To: On Thu Apr 25, 2024 at 12:58 PM EEST, Lennart Poettering wrote: > General purpose distros typically don't build all TPM drivers into the > kernel, but ship some in the initrd instead. Then, udev is responsible > for iterating all buses/devices and auto-loading the necessary > drivers. Each loaded bus driver might make more devices available for I've had since day 0 that I've worked with TPM driver (i.e. since 2013 or 2014) that module support should be removed. I've kept the module compilation only because huge turnback from the community. It does not make sense: 1. Because it makes sense as part of "TCB". 2. "TCB" is should in be vmlinux. 3. TPM is also a subsystem with other clients in the kernel. At minimum the main TPM driver should IMHO just in vmlinux e.g. because it is rare to see distro kernel with TPM enabled and IMA disabled, I don't know any. That said, I would not mind either if TPM subsystem drivers were only y/n *except* tpm_vtpm_proxy. BR, Jarkko