aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorSteven Chen <[email protected]>2025-04-21 22:25:12 +0000
committerMimi Zohar <[email protected]>2025-04-29 19:54:54 +0000
commit9f0ec4b16f2b41d663f688a8012e9e52b2657eba (patch)
tree8ce381ba34327ad60129ed8d738466217340d9fd /drivers/gpu/drm/amd/amdgpu/atom.c
parentima: kexec: define functions to copy IMA log at soft boot (diff)
downloadkernel-9f0ec4b16f2b41d663f688a8012e9e52b2657eba.tar.gz
kernel-9f0ec4b16f2b41d663f688a8012e9e52b2657eba.zip
ima: kexec: move IMA log copy from kexec load to execute
The IMA log is currently copied to the new kernel during kexec 'load' using ima_dump_measurement_list(). However, the IMA measurement list copied at kexec 'load' may result in loss of IMA measurements records that only occurred after the kexec 'load'. Move the IMA measurement list log copy from kexec 'load' to 'execute' Make the kexec_segment_size variable a local static variable within the file, so it can be accessed during both kexec 'load' and 'execute'. Define kexec_post_load() as a wrapper for calling ima_kexec_post_load() and machine_kexec_post_load(). Replace the existing direct call to machine_kexec_post_load() with kexec_post_load(). When there is insufficient memory to copy all the measurement logs, copy as much of the measurement list as possible. 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]> 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