From: Lachlan Sneff <t-josne@linux.microsoft.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 0/2] Test cmdline measurement and IMA buffer passing through kexec
Date: Thu, 2 Jul 2020 11:35:43 -0400 [thread overview]
Message-ID: <20200702153545.3126-1-t-josne@linux.microsoft.com> (raw)
This patchset adds two tests that verify that data is passed correctly
through a kexec. Since the machine reboots several times when running these
tests, they must be run standalone and cannot be run with `runltp`.
The first test verifies that the kernel command line is measured correctly
when using kexec. The second test verifies that the IMA buffer is being
passed through kexec correctly.
Support for passing the IMA buffer through kexec has only been upstreamed
on powerpc so far, with a patchset in the process of being upstreamed for
support on arm64. Therefore, the only architectures that the tests
allow you to run them on (via `uname -m`) are ppc, ppc64, ppcle, ppc64le,
and aarch64.
The tests have been verified on ARM64. Would appreciate if
someone can execute the tests on a PowerPC machine and validate.
Lachlan Sneff (2):
IMA: Verify that the kernel cmdline is passed and measured correctly
through the kexec barrier.
IMA: Verify IMA buffer passing through the kexec barrier
testcases/kexec/README.md | 30 ++++++++++++++
testcases/kexec/cmdline.sh | 78 +++++++++++++++++++++++++++++++++++
testcases/kexec/ima_buffer.sh | 42 +++++++++++++++++++
testcases/kexec/utils.sh | 47 +++++++++++++++++++++
4 files changed, 197 insertions(+)
create mode 100644 testcases/kexec/README.md
create mode 100755 testcases/kexec/cmdline.sh
create mode 100755 testcases/kexec/ima_buffer.sh
create mode 100755 testcases/kexec/utils.sh
--
2.25.1
next reply other threads:[~2020-07-02 15:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 15:35 Lachlan Sneff [this message]
2020-07-02 15:35 ` [LTP] [PATCH 1/2] IMA: Verify that the kernel cmdline is passed and measured correctly through the kexec barrier Lachlan Sneff
2020-07-15 0:58 ` Mimi Zohar
2020-07-15 8:03 ` Petr Vorel
2020-07-15 19:38 ` Lachlan Sneff
2020-07-15 19:40 ` Mimi Zohar
2020-07-15 8:18 ` Petr Vorel
2020-07-15 19:46 ` Lachlan Sneff
2020-07-02 15:35 ` [LTP] [PATCH 2/2] IMA: Verify IMA buffer passing " Lachlan Sneff
2020-07-15 1:41 ` Mimi Zohar
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=20200702153545.3126-1-t-josne@linux.microsoft.com \
--to=t-josne@linux.microsoft.com \
--cc=ltp@lists.linux.it \
/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