Bug 287422 - EFI RT page fault -- Fatal trap 12: page fault while in kernel mode during 14.3-RELEASE boot
Summary: EFI RT page fault -- Fatal trap 12: page fault while in kernel mode during 14...
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.3-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-10 09:26 UTC by Laszlo Pusztai
Modified: 2025-06-13 22:02 UTC (History)
2 users (show)

See Also:


Attachments
dmesg output from the affected system (8.70 KB, text/plain)
2025-06-10 09:26 UTC, Laszlo Pusztai
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Pusztai 2025-06-10 09:26:32 UTC
Created attachment 261137 [details]
dmesg output from the affected system

After upgrading to 14.3-RELEASE, there's a page fault in kernel mode during boot. From dmesg:

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x0
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0x8bcb9d78
stack pointer	        = 0x28:0xffffffff83ab5cc8
frame pointer	        = 0x28:0x0
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 0 (swapper)
rdi: ffffffff83ab5dbc rsi: ffffffff81b6e001 rdx: 0000000000000000
rcx: 00000000e00fd0dc  r8: 0000000000000000  r9: 8080808080808080
rax: 0000000000000000 rbx: ffffffff83ab5e78 rbp: 0000000000000000
r10: 00000000e00fd000 r11: 00000000000007e9 r12: 00000000000fd0dc
r13: fffff80001a15919 r14: fffff80001a16680 r15: 0000000000001830
trap number		= 12
EFI RT page fault

The system boots however, and is usable. dmesg output attached.
Comment 1 Ahmad Khalifa freebsd_committer freebsd_triage 2025-06-13 21:52:27 UTC
It's a firmware bug. These would happen before, but we used to silently ignore them. They can be safely ignored. You can disable them by setting hw.efi.print_faults to 0.

I've actually been meaning to collect more reports about these, could you attach the output of sysctl machdep.efi_map please?
Comment 2 Laszlo Pusztai 2025-06-13 22:02:32 UTC
Here it is:

machdep.efi_map: 
                   Type     Physical      Virtual   #Pages Attr
     ConventionalMemory 000000000000 000000000000 00000058 UC WC WT WB 
               Reserved 000000058000 000000000000 00000001 UC WC WT WB 
     ConventionalMemory 000000059000 000000000000 00000045 UC WC WT WB 
               Reserved 00000009e000 000000000000 00000002 UC WC WT WB 
     ConventionalMemory 000000100000 000000000000 0007b5a5 UC WC WT WB 
             LoaderCode 00007b6a5000 000000000000 00004000 UC WC WT WB 
       BootServicesData 00007f6a5000 000000000000 00000040 UC WC WT WB 
     ConventionalMemory 00007f6e5000 000000000000 0000378e UC WC WT WB 
             LoaderData 000082e73000 000000000000 00004300 UC WC WT WB 
             LoaderCode 000087173000 000000000000 000000a8 UC WC WT WB 
       BootServicesData 00008721b000 000000000000 000003c7 UC WC WT WB 
          ACPIMemoryNVS 0000875e2000 000000000000 00000001 UC WC WT WB 
    RuntimeServicesData 0000875e3000 0000875e3000 0000004a UC WC WT WB RUNTIME
       BootServicesData 00008762d000 000000000000 00000068 UC WC WT WB 
     ConventionalMemory 000087695000 000000000000 00000004 UC WC WT WB 
             LoaderData 000087699000 000000000000 0000000b UC WC WT WB 
       BootServicesData 0000876a4000 000000000000 00004015 UC WC WT WB 
     ConventionalMemory 00008b6b9000 000000000000 000001a9 UC WC WT WB 
       BootServicesCode 00008b862000 000000000000 00000457 UC WC WT WB 
    RuntimeServicesCode 00008bcb9000 00008bcb9000 00000067 UC WC WT WB RUNTIME
    RuntimeServicesData 00008bd20000 00008bd20000 00001e41 UC WC WT WB RUNTIME
               Reserved 00008db61000 000000000000 00001740 UC WC WT WB 
          ACPIMemoryNVS 00008f2a1000 000000000000 000008f9 UC WC WT WB 
      ACPIReclaimMemory 00008fb9a000 000000000000 00000065 UC WC WT WB 
       BootServicesData 00008fbff000 000000000000 00000001 UC WC WT WB 
     ConventionalMemory 000100000000 000000000000 00770000 UC WC WT WB 
         MemoryMappedIO 0000e0000000 0000e0000000 00010000 UC RUNTIME
         MemoryMappedIO 0000fe000000 0000fe000000 00000011 UC RUNTIME
         MemoryMappedIO 0000fec00000 0000fec00000 00000001 UC RUNTIME
         MemoryMappedIO 0000fee00000 0000fee00000 00000001 UC RUNTIME
         MemoryMappedIO 0000ff000000 0000ff000000 00001000 UC RUNTIME

It is an ASUS P10S-I motherboard, with BIOS version 4602.