[PATCH] makedumpfile/arm: fix page_offset determination
HAGIO KAZUHITO(萩尾 一仁)
k-hagio-ab at nec.com
Tue Jul 6 22:52:25 PDT 2021
-----Original Message-----
> When the CONFIG_STRICT_KERNEL_RWX is enabled for the armv7 kernel the
> _stext is aligned to 1<<SECTION_SHIFT, which with hitherto code causes
> wrong page_offset determination.
>
> Suit mask used for page_offset in a way that it will allow to correctly
> determine page_offset regardless of CONFIG_STRICT_KERNEL_RWX and
> CONFIG_ARM_LPAE settings.
>
> Signed-off-by: Grzegorz Jaszczyk <grzegorz.jaszczyk at linaro.org>
Thanks, applied.
https://github.com/makedumpfile/makedumpfile/commit/9df519d2f4d6d6362fd878a1e0f0890e73166055
Kazu
> ---
> arch/arm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm.c b/arch/arm.c
> index 33536fc..7ae9cb1 100644
> --- a/arch/arm.c
> +++ b/arch/arm.c
> @@ -80,7 +80,7 @@ get_phys_base_arm(void)
> int
> get_machdep_info_arm(void)
> {
> - info->page_offset = SYMBOL(_stext) & 0xffff0000UL;
> + info->page_offset = SYMBOL(_stext) & 0xffc00000UL;
>
> /* Check if we can get MAX_PHYSMEM_BITS from vmcoreinfo */
> if (NUMBER(MAX_PHYSMEM_BITS) != NOT_FOUND_NUMBER)
> --
> 2.29.0
More information about the kexec
mailing list