* [PATCH] makedumpfile/arm: fix page_offset determination
@ 2021-07-05 12:33 Grzegorz Jaszczyk
2021-07-07 5:52 ` HAGIO KAZUHITO(萩尾 一仁)
0 siblings, 1 reply; 2+ messages in thread
From: Grzegorz Jaszczyk @ 2021-07-05 12:33 UTC (permalink / raw)
To: k-hagio-ab; +Cc: kexec, Grzegorz Jaszczyk
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@linaro.org>
---
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
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] makedumpfile/arm: fix page_offset determination
2021-07-05 12:33 [PATCH] makedumpfile/arm: fix page_offset determination Grzegorz Jaszczyk
@ 2021-07-07 5:52 ` HAGIO KAZUHITO(萩尾 一仁)
0 siblings, 0 replies; 2+ messages in thread
From: HAGIO KAZUHITO(萩尾 一仁) @ 2021-07-07 5:52 UTC (permalink / raw)
To: Grzegorz Jaszczyk; +Cc: kexec
-----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@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
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-07 5:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-05 12:33 [PATCH] makedumpfile/arm: fix page_offset determination Grzegorz Jaszczyk
2021-07-07 5:52 ` HAGIO KAZUHITO(萩尾 一仁)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.