Re: 14.0-CURRENT panic in early boot

From: Daniel Morante via freebsd-current <freebsd-current_at_freebsd.org>
Date: Sat, 20 Nov 2021 22:00:12 UTC
I've seen it on an arm64 system:

KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
vpanic() at vpanic+0x174
panic() at panic+0x44
do_el1h_sync() at do_el1h_sync+0x184
handle_el1h_sync() at handle_el1h_sync+0x78
--- exception, esr 0x2000000
vt_conswindow() at vt_conswindow+0x10
(null)() at -0x4
(null)() at 0xffffffff00000001
Uptime: 3s

The full log is here: 
http://venus.morante.net/downloads/unibia/screenshots/freebsd/R281-T91/14-CURRENT-4082b189d2c/failed-boot1.txt

On 11/18/2021 12:22 AM, Dustin Marquess wrote:
> I just updated a machine from a build that was ~2 weeks old. The
> latest commit when I built it was 2e946f87055.
>
> The system boots using UEFI, if that matters. The system is panicking
> pretty early in the boot, however:
>
> real memory  = 137438953472 (131072 MB)
> avail memory = 133651496960 (127460 MB)
> ACPI APIC Table: <LENOVO SV-INT  >
> FreeBSD/SMP: Multiprocessor System Detected: 32 CPUs
> FreeBSD/SMP: 2 package(s) x 8 core(s) x 2 hardware threads
> random: registering fast source Intel Secure Key RNG
> random: fast provider: "Intel Secure Key RNG"
> random: unblocking device.
> kernel trap 12 with interrupts disabled
> panic: vm_fault_lookup: fault on nofault entry, addr: 0xffffffff81e1d000
> cpuid = 0
> time = 1
>
>
> The backtrace shows:
>
> KDB: stack backtrace:
> #0 0xffffffff806deb5b at kdb_backtrace+0x6b
> #1 0xffffffff80693b44 at vpanic+0x184
> #2 0xffffffff806939b3 at panic+0x43
> #3 0xffffffff8091d4b3 at vm_fault+0x1423
> #4 0xffffffff8091bfb0 at vm_fault_trap+0xb0
> #5 0xffffffff809c0902 at trap_pfault+0x1f2
> #6 0xffffffff809992b8 at calltrap+0x8
> #7 0xffffffff806ebcc1 at vsscanf+0x31
> #8 0xffffffff806ebc7f at sscanf+0x3f
> #9 0xffffffff806bd9ab at validate_uuid+0x8b
> #10 0xffffffff80655be0 at prison0_init+0x90
> #11 0xffffffff80623aba at proc0_init+0x29a
> #12 0xffffffff80623689 at mi_startup+0xe9
> #13 0xffffffff802e3062 at btext+0x22
> Uptime: 1s
>
> Compared to a boot using the old working kernel:
>
> real memory  = 137438953472 (131072 MB)
> avail memory = 133651505152 (127460 MB)
> ACPI APIC Table: <LENOVO SV-INT  >
> FreeBSD/SMP: Multiprocessor System Detected: 32 CPUs
> FreeBSD/SMP: 2 package(s) x 8 core(s) x 2 hardware threads
> random: registering fast source Intel Secure Key RNG
> random: fast provider: "Intel Secure Key RNG"
> random: unblocking device.
> ioapic0 <Version 2.0> irqs 0-23
> ioapic1 <Version 2.0> irqs 24-47
> ioapic2 <Version 2.0> irqs 48-71
> Launching APs: 1 11 28 15 18 6 29 4 16 9 24 7 3 10 27 22 14 13 12 23
> 25 20 26 30 17 5 2 21 19 8 31
> Timecounter "TSC-low" frequency 1197250876 Hz quality 1000
>
> Has anybody else seen this?
> -Dustin
>