Bug ID 1205588
Summary Page Fault when booting with PE NX-compatibility DLL Characteristic flag
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Bootloader
Assignee screening-team-bugs@suse.de
Reporter jlee@suse.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

I am trying the "Page Fault when booting with PE NX-compatibility DLL
Characteristic flag" support in openSUSE TW:

When PcdDxeNxMemoryProtectionPolicy be set to 0x4 (protect EfiLoaderData) in
OVMF, openSUSE TW can not boot. We got a Page Fault:

Loading Linux 6.1.0-rc5-default+.old ...
Loading initial ramdisk ...
!!!! X64 Exception Type - 0E(#PF - Page-Fault)  CPU Apic ID - 00000000 !!!!
ExceptionData - 0000000000000011  I:1 R:0 U:0 W:0 P:1 PK:0 SS:0 SGX:0
RIP  - 0000000076A6F390, CS  - 0000000000000038, RFLAGS - 0000000000210206
RAX  - 000000007DA98DF8, RCX - 0000000076A6F390, RDX - 000000007DED3000
RBX  - 0000000076A6F000, RSP - 000000007FF0D5A8, RBP - 000000007DED3000
RSI  - 000000007F9EE018, RDI - 000000007E7A9718
R8   - 0000000076A6F000, R9  - 0000000000000190, R10 - 000000007FF1D658
R11  - 0000000000000004, R12 - 0000000000000190, R13 - 000000007DA98E00
R14  - 000000007DA936B4, R15 - 000000007BF0CBD5
DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030
GS   - 0000000000000030, SS  - 0000000000000030
CR0  - 0000000080010033, CR2 - 0000000076A6F390, CR3 - 000000007FC01000
CR4  - 0000000000000668, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 000000007F9DE000 0000000000000047, LDTR - 0000000000000000
IDTR - 000000007F2E9018 0000000000000FFF,   TR - 0000000000000000
FXSAVE_STATE - 000000007FF0D200
!!!! Find image based on IP(0x7BF0BAB5) (No PDB)  (ImageBase=000000007BDEB7A0,
EntryPoint=000000007C92A0AF) !!!!

The same EFI_STUB kernel can direct boot by EFI boot manager with the following
boot entry:

echo  " root=UUID=6ffd1fb1-ddac-4105-a25a-20a602c93e7d showopts
console=ttyS0,115200n8 console=tty0 earlyprintk=tty0 debug loglevel=9 efi=debug
nomodeset initrd=\EFI\opensuse\initrd-6.1.0-rc5-default+" | \
iconv -f ascii -t ucs2 | efibootmgr -v -cL "vmlinuz-6.1.0-rc5-default+.efi
(EFISTUB)" -d /dev/vda -p 1 -l '\EFI\opensuse\vmlinuz-6.1.0-rc5-default+.efi'
--append-binary-args -

Looks that the Page Fault is in grub2. The grub2 rpm is
grub2-x86_64-efi-2.06-31.1.noarch.


You are receiving this mail because: