diff options
| author | Sasha Levin <sashal@kernel.org> | 2026-03-05 09:48:33 -0500 |
|---|---|---|
| committer | Sasha Levin <sashal@kernel.org> | 2026-03-05 09:56:36 -0500 |
| commit | acf7c8972775a35be318744cc436bdb20b65cebe (patch) | |
| tree | 542e58865b8a647c6987d5185f1c96846d8f706d | |
| parent | 682d8e2f892b73c2f574684c8dd6b625361b4c03 (diff) | |
Revert "x86/kexec: add a sanity check on previous kernel's ima kexec buffer"
This reverts commit c5489d04337b47e93c0623e8145fcba3f5739efd.
The commit introduces a call to ima_validate_range() in
arch/x86/kernel/setup.c, but the function declaration is not available
in the 6.12 stable tree, resulting in build failures due to implicit
function declaration errors across multiple stable branches.
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | arch/x86/kernel/setup.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index df74f865c9f1..eb129277dcdd 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c @@ -372,15 +372,9 @@ int __init ima_free_kexec_buffer(void) int __init ima_get_kexec_buffer(void **addr, size_t *size) { - int ret; - if (!ima_kexec_buffer_size) return -ENOENT; - ret = ima_validate_range(ima_kexec_buffer_phys, ima_kexec_buffer_size); - if (ret) - return ret; - *addr = __va(ima_kexec_buffer_phys); *size = ima_kexec_buffer_size; |
