forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
arm64: Store IMA log information in kimage used for kexec
Address and size of the buffer containing the IMA measurement log need to be passed from the current kernel to the next kernel on kexec. Add address and size fields to "struct kimage_arch" for ARM64 platform to hold the address and size of the IMA measurement log buffer. Define an architecture specific function for ARM64 namely arch_ima_add_kexec_buffer() that will set the address and size of the current kernel's IMA buffer to be passed to the next kernel on kexec. 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>
- Loading branch information
1 parent
4ea3b8f
commit 35dba82b07df4391b0b88724808a43c9a11395e8
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /* SPDX-License-Identifier: GPL-2.0 */ | ||
| #ifndef _ASM_ARCH_IMA_H | ||
| #define _ASM_ARCH_IMA_H | ||
|
|
||
| struct kimage; | ||
|
|
||
| #ifdef CONFIG_IMA_KEXEC | ||
| int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr, | ||
| size_t size); | ||
| #else | ||
| static inline int arch_ima_add_kexec_buffer(struct kimage *image, | ||
| unsigned long load_addr, size_t size) | ||
| { | ||
| return 0; | ||
| } | ||
| #endif /* CONFIG_IMA_KEXEC */ | ||
| #endif /* _ASM_ARCH_IMA_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters