[edk2-devel] SbsaQemu: "acpiview -s pptt" crashes after printing "Flags : 0x5F"

Chris Jones christopher.jones at arm.com
Tue Dec 14 12:45:19 UTC 2021


Hi Rebecca,

Thank you for reporting this. After further investigation I believe the issue is in the PPTT parser when it tries to report an error with the cache flags it performs an incorrect dereference of the FlagName parameter. I have filed this in bugzilla (https://bugzilla.tianocore.org/show_bug.cgi?id=3770) and sent a patch to fix this to the mailing list (https://edk2.groups.io/g/devel/message/84801), let me know if this solves the problem that you were having.


Thanks,
Chris


________________________________
From: devel at edk2.groups.io <devel at edk2.groups.io> on behalf of Sami Mujawar via groups.io <sami.mujawar=arm.com at groups.io>
Sent: Tuesday, December 14, 2021 9:14 AM
To: devel at edk2.groups.io <devel at edk2.groups.io>; rebecca at nuviainc.com <rebecca at nuviainc.com>; Ard Biesheuvel <ardb+tianocore at kernel.org>; Leif Lindholm <leif at nuviainc.com>; Graeme Gregory <graeme at nuviainc.com>; Radoslaw Biernacki <rad at semihalf.com>; Pierre Gondois <Pierre.Gondois at arm.com>; nd <nd at arm.com>
Subject: Re: [edk2-devel] SbsaQemu: "acpiview -s pptt" crashes after printing "Flags : 0x5F"


Hi Rebecca,



Thank you for reporting this issue.

We will try to recreate the problem and provide a fix.



Regards,



Sami Mujawar



From: devel at edk2.groups.io <devel at edk2.groups.io> on behalf of Rebecca Cran via groups.io <rebecca=nuviainc.com at groups.io>
Date: Tuesday, 14 December 2021 at 01:53
To: edk2-devel-groups-io <devel at edk2.groups.io>, Ard Biesheuvel <ardb+tianocore at kernel.org>, Leif Lindholm <leif at nuviainc.com>, Graeme Gregory <graeme at nuviainc.com>, Radoslaw Biernacki <rad at semihalf.com>
Subject: [edk2-devel] SbsaQemu: "acpiview -s pptt" crashes after printing "Flags : 0x5F"

I noticed that with edk2 7a6e6ae9332614d386446d2a73e34b74fe66446f and
edk2-platforms 871ce778eb85825b0594b2ca3bf4c1cc795b43cc (i.e. both
latest master as of December 14th 1am UTC), running "acpiview -s pptt"
causes a synchronous exception fault:



Shell> acpiview -s pptt


  --------------- PPTT Table ---------------

Address  : 0x100F86DE698
Length   : 240

00000000 : 50 50 54 54 F0 00 00 00 - 02 EF 4C 49 4E 41 52 4F
PPTT......LINARO
00000010 : 53 42 53 41 51 45 4D 55 - 10 08 20 20 4C 4E 52 4F
SBSAQEMU.. LNRO
00000020 : 01 00 00 00 00 14 00 00 - 11 00 00 00 00 00 00 00
................
00000030 : 00 00 00 00 00 00 00 00 - 01 18 00 00 7F 00 00 00
................
00000040 : 68 00 00 00 00 80 00 00 - 00 01 00 00 02 02 40 00
h............. at .
00000050 : 01 18 00 00 5F 00 00 00 - 68 00 00 00 00 80 00 00
...._...h.......
00000060 : 00 01 00 00 02 04 40 00 - 01 18 00 00 7F 00 00 00
...... at .........
00000070 : 00 00 00 00 00 00 08 00 - 00 04 00 00 08 0A 40 00
.............. at .
00000080 : 00 1C 00 00 1A 00 00 00 - 24 00 00 00 00 00 00 00
........$.......
00000090 : 02 00 00 00 38 00 00 00 - 50 00 00 00 00 1C 00 00
....8...P.......
000000A0 : 1A 00 00 00 24 00 00 00 - 01 00 00 00 02 00 00 00
....$...........
000000B0 : 38 00 00 00 50 00 00 00 - 00 1C 00 00 1A 00 00 00
8...P...........
000000C0 : 24 00 00 00 02 00 00 00 - 02 00 00 00 38 00 00 00
$...........8...
000000D0 : 50 00 00 00 00 1C 00 00 - 1A 00 00 00 24 00 00 00
P...........$...
000000E0 : 03 00 00 00 02 00 00 00 - 38 00 00 00 50 00 00 00
........8...P...

Table Checksum : OK

PPTT :
   Signature                          : PPTT
   Length                             : 240
   Revision                           : 2
   Checksum                           : 0xEF
   Oem ID                             : LINARO
   Oem Table ID                       : SBSAQEMU
   Oem Revision                       : 0x20200810
   Creator ID                         : LNRO
   Creator Revision                   : 0x1
   * Structure Offset *               : 0x24
   Processor Hierarchy Node Structure :
     Type                             : 0x0
     Length                           : 20
     Reserved                         : 0x0
     Flags                            : 0x11
     Parent                           : 0x0
     ACPI Processor ID                : 0x0
     Number of private resources      : 0
   * Structure Offset *               : 0x38
   Cache Type Structure :
     Type                             : 0x1
     Length                           : 24
     Reserved                         : 0x0
     Flags                            : 0x7F
     Next Level of Cache              : 0x68
     Size                             : 0x8000
     Number of sets                   : 256
     Associativity                    : 2
     Attributes                       : 0x2
     Line size                        : 64
   * Structure Offset *               : 0x50
   Cache Type Structure :
     Type                             : 0x1
     Length                           : 24
     Reserved                         : 0x0
     Flags                            : 0x5F

Synchronous Exception at 0x00000100F8245458


Synchronous Exception at 0x00000100F8245458
PC 0x0100F8245458 (0x0100F8225000+0x00020458) [ 0] Shell.dll
PC 0x0100F824578C (0x0100F8225000+0x0002078C) [ 0] Shell.dll
PC 0x0100F82433BC (0x0100F8225000+0x0001E3BC) [ 0] Shell.dll
PC 0x0100F82C9BAC (0x0100F8225000+0x000A4BAC) [ 0] Shell.dll
PC 0x0100F82C9CB4 (0x0100F8225000+0x000A4CB4) [ 0] Shell.dll
PC 0x0100F8262090 (0x0100F8225000+0x0003D090) [ 0] Shell.dll
PC 0x0100F82621EC (0x0100F8225000+0x0003D1EC) [ 0] Shell.dll
PC 0x0100F8264A70 (0x0100F8225000+0x0003FA70) [ 0] Shell.dll
PC 0x0100F8262650 (0x0100F8225000+0x0003D650) [ 0] Shell.dll
PC 0x0100F826283C (0x0100F8225000+0x0003D83C) [ 0] Shell.dll
PC 0x0100F825D3B8 (0x0100F8225000+0x000383B8) [ 0] Shell.dll
PC 0x0100F8263908 (0x0100F8225000+0x0003E908) [ 0] Shell.dll
PC 0x0100F825D3B8 (0x0100F8225000+0x000383B8) [ 0] Shell.dll
PC 0x0100F8262A50 (0x0100F8225000+0x0003DA50) [ 0] Shell.dll
PC 0x0100F825D938 (0x0100F8225000+0x00038938) [ 0] Shell.dll
PC 0x0100F825CED4 (0x0100F8225000+0x00037ED4) [ 0] Shell.dll
PC 0x0100F82577D0 (0x0100F8225000+0x000327D0) [ 0] Shell.dll
PC 0x0100F822B908 (0x0100F8225000+0x00006908) [ 0] Shell.dll
PC 0x0100F822BAA4 (0x0100F8225000+0x00006AA4) [ 0] Shell.dll
PC 0x0100F822BD8C (0x0100F8225000+0x00006D8C) [ 0] Shell.dll
PC 0x0100F822C0F0 (0x0100F8225000+0x000070F0) [ 0] Shell.dll
PC 0x0100F822C200 (0x0100F8225000+0x00007200) [ 0] Shell.dll
PC 0x0100F8229E30 (0x0100F8225000+0x00004E30) [ 0] Shell.dll
PC 0x0100F822845C (0x0100F8225000+0x0000345C) [ 0] Shell.dll
PC 0x0100F8226F54 (0x0100F8225000+0x00001F54) [ 0] Shell.dll
PC 0x0100F8226064 (0x0100F8225000+0x00001064) [ 0] Shell.dll
PC 0x0100FF53ED94 (0x0100FF538000+0x00006D94) [ 1] DxeCore.dll
PC 0x0100F8382DF4 (0x0100F836F000+0x00013DF4) [ 2] UiApp.dll
PC 0x0100F838F0AC (0x0100F836F000+0x000200AC) [ 2] UiApp.dll
PC 0x0100FBA4434C (0x0100FBA28000+0x0001C34C) [ 3] SetupBrowser.dll
PC 0x0100FBA45148 (0x0100FBA28000+0x0001D148) [ 3] SetupBrowser.dll
PC 0x0100FBA2A0AC (0x0100FBA28000+0x000020AC) [ 3] SetupBrowser.dll
PC 0x0100F8370CCC (0x0100F836F000+0x00001CCC) [ 4] UiApp.dll
PC 0x0100F837248C (0x0100F836F000+0x0000348C) [ 4] UiApp.dll
PC 0x0100F83723B0 (0x0100F836F000+0x000033B0) [ 4] UiApp.dll
PC 0x0100F837088C (0x0100F836F000+0x0000188C) [ 4] UiApp.dll
PC 0x0100F8370064 (0x0100F836F000+0x00001064) [ 4] UiApp.dll
PC 0x0100FF53ED94 (0x0100FF538000+0x00006D94) [ 5] DxeCore.dll
PC 0x0100FBA101F0 (0x0100FBA01000+0x0000F1F0) [ 6] BdsDxe.dll
PC 0x0100FBA15D20 (0x0100FBA01000+0x00014D20) [ 6] BdsDxe.dll
PC 0x0100FBA04310 (0x0100FBA01000+0x00003310) [ 6] BdsDxe.dll
PC 0x0100FF53A3D4 (0x0100FF538000+0x000023D4) [ 7] DxeCore.dll
PC 0x0100FF53945C (0x0100FF538000+0x0000145C) [ 7] DxeCore.dll
PC 0x0100FF539024 (0x0100FF538000+0x00001024) [ 7] DxeCore.dll

[ 0]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/ShellPkg/Application/Shell/Shell/DEBUG/Shell.dll
[ 1]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
[ 2]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll
[ 3]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe/DEBUG/SetupBrowser.dll
[ 4]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll
[ 5]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
[ 6]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll
[ 7]
/home/bcran/src/upstream/uefi/Build/SbsaQemu/NOOPT_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll

   X0 0x0000000000000057   X1 0x0000000000000057   X2
0x00000100FF537030   X3 0x0000000000000027
   X4 0x0000000000000002   X5 0x0000000000000000   X6
0x00000100F8245EEC   X7 0x0000000000000000
   X8 0x00000100FBFFF588   X9 0x0000000400000000  X10
0x00000100F91D0000  X11 0x00000100F91EAFFF
  X12 0x0000000000000000  X13 0x000000000000000E  X14
0x0000000000000000  X15 0x0000000000000000
  X16 0x00000100FF5377D0  X17 0x0000000000000000  X18
0x0000000000000000  X19 0x00000100FF536E50
  X20 0x0000000000000000  X21 0x0000000000000000  X22
0x0000000000000000  X23 0x0000000000000000
  X24 0x0000000000000000  X25 0x0000000000000000  X26
0x0000000000000000  X27 0x0000000000000000
  X28 0x0000000000000000   FP 0x00000100FF536CF0   LR 0x00000100F824578C

   V0 0xAFAFAFAFAFAFAFAF AFAFAFAFAFAFAFAF   V1 0x6573614265657254
6563697665442820
   V2 0x000000737570632F 000030203D3D2029   V3 0x0000000000000000
0000000000000000
   V4 0x0000000000000001 0000000000000000   V5 0x4010040140100401
4010040140100401
   V6 0x0001000000000000 0001000000000000   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 0x00000100FF536CB0  ELR 0x00000100F8245458  SPSR 0x60000209  FPSR
0x00000000
  ESR 0x97000010          FAR 0x0000000000000057

  ESR : EC 0x25  IL 0x1  ISS 0x01000010

Data abort: Synchronous external abort

Stack dump:
   00100FF536BB0: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
   00100FF536BD0: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
   00100FF536BF0: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
   00100FF536C10: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
   00100FF536C30: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
   00100FF536C50: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
   00100FF536C70: 0000000000000000 0000000000000000 00000100FBA77294
0000000020000308
   00100FF536C90: 0000000000000000 0000000097000010 0000000000000057
0000000000000001
 > 00100FF536CB0: 00000100FF536CF0 00000000FFFFFFD0 00000100FF579768
0000000000000010
   00100FF536CD0: 00000100FF536D20 00000100FF536D20 00000100FF536CF0
00000000FFFFFFD0
   00100FF536CF0: 00000100FF536E30 00000100F82433BC 00000100FF536EB0
00000100FF55A4BC
   00100FF536D10: 0000000070616D6D 0000000000000000 00000100F82E831A
0000000000000540
   00100FF536D30: 0000000000001F40 00000100F91D00EA 00000100F91D0000
0000000000000073
   00100FF536D50: 00000100FF536D80 00000100FF5454B0 00000100FF536D90
0000000000000004
   00100FF536D70: 01000100FF536D90 0000000000000027 00000100FF536DB0
00000000000000D2
   00100FF536D90: 00000100FF536DF0 00000100FF54EFAC 0000000000000000
0000000000000000

ASSERT [ArmCpuDxe]
/home/bcran/src/upstream/uefi/edk2/ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(333):
((BOOLEAN)(0==1))


--
Rebecca Cran






IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#84802): https://edk2.groups.io/g/devel/message/84802
Mute This Topic: https://groups.io/mt/87713057/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20211214/38cc24c2/attachment.htm>


More information about the edk2-devel-archive mailing list