ima: do not copy measurement list to kdump kernel
authorSteven Chen <chenste@linux.microsoft.com>
Tue, 13 May 2025 14:31:29 +0000 (07:31 -0700)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 14 May 2025 10:40:09 +0000 (06:40 -0400)
commitfe3aebf27dc1875b2a0d13431e2e8cf3cf350cca
treee0740e9efa463c75dad4dab4c554bd4571ae2deb
parent591683d3944c07236c80cca2a0702ba9250ee1fa
ima: do not copy measurement list to kdump kernel

Kdump kernel doesn't need IMA to do integrity measurement.
Hence the measurement list in 1st kernel doesn't need to be copied to
kdump kernel.

Here skip allocating buffer for measurement list copying if loading
kdump kernel. Then there won't be the later handling related to
ima_kexec_buffer.

Signed-off-by: Steven Chen <chenste@linux.microsoft.com>
Tested-by: Baoquan He <bhe@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_kexec.c