All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksii Kurochko <oleksii.kurochko@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Oleksii Kurochko <oleksii.kurochko@gmail.com>,
	Stefano Stabellini <sstabellini@kernel.org>,
	Julien Grall <julien@xen.org>,
	Bertrand Marquis <bertrand.marquis@arm.com>,
	Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
Subject: [PATCH v1] xen/arm: align *(.proc.info) in the linker script
Date: Wed,  1 Mar 2023 18:14:07 +0200	[thread overview]
Message-ID: <74973920d8722df3ce533979314564f331acf16e.1677687247.git.oleksii.kurochko@gmail.com> (raw)

During testing of bug.h's macros generic implementation yocto-qemuarm
job crashed with data abort:

(XEN) Data Abort Trap. Syndrome=0x1830021
(XEN) Walking Hypervisor VA 0x2a5ca6 on CPU0 via TTBR 0x000000004014a000
(XEN) 1ST[0x000] = 0x0000000040149f7f
(XEN) 2ND[0x001] = 0x0040000040148f7f
(XEN) 3RD[0x0a5] = 0x00400000400b5fff
(XEN) CPU0: Unexpected Trap: Data Abort
(XEN) ----[ Xen-4.18-unstable  arm32  debug=y  Not tainted ]----
(XEN) CPU:    0
(XEN) PC:     0020063c head.o#__lookup_processor_type+0x1c/0x44
(XEN) CPSR:   600001da MODE:Hypervisor
(XEN)      R0: 412fc0f1 R1: 002a5ca2 R2: 002a5cd2 R3: 600001da
(XEN)      R4: 002a7e9c R5: 00000011 R6: 00000000 R7: ffffffff
(XEN)      R8: 48008f20 R9: 00000000 R10:00000000 R11:002ffecc R12:00000000
(XEN) HYP: SP: 002ffeb8 LR: 00200618
(XEN)
(XEN)   VTCR_EL2: 00000000
(XEN)  VTTBR_EL2: 0000000000000000
(XEN)
(XEN)  SCTLR_EL2: 30cd187f
(XEN)    HCR_EL2: 00000038
(XEN)  TTBR0_EL2: 000000004014a000
(XEN)
(XEN)    ESR_EL2: 97830021
(XEN)  HPFAR_EL2: 00000000
(XEN)      HDFAR: 002a5ca6
(XEN)      HIFAR: 00000000
(XEN)
(XEN) Xen stack trace from sp=002ffeb8:
(XEN)    97830021 002a7e9c 00000000 00276a88 002fff54 002c8fc4 11112131 10011142
(XEN)    00000000 002a5500 00000000 00000000 00008f20 00002000 48000000 002e01f0
(XEN)    00000000 60000000 00000000 40000000 00000001 002e0208 002a7e8c 002a7e88
(XEN)    002b0ab4 002e31f0 00000000 60000000 00000003 ffffffff 00000000 002aa000
(XEN)    00200060 00000000 00000000 48000000 40010000 3fe10000 00000000 00200068
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
(XEN)    00000000 00000000
(XEN) Xen call trace:
(XEN)    [<0020063c>] head.o#__lookup_processor_type+0x1c/0x44 (PC)
(XEN)    [<00200618>] lookup_processor_type+0xc/0x14 (LR)
(XEN)    [<002c8fc4>] start_xen+0xb8c/0x1138
(XEN)    [<00200068>] head.o#primary_switched+0x8/0x1c
(XEN)
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) CPU0: Unexpected Trap: Data Abort
(XEN) ****************************************
(XEN)
(XEN) Reboot in five seconds...
(XEN) Xen: Platform reset did not work properly!
(XEN) Xen: Platform reset did not work properly!

Signed-off-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
---
 xen/arch/arm/xen.lds.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
index 3f7ebd19f3..1b392345bc 100644
--- a/xen/arch/arm/xen.lds.S
+++ b/xen/arch/arm/xen.lds.S
@@ -67,6 +67,7 @@ SECTIONS
        *(.data.rel.ro)
        *(.data.rel.ro.*)
 
+       . = ALIGN(4);
        __proc_info_start = .;
        *(.proc.info)
        __proc_info_end = .;
-- 
2.39.0



             reply	other threads:[~2023-03-01 16:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 16:14 Oleksii Kurochko [this message]
2023-03-01 16:21 ` [PATCH v1] xen/arm: align *(.proc.info) in the linker script Julien Grall
2023-03-01 16:38   ` Oleksii
2023-03-01 17:50     ` Julien Grall
2023-03-01 20:38       ` Julien Grall
2023-03-02  7:34         ` Oleksii
2023-03-02 14:50           ` Julien Grall
2023-03-02 17:24             ` Oleksii
2023-03-02  9:45         ` Jan Beulich
2023-03-02 11:01           ` Julien Grall
2023-03-02 11:21             ` Jan Beulich
2023-03-02 12:51               ` Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74973920d8722df3ce533979314564f331acf16e.1677687247.git.oleksii.kurochko@gmail.com \
    --to=oleksii.kurochko@gmail.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=bertrand.marquis@arm.com \
    --cc=julien@xen.org \
    --cc=sstabellini@kernel.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.