diff options
| author | Steven Chen <[email protected]> | 2025-04-21 22:25:11 +0000 |
|---|---|---|
| committer | Mimi Zohar <[email protected]> | 2025-04-29 19:54:54 +0000 |
| commit | f18e502db673c75f762d47101dafcf58f30e2733 (patch) | |
| tree | 7b3a8dad90aec95c0858aefef6333f65313ed36d /drivers/gpu/drm/amd/amdgpu/atom.c | |
| parent | ima: kexec: skip IMA segment validation after kexec soft reboot (diff) | |
| download | kernel-f18e502db673c75f762d47101dafcf58f30e2733.tar.gz kernel-f18e502db673c75f762d47101dafcf58f30e2733.zip | |
ima: kexec: define functions to copy IMA log at soft boot
The IMA log is currently copied to the new kernel during kexec 'load'
using ima_dump_measurement_list(). However, the log copied at kexec
'load' may result in loss of IMA measurements that only occurred after
kexec "load'. Setup the needed infrastructure to move the IMA log copy
from kexec 'load' to 'execute'.
Define a new IMA hook ima_update_kexec_buffer() as a stub function.
It will be used to call ima_dump_measurement_list() during kexec 'execute'.
Implement ima_kexec_post_load() function to be invoked after the new
Kernel image has been loaded for kexec. ima_kexec_post_load() maps the
IMA buffer to a segment in the newly loaded Kernel. It also registers
the reboot notifier_block to trigger ima_update_kexec_buffer() at
kexec 'execute'.
Set the priority of register_reboot_notifier to INT_MIN to ensure that the
IMA log copy operation will happen at the end of the operation chain, so
that all the IMA measurement records extended into the TPM are copied
Co-developed-by: Tushar Sugandhi <[email protected]>
Signed-off-by: Tushar Sugandhi <[email protected]>
Cc: Eric Biederman <[email protected]>
Cc: Baoquan He <[email protected]>
Cc: Vivek Goyal <[email protected]>
Cc: Dave Young <[email protected]>
Signed-off-by: Steven Chen <[email protected]>
Reviewed-by: Stefan Berger <[email protected]>
Acked-by: Baoquan He <[email protected]>
Tested-by: Stefan Berger <[email protected]> # ppc64/kvm
Signed-off-by: Mimi Zohar <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/atom.c')
0 files changed, 0 insertions, 0 deletions
