[PATCH v2] x86/kexec: Push kjump return address even for non-kjump kexec

Dave Hansen dave.hansen at intel.com
Thu May 7 15:08:08 PDT 2026


On 4/28/26 13:59, David Woodhouse wrote:
> +	/*
> +	 * Set return address to 0 if not preserving context. The purgatory
> +	 * shipped in kexec-tools will unconditionally look for the return
> +	 * address on the stack and set a kexec_jump_back_entry= command
> +	 * line option if it's non-zero. There's no other way that it can
> +	 * tell a preserve-context (kjump) kexec from a normal one.
> +	 */
> +	pushq	$0

Thanks for the update. LGTM:

Acked-by: Dave Hansen <dave.hansen at linux.intel.com>



More information about the kexec mailing list