[Bug 276815] loader.efi: failure to load a module causes general protection fault

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Feb 2024 00:34:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276815

            Bug ID: 276815
           Summary: loader.efi: failure to load a module causes general
                    protection fault
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: lexi.freebsd@le-fay.org

using src 49619f73151aeaca4cef5adf631253da04a46e19 

i built a new kernel for a bhyve VM on a 14.0 host.  i forgot to include a
necessary module in the kernel, so it failed to load.  however, rather than
drop to the loader prompt, the loader produced a fatal exception:

Loading kernel...
/boot/kernel/kernel text=0x963f0 text=0x38eed8 text=0x7b974 data=0x140
data=0x8c780+0x172880 0x8+0x9db78+0x8+0xbb463|
Loading configured modules...
/boot/kernel/zfs.ko size 0x5e8828 at 0xb59000
loading required module 'crypto'
/boot/kernel/crypto.ko size 0x5e338 at 0x1142000
loading required module 'acl_nfs4'
can't find 'acl_nfs4'
!!!! X64 Exception Type - 0D(#GP - General Protection)  CPU Apic ID - 00000000
!!!!
ExceptionData - 0000000000000000
RIP  - 00000000BE2B818A, CS  - 0000000000000038, RFLAGS - 0000000000010246
RAX  - 000000000000002F, RCX - 0000000000000000, RDX - 000000000000006B
RBX  - 0000000000000000, RSP - 00000000BFF40200, RBP - 00000000BFF40200
RSI  - 4000000000000080, RDI - 00000000B9A6B940
R8   - 0000000000000018, R9  - FFFFFFFFFFFFFFFD, R10 - 656B2F746F6F622F
R11  - 0000000000000140, R12 - 0000000000000000, R13 - 0000000000000000
R14  - 00000000B9A6CE70, R15 - 00000000B9A6B940
DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030
GS   - 0000000000000030, SS  - 0000000000000030
CR0  - 0000000080010033, CR2 - 0000000000000000, CR3 - 00000000BFC01000
CR4  - 0000000000000668, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 00000000BFBDE000 0000000000000047, LDTR - 0000000000000000
IDTR - 00000000BF1D4018 0000000000000FFF,   TR - 0000000000000000
FXSAVE_STATE - 00000000BFF3FE60
!!!! Find image based on IP(0xBE2B818A) (No PDB)  (ImageBase=00000000BE276000,
EntryPoint=00000000BE2800D0) !!!!

bhyve command line:

Feb 04 00:23:32: booting
Feb 04 00:23:32:  [bhyve options: -c 8 -m 4g -Hwl
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -U
4701bec6-c139-11ee-9702-9c6b0006ba72 -u]
Feb 04 00:23:32:  [bhyve devices: -s 0,hostbridge -s 31,lpc -s
4:0,nvme,/data/vm/lily/disk0.img -s 5:0,nvme,/data/vm/lily/disk1.img -s
6:0,virtio-net,tap1,mac=58:9c:fc:0e:e8:95]
Feb 04 00:23:32:  [bhyve console: -l com1,stdio]

-- 
You are receiving this mail because:
You are the assignee for the bug.