Skip to content

Commit 412c9b5

Browse files
author
Sasha Levin
committed
Revert "x86/kexec: add a sanity check on previous kernel's ima kexec buffer"
This reverts commit c5489d0. 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>
1 parent c1924e0 commit 412c9b5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

arch/x86/kernel/setup.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,9 @@ int __init ima_free_kexec_buffer(void)
372372

373373
int __init ima_get_kexec_buffer(void **addr, size_t *size)
374374
{
375-
int ret;
376-
377375
if (!ima_kexec_buffer_size)
378376
return -ENOENT;
379377

380-
ret = ima_validate_range(ima_kexec_buffer_phys, ima_kexec_buffer_size);
381-
if (ret)
382-
return ret;
383-
384378
*addr = __va(ima_kexec_buffer_phys);
385379
*size = ima_kexec_buffer_size;
386380

0 commit comments

Comments
 (0)