linux-stable/arch/powerpc/kexec
Lakshmi Ramasubramanian 0c605158be powerpc: Move ima buffer fields to struct kimage
The fields ima_buffer_addr and ima_buffer_size in "struct kimage_arch"
for powerpc are used to carry forward the IMA measurement list across
kexec system call.  These fields are not architecture specific, but are
currently limited to powerpc.

arch_ima_add_kexec_buffer() defined in "arch/powerpc/kexec/ima.c"
sets ima_buffer_addr and ima_buffer_size for the kexec system call.
This function does not have architecture specific code, but is
currently limited to powerpc.

Move ima_buffer_addr and ima_buffer_size to "struct kimage".
Set ima_buffer_addr and ima_buffer_size in ima_add_kexec_buffer()
in security/integrity/ima/ima_kexec.c.

Co-developed-by: Prakhar Srivastava <prsriva@linux.microsoft.com>
Signed-off-by: Prakhar Srivastava <prsriva@linux.microsoft.com>
Signed-off-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Suggested-by: Will Deacon <will@kernel.org>
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20210221174930.27324-9-nramas@linux.microsoft.com
2021-03-08 12:06:29 -07:00
..
core.c powerpc/crashkernel: Take "mem=" option into account 2020-06-02 20:59:05 +10:00
core_32.c
core_64.c powerpc/book3s64/keys/kuap: Reset AMR/IAMR values on kexec 2020-07-20 22:57:59 +10:00
crash.c powerpc/crash: Use NMI context for printk when starting to crash 2020-06-02 20:59:07 +10:00
elf_64.c powerpc: Use common of_kexec_alloc_and_setup_fdt() 2021-03-08 12:06:29 -07:00
file_load.c powerpc: Use common of_kexec_alloc_and_setup_fdt() 2021-03-08 12:06:29 -07:00
file_load_64.c powerpc: Use common of_kexec_alloc_and_setup_fdt() 2021-03-08 12:06:29 -07:00
ima.c powerpc: Move ima buffer fields to struct kimage 2021-03-08 12:06:29 -07:00
Makefile powerpc/kexec_file: Add helper functions for getting memory ranges 2020-07-29 23:47:53 +10:00
ranges.c powerpc/kexec_file: Avoid stomping memory used by special regions 2020-07-29 23:47:53 +10:00
relocate_32.S