Skip to content

Commit db4c9cc

Browse files
Sasha Levinopsiff
authored andcommitted
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> (cherry picked from commit acf7c8972775a35be318744cc436bdb20b65cebe) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 4eb5608 commit db4c9cc

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
@@ -373,15 +373,9 @@ int __init ima_free_kexec_buffer(void)
373373

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

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

0 commit comments

Comments
 (0)