From: Stefan Berger <stefanb@linux.ibm.com>
To: kexec@lists.infradead.org, devicetree@vger.kernel.org
Cc: nayna@linux.ibm.com, nasastry@in.ibm.com,
Stefan Berger <stefanb@linux.ibm.com>
Subject: [PATCH 0/3] tpm: Preserve TPM measurement log across kexec
Date: Tue, 14 Jun 2022 12:12:55 -0400 [thread overview]
Message-ID: <20220614161258.1741427-1-stefanb@linux.ibm.com> (raw)
The current of-tree driver does not currently preserve the vTPM 1.2 and
vTPM 2.0 measurement log across a kexec. This series fixes this for the
kexec_file_load() syscall using the flattened device tree (fdt) to
carry the measurement log's buffer across kexec.
Stefan
Stefan Berger (3):
of: kexec: Refactor IMA buffer related functions to make them reusable
tpm/kexec: Duplicate TPM measurement log in of-tree for kexec
tpm: of: Call of_tpm_get_sml_parameters() to get base and size of log
drivers/char/tpm/eventlog/of.c | 31 +---
drivers/of/device.c | 24 +++
drivers/of/kexec.c | 284 +++++++++++++++++++++++++++++----
include/linux/kexec.h | 6 +
include/linux/of.h | 5 +
include/linux/of_device.h | 3 +
kernel/kexec_file.c | 6 +
7 files changed, 298 insertions(+), 61 deletions(-)
--
2.35.1
next reply other threads:[~2022-06-14 16:13 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 16:12 Stefan Berger [this message]
2022-06-14 16:12 ` [PATCH 1/3] of: kexec: Refactor IMA buffer related functions to make them reusable Stefan Berger
2022-06-14 16:35 ` Nageswara R Sastry
2022-06-14 16:12 ` [PATCH 2/3] tpm/kexec: Duplicate TPM measurement log in of-tree for kexec Stefan Berger
2022-06-14 16:46 ` Nageswara R Sastry
2022-06-14 17:48 ` Rob Herring
2022-06-15 13:08 ` Stefan Berger
2022-06-15 20:14 ` Rob Herring
2022-06-15 21:45 ` Stefan Berger
2022-06-15 20:18 ` Rob Herring
2022-06-14 18:58 ` kernel test robot
2022-06-15 0:54 ` kernel test robot
2022-06-15 9:42 ` kernel test robot
2022-06-14 16:12 ` [PATCH 3/3] tpm: of: Call of_tpm_get_sml_parameters() to get base and size of log Stefan Berger
2022-06-14 16:47 ` Nageswara R Sastry
2022-06-15 21:25 ` Jarkko Sakkinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220614161258.1741427-1-stefanb@linux.ibm.com \
--to=stefanb@linux.ibm.com \
--cc=devicetree@vger.kernel.org \
--cc=kexec@lists.infradead.org \
--cc=nasastry@in.ibm.com \
--cc=nayna@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).