rtions(+) --- a/arch/loongarch/kernel/relocate.c +++ b/arch/loongarch/kernel/relocate.c @@ -166,6 +166,10 @@ static inline __init bool kaslr_disabled return true; #endif + str = strstr(boot_command_line, "kexec_file"); + if (str == boot_command_line || (str > boot_command_line && *(str - 1) == ' ')) + return true; + return false; } [PATCH 6.17 521/563] LoongArch: Automatically disable kaslr if boot from kexec_fileGreg Kroah-Hartman undefinedstable@vger.kernel.org undefined undefined undefined undefined–$ƒ–&