From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c06::229; helo=mail-io0-x229.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2CE6120356878 for ; Sat, 11 Nov 2017 03:51:31 -0800 (PST) Received: by mail-io0-x229.google.com with SMTP id e89so16145667ioi.11 for ; Sat, 11 Nov 2017 03:55:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ujKlmuXw4iN2bcCN1wczthu2+Yx80eOVdJwLa7xT95I=; b=ZhvKg/kV6FyucsaKPb4NV1yuEQ9PbfDdO7kwjlgm6bhZziC3/yeadQAb9u9P011sOH qQ8z1NnZdaX9WiEc3FD/211/RWzqtqQslZk7MzqXC/xTuYJnKL5jrjZixpTEQXCllRJk XjJMr5CaqCXo/jHNBUb0p9wgH6/0ojGZSjf+Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ujKlmuXw4iN2bcCN1wczthu2+Yx80eOVdJwLa7xT95I=; b=Zc1Y//HZPb5Ltzuje3ALjjt+uNnhmURCfQn5aKa9Sc8XNGh1ZXa2l/gbK+vO6cfqCm 5ApX39jRrxDkBS7L1E6PGvprFg/KSom03hey6ffodGNGGZKtDmjrkJb5vUQ8f6dSiORK 3gawVYPvFFfxAXemQjIdr9UnQKDLIjf4yTf1KrWUoK2VwzqaanbC5+5kqp6F4o7QZpxG BVLVtZ9KbH3DfcBqIUAEXg26j5v/xE0KAWo8VpITvNWHgyOf2CKQ5Ncboo7DMNvXCPuW y2XrypELk8YRTZIEh6s9D2VWqYnkQAK87DGkeCFOtRweESGf2a9tNa35cEZZPCP0SEZt lXrQ== X-Gm-Message-State: AJaThX5Lfp6VW/Ya4qI0hZy5T0QsjTaHy9GSHbd45Su9padn20tkXRZF o5l7N59fyFFd0xR+1qQ5AZZI1n/SyjlcrUKcJFWk+Q== X-Google-Smtp-Source: AGs4zMa3Ye19HMXxTd206+bHzppWvHviNFxWcYdaA/c5J4oeXyDVPbJw90Yxf4pkw1grbB4GpKoEkRrZCf55U8+lRlg= X-Received: by 10.107.151.19 with SMTP id z19mr3861425iod.248.1510401335026; Sat, 11 Nov 2017 03:55:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.104.20 with HTTP; Sat, 11 Nov 2017 03:55:34 -0800 (PST) In-Reply-To: <5A06E371.2080108@huawei.com> References: <5A06E371.2080108@huawei.com> From: Ard Biesheuvel Date: Sat, 11 Nov 2017 11:55:34 +0000 Message-ID: To: Shannon Zhao Cc: "edk2-devel@lists.01.org" , Laszlo Ersek Subject: Re: edk2 occur Data abort: Alignment fault on ARM64 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2017 11:51:32 -0000 Content-Type: text/plain; charset="UTF-8" On 11 November 2017 at 11:48, Shannon Zhao 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 >