There are now KASAN and KMSAN builds of the kernel, with the nested vmm module, ready to download.
Where to find them :
- The built kernels:
https://github.com/Marietto2008/bhyve-nested-strumenti/releases/tag/nested-sanitizers-v1
- kernel.nested-kasan.tar.xz (67 MB): the KASAN kernel with all its modules, including vmm-restore.ko built with KASAN.
- kernel.nested-kmsan.tar.xz (118 MB): the same for KMSAN.
- SHA256SUMS: check it with sha256sum -c SHA256SUMS before using anything.
- The source and configuration they were built from: Marietto2008/freebsd-src, branch vmm-nested-16, commit 4b0bf9c0660a.
- sys/amd64/conf/NESTED-KASAN and NESTED-KMSAN: GENERIC plus options KASAN / options KMSAN, nothing else.
- tools/nested/build-sanitizer.sh: builds both from the same commit, so you don't have to trust my binaries.
How they are meant to be used :
Not on your host. Use them in a FreeBSD 16-CURRs the L1 hypervisor:
- unpack the archive into /boot;
- boot it once with nextboot -k kernel.nested-k
- inside it, run an L2 guest that uses VMX: the kvm-unit-tests VMX tests (branch bhyve-nested) or the L2 kernel of kit/smoke-test.sh.
Every VMX instruction the L2 executes then goesr the sanitizer. A violation shows up as apanic, with a stack, on the console.
Status :
Built on 2026-11-28 and not booted yet: my own runs come next, and I'll post the results in the release notes. If you get there first, even better.
This is experimental code, tested on one machinand
SECURITY.md in the repository before running it.
What I'm asking for :
If you run them and get a KASAN or KMSAN report, please open an issue with:
- the full console text of the report;
- the output of kit/host-manifest.sh;
- the commit hash.
A report with a stack is worth more than "it works for me".