aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/atom.c
diff options
context:
space:
mode:
authorSteven Chen <[email protected]>2025-04-21 22:25:08 +0000
committerMimi Zohar <[email protected]>2025-04-29 19:54:53 +0000
commitc95e1acb6d7f00efab73e41b31e0560751e3f469 (patch)
treed7959774036f09e94f1bae218deeadf31ecdf1d0 /drivers/gpu/drm/amd/amdgpu/atom.c
parentima: rename variable the seq_file "file" to "ima_kexec_file" (diff)
downloadkernel-c95e1acb6d7f00efab73e41b31e0560751e3f469.tar.gz
kernel-c95e1acb6d7f00efab73e41b31e0560751e3f469.zip
ima: define and call ima_alloc_kexec_file_buf()
In the current implementation, the ima_dump_measurement_list() API is called during the kexec "load" phase, where a buffer is allocated and the measurement records are copied. Due to this, new events added after kexec load but before kexec execute are not carried over to the new kernel during kexec operation Carrying the IMA measurement list across kexec requires allocating a buffer and copying the measurement records. Separate allocating the buffer and copying the measurement records into separate functions in order to allocate the buffer at kexec 'load' and copy the measurements at kexec 'execute'. After moving the vfree() here at this stage in the patch set, the IMA measurement list fails to verify when doing two consecutive "kexec -s -l" with/without a "kexec -s -u" in between. Only after "ima: kexec: move IMA log copy from kexec load to execute" the IMA measurement list verifies properly with the vfree() here. Co-developed-by: Tushar Sugandhi <[email protected]> Signed-off-by: Tushar Sugandhi <[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