The freebsd-15-0-release-amd64-ufs fails to boot on local SSD backed C4 machines on Google Compute Engine, like this: Booting [/boot/kernel/kernel]... staging 0xb4000000 (not copying) tramp 0xbd2e7000 PT4 0xbd2de000 Start @ 0xffffffff80387000 ... Loading splash ok ---<<BOOT>>--- Copyright (c) 1992-2025 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC amd64 FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) VT(vga): text 80x25 Fatal trap 9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xffffffff810495ac stack pointer = 0x28:0xffffffff823d8f10 frame pointer = 0x28:0xffffffff823d8fb0 code segment = base rx0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = resume, IOPL = 0 current process = 0 () rdi: fffffe002ae08c00 rsi: ff01000001296e70 rdx: 0000000000000000 rcx: 00000000000000e7 r8: 000000000000001d r9: 8080808080808080 rax: 0000000000000000 rbx: ff01000001296e70 rbp: ffffffff823d8fb0 r10: 0000000000000000 r11: ffffff9a91969891 r12: 00000000021d5000 r13: 021ca00000000000 r14: 00000000bd2de000 r15: ffffffff80387000 trap number = 9 panic: general protection fault cpuid = 0 time = 1 KDB: stack backtrace: #0 0xffffffff80bbe1ed at kdb_backtrace+0x5d #1 0xffffffff80b71576 at vpanic+0x136 #2 0xffffffff80b71433 at panic+0x43 #3 0xffffffff81079b98 at trap_fatal+0x68 #4 0xffffffff8104ff18 at calltrap+0x8 #5 0xffffffff8105a425 at cpu_startup+0x115 #6 0xffffffff80af4f95 at mi_startup+0xb5 #7 0xffffffff80387023 at btext+0x23 Uptime: 1s Rebooting... 16.0-CURRENT dies like this: panic: general protection fault cpuid = 0 time = 1 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff8261dc60 vpanic() at vpanic+0x136/frame 0xffffffff8261dd90 panic() at panic+0x43/frame 0xffffffff8261ddf0 trap_fatal() at trap_fatal+0x68/frame 0xffffffff8261de10 calltrap() at calltrap+0x8/frame 0xffffffff8261de10 --- trap 0x9, rip = 0xffffffff810af11c, rsp = 0xffffffff8261dee0, rbp = 0xffffffff8261df80 --- start_TSC() at start_TSC+0x28c/frame 0xffffffff8261df80 cpu_startup() at cpu_startup+0x115/frame 0xffffffff8261dfa0 mi_startup() at mi_startup+0x1f4/frame 0xffffffff8261dff0 Booting [/boot/kernel/kernel]... staging 0xb4000000 (not copying) tramp 0xbd2e7000 PT4 0xbd2de000 Start @ 0xffffffff80383000 ... ---<<BOOT>>--- Copyright (c) 1992-2023 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 14.3-STABLE stable/14-n273401-631d6cc0275c GENERIC amd64 FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2) VT(vga): text 80x25 And freebsd-14-3-stable-amd64-zfs-20260122 dies like this: Fatal trap 9: general protection fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xffffffff8102b5cc stack pointer = 0x28:0xffffffff829dff10 frame pointer = 0x28:0xffffffff829dffb0 code segment = base rx0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = resume, IOPL = 0 current process = 0 () rdi: fffffe0032a08c00 rsi: fffff80001298e70 rdx: 0000000000000000 rcx: 00000000000000e7 r8: 000000000000001d r9: 8080808080808080 rax: 0000000000000000 rbx: fffff80001298e70 rbp: ffffffff829dffb0 r10: 0000000000000000 r11: ffffff9a91969891 r12: 00000000027dc000 r13: 027d100000000000 r14: 00000000bd2de000 r15: ffffffff80383000 trap number = 9 panic: general protection fault cpuid = 0 time = 1 KDB: stack backtrace: #0 0xffffffff80bb437d at kdb_backtrace+0x5d #1 0xffffffff80b65bb1 at vpanic+0x161 #2 0xffffffff80b65a43 at panic+0x43 #3 0xffffffff8105a978 at trap_fatal+0x68 #4 0xffffffff810314d8 at calltrap+0x8 #5 0xffffffff8103b3f5 at cpu_startup+0x115 #6 0xffffffff80aeb0d5 at mi_startup+0xb5 #7 0xffffffff80383023 at btext+0x23 Uptime: 1s Rebooting...
I forgot to tag it, but commit b3d9e5013f3e501 was part of the resolution to this bug. It had two follow up improvements, 4e3beef84628ce and 889d10d5b1205. Two more fixes are on the way, just pending pre-commit smoke test. https://cgit.freebsd.org/src/commit/?id=b3d9e5013f3e5016ffbd3d3d6091194658af2b92 https://cgit.freebsd.org/src/commit/?id=4e3beef84628ce6dfea7f053cddf3289fddf7794 https://cgit.freebsd.org/src/commit/?id=889d10d5b12050b4b3923917b5edeac85e8ca706
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7e7d4e711ff94d114c93fd522d4125aa9bd9f5cd commit 7e7d4e711ff94d114c93fd522d4125aa9bd9f5cd Author: Matt Delco <delco@google.com> AuthorDate: 2026-03-26 17:30:31 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-03-26 19:02:22 +0000 x86: Handle when MPERF/APERF MSRs aren't writable For performance and/or correct reasons some hypervisors allow MPERF/APERF MSRs to be read but not written to. This change modifies the handling of these MSRs to not rely on writes. This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup. Sponsored by: Google Tested by: NetApp (previous) PR: 292808 MFC after: 3 days Co-authored-by: Jim Mattson <jmattson@google.com> Reviewed by: jrtc27, imp, kib, markj, olce, obiwac Differential Revision: https://reviews.freebsd.org/D55996 sys/x86/x86/cpu_machdep.c | 14 +++++++------- sys/x86/x86/tsc.c | 9 ++++++--- 2 files changed, 13 insertions(+), 10 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c505fc1468849150f48484b225b6476d8316de57 commit c505fc1468849150f48484b225b6476d8316de57 Author: Matt Delco <delco@google.com> AuthorDate: 2026-03-26 17:22:54 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-03-26 19:02:06 +0000 x86: Guard clock frequency against a divide by 0 We may be running in a Virtual Machine which may not fully support hardware performance counters. If the MPERF counter somehow ends up at zero, return an error and fail gracefully instead of panicking. This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup. Sponsored by: Google Tested by: NetApp (previous) PR: 292808 MFC after: 3 days Co-authored-by: Aymeric Wibo <obiwac@google.com> Co-authored-by: Jim Mattson <jmattson@google.com> Suggested by: jrtc27 (split out this part) Reviewed by: imp, obiwac, olce Differential Revision: https://reviews.freebsd.org/D56056 sys/x86/x86/cpu_machdep.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
I believe this is fixed now, but I don't have access to test it.
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=1b8723defcccade771864aad4cbc0eaa372366ed commit 1b8723defcccade771864aad4cbc0eaa372366ed Author: Matt Delco <delco@google.com> AuthorDate: 2026-03-26 17:30:31 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-04-13 19:54:16 +0000 x86: Handle when MPERF/APERF MSRs aren't writable For performance and/or correct reasons some hypervisors allow MPERF/APERF MSRs to be read but not written to. This change modifies the handling of these MSRs to not rely on writes. This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup. Sponsored by: Google Tested by: NetApp (previous) PR: 292808 MFC after: 3 days Co-authored-by: Jim Mattson <jmattson@google.com> Reviewed by: jrtc27, imp, kib, markj, olce, obiwac Differential Revision: https://reviews.freebsd.org/D55996 (cherry picked from commit 7e7d4e711ff94d114c93fd522d4125aa9bd9f5cd) sys/x86/x86/cpu_machdep.c | 14 +++++++------- sys/x86/x86/tsc.c | 9 ++++++--- 2 files changed, 13 insertions(+), 10 deletions(-)
A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=296debec88562255349328e6b501d2687febc950 commit 296debec88562255349328e6b501d2687febc950 Author: Matt Delco <delco@google.com> AuthorDate: 2026-03-26 17:22:54 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-04-13 19:54:16 +0000 x86: Guard clock frequency against a divide by 0 We may be running in a Virtual Machine which may not fully support hardware performance counters. If the MPERF counter somehow ends up at zero, return an error and fail gracefully instead of panicking. This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup. Sponsored by: Google Tested by: NetApp (previous) PR: 292808 MFC after: 3 days Co-authored-by: Aymeric Wibo <obiwac@google.com> Co-authored-by: Jim Mattson <jmattson@google.com> Suggested by: jrtc27 (split out this part) Reviewed by: imp, obiwac, olce Differential Revision: https://reviews.freebsd.org/D56056 (cherry picked from commit c505fc1468849150f48484b225b6476d8316de57) sys/x86/x86/cpu_machdep.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3c0afd5bea93a77a63632d3858896160932e7013 commit 3c0afd5bea93a77a63632d3858896160932e7013 Author: Matt Delco <delco@google.com> AuthorDate: 2026-03-26 17:30:31 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-08-06 22:25:08 +0000 x86: Handle when MPERF/APERF MSRs aren't writable For performance and/or correct reasons some hypervisors allow MPERF/APERF MSRs to be read but not written to. This change modifies the handling of these MSRs to not rely on writes. This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup. Sponsored by: Google Tested by: NetApp (previous) PR: 292808 MFC after: 3 days Co-authored-by: Jim Mattson <jmattson@google.com> Reviewed by: jrtc27, imp, kib, markj, olce, obiwac Differential Revision: https://reviews.freebsd.org/D55996 (cherry picked from commit 7e7d4e711ff94d114c93fd522d4125aa9bd9f5cd) sys/x86/x86/cpu_machdep.c | 14 +++++++------- sys/x86/x86/tsc.c | 9 ++++++--- 2 files changed, 13 insertions(+), 10 deletions(-)
A commit in branch stable/14 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=7a068100b4b57ef1db4cec7f3c35e5311617bb85 commit 7a068100b4b57ef1db4cec7f3c35e5311617bb85 Author: Matt Delco <delco@google.com> AuthorDate: 2026-03-26 17:22:54 +0000 Commit: Alexander Ziaee <ziaee@FreeBSD.org> CommitDate: 2026-08-06 22:25:02 +0000 x86: Guard clock frequency against a divide by 0 We may be running in a Virtual Machine which may not fully support hardware performance counters. If the MPERF counter somehow ends up at zero, return an error and fail gracefully instead of panicking. This patch is part of Google Cloud Engine (GCE) C4-LSSD turnup. Sponsored by: Google Tested by: NetApp (previous) PR: 292808 MFC after: 3 days Co-authored-by: Aymeric Wibo <obiwac@google.com> Co-authored-by: Jim Mattson <jmattson@google.com> Suggested by: jrtc27 (split out this part) Reviewed by: imp, obiwac, olce Differential Revision: https://reviews.freebsd.org/D56056 (cherry picked from commit c505fc1468849150f48484b225b6476d8316de57) sys/x86/x86/cpu_machdep.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)