public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Shannon Zhao <zhaoshenglong@huawei.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	Laszlo Ersek <lersek@redhat.com>
Subject: Re: edk2 occur Data abort: Alignment fault on ARM64
Date: Sat, 11 Nov 2017 11:55:34 +0000	[thread overview]
Message-ID: <CAKv+Gu-cpLzL+7tkk-cTJjy6MjyCLxFyTBRqxLN5zuYc2TOR7w@mail.gmail.com> (raw)
In-Reply-To: <5A06E371.2080108@huawei.com>

On 11 November 2017 at 11:48, Shannon Zhao <zhaoshenglong@huawei.com> wrote:
> Hi,
>
> I'm using UDK2017(commit is eea98ee UefiCpuPkg/MpLib: fix potential
> overflow issue.) to start a VM on ARM64. But I got below exception
> sometimes. While I debug this issue, I didn't find some valuable
> information. Do you have any suggestion? Thanks.
>

Could you try this please?

diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc
index c92a69281ae4..6b38c9b21f80 100644
--- a/ArmVirtPkg/ArmVirt.dsc.inc
+++ b/ArmVirtPkg/ArmVirt.dsc.inc
@@ -228,6 +228,7 @@
   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf

 [LibraryClasses.common.DXE_RUNTIME_DRIVER]
+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
   MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
   CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf




> Synchronous Exception at 0x0000000238A7A018
> PC 0x000238A7A018 (0x000238A60000+0x0001A018) [ 0] VariableRuntimeDxe.dll
> PC 0x000238A79DE8 (0x000238A60000+0x00019DE8) [ 0] VariableRuntimeDxe.dll
> PC 0x000238A73418 (0x000238A60000+0x00013418) [ 0] VariableRuntimeDxe.dll
> PC 0x000238A76048 (0x000238A60000+0x00016048) [ 0] VariableRuntimeDxe.dll
> PC 0x000238A7748C (0x000238A60000+0x0001748C) [ 0] VariableRuntimeDxe.dll
> PC 0x0002387A179C (0x000238790000+0x0001179C) [ 1]
> MonotonicCounterRuntimeDxe.dll
> PC 0x0002387A0794 (0x000238790000+0x00010794) [ 1]
> MonotonicCounterRuntimeDxe.dll
> PC 0x0002387A0948 (0x000238790000+0x00010948) [ 1]
> MonotonicCounterRuntimeDxe.dll
> PC 0x0002387A0574 (0x000238790000+0x00010574) [ 1]
> MonotonicCounterRuntimeDxe.dll
> PC 0x0002387A0174 (0x000238790000+0x00010174) [ 1]
> MonotonicCounterRuntimeDxe.dll
> PC 0x00023EEA9E38 (0x00023EEA3000+0x00006E38) [ 2] DxeCore.dll
> PC 0x00023EEC3CD4 (0x00023EEA3000+0x00020CD4) [ 2] DxeCore.dll
> PC 0x00023EEA55D0 (0x00023EEA3000+0x000025D0) [ 2] DxeCore.dll
> PC 0x00023EEA4814 (0x00023EEA3000+0x00001814) [ 2] DxeCore.dll
> PC 0x00023EEA4024 (0x00023EEA3000+0x00001024) [ 2] DxeCore.dll
>
> [ 0]
> /root/rpmbuild/BUILD/edk2-2.7.0/Build/ArmVirtQemu-AARCH64/DEBUG_GCC49/AARCH64/MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe/DEBUG/VariableRuntimeDxe.dll
> [ 1]
> /root/rpmbuild/BUILD/edk2-2.7.0/Build/ArmVirtQemu-AARCH64/DEBUG_GCC49/AARCH64/MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe/DEBUG/MonotonicCounterRuntimeDxe.dll
> [ 2]
> /root/rpmbuild/BUILD/edk2-2.7.0/Build/ArmVirtQemu-AARCH64/DEBUG_GCC49/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
>
>   X0 0x00000002389C0060   X1 0x0000000004000048   X2 0x000000000000001C
>   X3 0x00000002349C0018
>   X4 0x0000000004000064   X5 0x00000002389C007C   X6 0x439A947BAAF32C78
>   X7 0x9277C34E142E80A1
>   X8 0x000000000675D19C   X9 0x000000000000001B  X10 0x0000000238B60000
>  X11 0x0000000000000040
>  X12 0x0000000000000000  X13 0x0000000000000008  X14 0x0000000000000000
>  X15 0x0000000000000000
>  X16 0x000000023EEA2DF0  X17 0x0000000000000000  X18 0x0000000000000000
>  X19 0x000000000000000C
>  X20 0x0000000000002000  X21 0x0000000000000000  X22 0x0000000000000000
>  X23 0x0000000000000000
>  X24 0x0000000000000000  X25 0x0000000000000000  X26 0x0000000000000000
>  X27 0x0000000000000000
>  X28 0x0000000000000000   FP 0x000000023EEA29F0   LR 0x0000000238A79DE8
>
>   V0 0xFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF   V1 0x0000000000000000
> 0000000000000000
>   V2 0x0000000000000000 0000000000000000   V3 0x0000000000000000
> 0000000000000000
>   V4 0x0000000000000000 0000000000000000   V5 0x0000000000000000
> 0000000000000000
>   V6 0x0000000000000000 0000000000000000   V7 0x0000000000000000
> 0000000000000000
>   V8 0x0000000000000000 0000000000000000   V9 0x0000000000000000
> 0000000000000000
>  V10 0x0000000000000000 0000000000000000  V11 0x0000000000000000
> 0000000000000000
>  V12 0x0000000000000000 0000000000000000  V13 0x0000000000000000
> 0000000000000000
>  V14 0x0000000000000000 0000000000000000  V15 0x0000000000000000
> 0000000000000000
>  V16 0x0000000000000000 0000000000000000  V17 0x0000000000000000
> 0000000000000000
>  V18 0x0000000000000000 0000000000000000  V19 0x0000000000000000
> 0000000000000000
>  V20 0x0000000000000000 0000000000000000  V21 0x0000000000000000
> 0000000000000000
>  V22 0x0000000000000000 0000000000000000  V23 0x0000000000000000
> 0000000000000000
>  V24 0x0000000000000000 0000000000000000  V25 0x0000000000000000
> 0000000000000000
>  V26 0x0000000000000000 0000000000000000  V27 0x0000000000000000
> 0000000000000000
>  V28 0x0000000000000000 0000000000000000  V29 0x0000000000000000
> 0000000000000000
>  V30 0x0000000000000000 0000000000000000  V31 0x0000000000000000
> 0000000000000000
>
>   SP 0x000000023EEA29F0  ELR 0x0000000238A7A018  SPSR 0x80000205  FPSR
> 0x00000000
>  ESR 0x96000021          FAR 0x0000000004000054
>
>  ESR : EC 0x25  IL 0x1  ISS 0x00000021
>
> Data abort: Alignment fault
>
> Stack dump:
>   000023EEA28F0: 000000023EEA2920 0000000238B2095C 000000023EEA2920
> 0000000004000000
>   000023EEA2910: 007000700403FBB0 0080008004000000 000000023EEA2940
> 0000000238B21014
>   000023EEA2930: 00FF00FF0403FBAC 0000000004000000 000000023EEA2980
> 0000000238B222B4
>   000023EEA2950: 000000023EEA2980 003E55AA38B22284 000000000403FBAC
> 000000023BFFF598
>   000023EEA2970: 008000803EEA2BAF 0000000000000000 000000023EEA2A10
> 0000000238B23C8C
>   000023EEA2990: 0000000000000000 000000023EEA2BAF 000000023EEA2AB8
> 000000000003FBAE
>   000023EEA29B0: 0000000000000000 000000023BFFF598 003E55AA00000000
> 0000000004000000
>   000023EEA29D0: 003E000000FF0000 000000000403FBAC 0000000000000000
> 0000000000040000
>> 000023EEA29F0: 000000023EEA2A20 0000000238A73418 0000000000000000
> 000000000000001C
>   000023EEA2A10: 0000000004000048 00000002389C0060 000000023EEA2B10
> 0000000238A76048
>   000023EEA2A30: 000000000000000C 0000000000002000 0000000000000048
> 000000023BEF0018
>   000023EEA2A50: 000000023EEA2B80 000000023BFFF598 000000023BFFE5D8
> 0000000004000048
>   000023EEA2A70: 0000000000000000 000000023EEA2BAF 000000000403FBAE
> 000000023BFFF658
>   000023EEA2A90: 0000000000000001 000000023BFFE598 000000023EEA2AC0
> 0000000004000048
>   000023EEA2AB0: 0000000000000000 000000000403FBAC 0000000000000000
> 0000000000000000
>   000023EEA2AD0: 0000000000000000 00000002387A4006 000000023EEA2B10
> 000000023BEF0018
> ASSERT [ArmCpuDxe]
> /root/rpmbuild/BUILD/edk2-2.7.0/ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(271):
> ((BOOLEAN)(0==1))
>
> --
> Shannon
>


  reply	other threads:[~2017-11-11 11:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-11 11:48 edk2 occur Data abort: Alignment fault on ARM64 Shannon Zhao
2017-11-11 11:55 ` Ard Biesheuvel [this message]
2017-11-11 14:14   ` Shannon Zhao
2017-11-14  3:00     ` Shannon Zhao

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-list 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=CAKv+Gu-cpLzL+7tkk-cTJjy6MjyCLxFyTBRqxLN5zuYc2TOR7w@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox