Skip to content

Commit e2878bf

Browse files
soleengregkh
authored andcommitted
kho: warn if KHO is disabled due to an error
commit 44958f2 upstream. During boot scratch area is allocated based on command line parameters or auto calculated. However, scratch area may fail to allocate, and in that case KHO is disabled. Currently, no warning is printed that KHO is disabled, which makes it confusing for the end user to figure out why KHO is not available. Add the missing warning message. Link: https://lkml.kernel.org/r/20250808201804.772010-4-pasha.tatashin@soleen.com Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com> Acked-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Acked-by: Pratyush Yadav <pratyush@kernel.org> Cc: Alexander Graf <graf@amazon.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Baoquan He <bhe@redhat.com> Cc: Changyuan Lyu <changyuanl@google.com> Cc: Coiby Xu <coxu@redhat.com> Cc: Dave Vasilevsky <dave@vasilevsky.ca> Cc: Eric Biggers <ebiggers@google.com> Cc: Kees Cook <kees@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4039ab9 commit e2878bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/kexec_handover.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ static void __init kho_reserve_scratch(void)
564564
err_free_scratch_desc:
565565
memblock_free(kho_scratch, kho_scratch_cnt * sizeof(*kho_scratch));
566566
err_disable_kho:
567+
pr_warn("Failed to reserve scratch area, disabling kexec handover\n");
567568
kho_enable = false;
568569
}
569570

0 commit comments

Comments
 (0)