public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Regression found with latest edk2/OVMF SECUREBOOT/SMM build
@ 2022-02-11 18:31 Aaron Young
  2022-02-12  0:48 ` [edk2-devel] " dann frazier
       [not found] ` <16D2E37A1DF179C5.26336@groups.io>
  0 siblings, 2 replies; 3+ messages in thread
From: Aaron Young @ 2022-02-11 18:31 UTC (permalink / raw)
  To: devel@edk2.groups.io; +Cc: Aaron Young

  Hello, my apologies if this has already been discovered/discussed/addressed, but we are seeing a reproducible exception with latest (c9b7c6e0cc7da76b74bcdd8c90cef956d5ae971c) OVMF x86_64 build with SECURE_BOOT/SMM enabled:

  Exception:

!!!! X64 Exception Type - 06(#UD - Invalid Opcode)  CPU Apic ID - 00000000 !!!!
RIP  - 00000000000E0000, CS  - 0000000000000038, RFLAGS - 0000000000010046
RAX  - 0000000000000000, RCX - 000000007FED2920, RDX - 0000000000000000
RBX  - 000000007DB93D98, RSP - 000000007FF26718, RBP - 000000007FFE1630
RSI  - 000000007E9EE018, RDI - 0000000000000000
R8   - 000000007FED3230, R9  - 0000000000000210, R10 - 000000000000002D
R11  - 000000007FF26482, R12 - 000000007EAC2201, R13 - 000000007FFFD2B0
R14  - 000000007FF26A88, R15 - 2000000000000000
DS   - 0000000000000020, ES  - 0000000000000020, FS  - 0000000000000020
GS   - 0000000000000020, SS  - 0000000000000020
CR0  - 0000000080010033, CR2 - 0000000000000000, CR3 - 000000007FF16000
CR4  - 0000000000000668, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 000000007FED9000 000000000000004F, LDTR - 0000000000000000
IDTR - 000000007FF20000 00000000000001FF,   TR - 0000000000000040
FXSAVE_STATE - 000000007FF26370
!!!! Can't find image information. !!!!


 OVMF Debug Log tail:

Stacks                   - 0x7FF21000
mSmmStackSize            - 0x6000
PcdCpuSmmStackGuard      - 0x1
mXdSupported - 0x1
One Semaphore Size    = 0x40
Total Semaphores Size = 0x1140
PhysicalAddressBits = 40, 5LPageTable = 0.
5LevelPaging Needed             - 0
1GPageTable Support             - 0
PcdCpuSmmRestrictedMemoryAccess - 1
PhysicalAddressBits             - 36
Initialize IDT IST field for SMM Stack Guard
InstallProtocolInterface: 26EEB3DE-B689-492E-80F0-BE8BD7DA4BA7 7FFC6100
SMM IPL registered SMM Entry Point address 7FFE5274
SmmInstallProtocolInterface: EB346B97-975F-4A9F-8B22-F8E92BB3D569 7FFC6040
SmmInstallProtocolInterface: 69B792EA-39CE-402D-A2A6-F721DE351DFE 7FFC6020
CpuSmm: SpinLock Size = 0x40, PcdCpuSmmMpTokenCountPerChunk = 0x40
SmmInstallProtocolInterface: 5D5450D7-990C-4180-A803-8E63F0608307 7FFC6200
SmmInstallProtocolInterface: 1D202CAB-C8AB-4D5C-94F7-3CFCC0D3D335 7FFC6140
SMM CPU Module exit from SMRAM with EFI_SUCCESS
SMM IPL closed SMRAM window
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 7DB93E18
SmmInstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 7FFE16C0
Loading SMM driver at 0x0007FECA000 EntryPoint=0x0007FECFE6C FvbServicesSmm.efi


 Failure bisected to this commit:

 commit ade62c18f4742301bbef474ac10518bde5972fba
Author: Brijesh Singh via groups.io <brijesh.singh=amd.com@groups.io>
Date:   Thu Dec 9 11:27:42 2021 +0800

    OvmfPkg/MemEncryptSevLib: add support to validate system RAM
    
    BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3275


  Our build procedure:

git clone git@linux-git.oraclecorp.com:QEMU/edk2.git edk2
cd edk2
git submodule update --init
source ./edksetup.sh
make -C BaseTools
build -t GCC48 -D HTTP_BOOT_ENABLE -D FD_SIZE_4MB -D SECURE_BOOT_ENABLE -D SMM_REQUIRE -D TPM2_ENABLE -a X64 -p OvmfPkg/OvmfPkgX64.dsc

  QEMU command:

/usr/bin/qemu-system-x86_64 -name guest=Guest8 -m 8192 -smp 8,maxcpus=16 -machine q35,accel=kvm -drive file=/Src/EDK2/edk2-latest1/Build/OvmfX64/DEBUG_GCC48/FV/OVMF_CODE.fd,index=0,if=pflash,format=raw,readonly -drive file=/Src/EDK2/edk2-latest1/Build/OvmfX64/DEBUG_GCC48/FV/OVMF_VARS.fd,index=1,if=pflash,format=raw -drive file=/root/Test/Disks/Guest8.img,format=raw,if=virtio -debugcon file:ovmf_debug.log -global isa-debugcon.iobase=0x402 -monitor stdio -nodefaults -global ICH9-LPC.disable_s3=1 -serial telnet:127.0.0.1:4556,server -vnc 0.0.0.0:1

  -Aaron Young
  aaron.young@oracle.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-14 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-11 18:31 Regression found with latest edk2/OVMF SECUREBOOT/SMM build Aaron Young
2022-02-12  0:48 ` [edk2-devel] " dann frazier
     [not found] ` <16D2E37A1DF179C5.26336@groups.io>
2022-02-14 22:45   ` dann frazier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox