Skip to content

Test cmdline measurement and IMA buffer passing through kexec

Lachlan Sneff linux-integrity ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2IMA: Verify that the kernel cmdline is passed and measured correctly through the kexec barrier.testcases/kexec/README.md testcases/kexec/cmdline.sh testcases/kexec/utils.sh+151 -06 replies
2/2IMA: Verify IMA buffer passing through the kexec barriertestcases/kexec/README.md testcases/kexec/ima_buffer.sh+46 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Test cmdline measurement and IMA buffer passing through kexec

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
Signature · 1 line
2.25.1