-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Description
A bhyve VM running kernel-c18n crashes when setting a breakpoint after a blr instruction and continuing execution in gdb. The kernel switches between the Restricted and Executive modes that could affect bhyve here.
Steps to reproduce:
- Run the disk image of kernel-c18n under bhyve
- Attach GDB to the VM
- In GDB:
b compressor_initc - In bhyve:
kldload zlib_c18nzlibtest - GDB should hit the breakpoint at this stage. Step through the kernel with
niuntil reaching the firstblr(e.g.,blr c4) - In GDB:
b *($pcc+4)c - The guest should panic at this stage with a message like:
Stopped at compressor_init+0x5b: undefined b4000295
Host:
FreeBSD stevnsbaer 15.0-CURRENT FreeBSD 15.0-CURRENT #2 dev-n274330-514fcb667376: Tue Feb 18 16:54:41 GMT 2025 root@stevnsbaer:/usr/obj/usr/src/arm64.aarch64c/sys/GENERIC-MORELLO-PURECAP arm64
#2255 and #2329 were applied before building this kernel.
gdb-cheri package: 14.1.d20250221_1
Metadata
Metadata
Assignees
Labels
No labels