GHES/CPER admission ordering in confidential VMs - research note before submission
Hello,
I am preparing a paper for the Journal of Computer Security, provisionally titled "ForgedFault: Admission Control for Host-Authored Hardware-Error Testimony in Confidential VMs". It is not submitted yet. I am writing before submission so that the kernel side can be reviewed independently of the paper. I am not reporting a CVE and I am not publishing an exploit.
What I observed. On Linux 5.15, 6.8, and 7.3-rc7, the GHES memory-failure path records the error in the guest's MCE/EDAC history before memory_failure() runs and before any page action (retirement or soft-offline) is queued. A CPER that passes the structural and declared checks is therefore entered as hardware history even if the page action is subsequently blocked. I treat this as an ordering and admission problem at the GHES entry, not as a CPER parser bug.
One qualification decides whether this reproduces. In a TDX guest the GHES status block is mapped private by default, so a stock guest reads nothing the host writes: on two rented bare-metal TDX hosts, 0 of 5 stock boots read a record. The path above is reachable when the tenant maps the block shared, which is how firmware-first RAS is configured; with that one guest-side line, every boot that offered the record consumed it (3/3 and 4/4), leaving an MCE/EDAC entry, and the recoverable record that named a victim terminated it on its next access (1/1 on each host) while the other five processes continued. On SEV-SNP the same delivery is a source argument, not a measurement: it holds only if the guest shares the block and no paravisor authenticates or filters the record. The two commercial instances I inspected read-only (one TDX, one SNP, one region each) had no HEST at all. So this is a latent ordering and trust-boundary issue, not a live exploit against an unmodified shipping VM.
Why content checks do not close it. If the host copies a genuine record byte for byte, no decision that reads only the record and public constants can separate the copy from the original. I use that as a bound on content-only filters, not as an exploit recipe.
What I implemented and measured. A fail-closed admission gate at the GHES entry, covering both the poll path and the NMI path, with refused records going to a clearly marked raw-observation log instead of trusted state. I measured it on QEMU/KVM. On a modified TDX tree I compiled and boot-measured it but did not run it end to end. I did not measure genuine ECC events, and I do not claim production availability.
What I would like to ask.
1. Is a quarantine or deny option at the GHES entry acceptable upstream, given that it also refuses genuine firmware-first reports on the same channel?
2. Should the NMI path share the same gate, or is there a reason to keep the two entry families separate?
3. Is there an in-boundary producer design the maintainers would consider trustworthy for a positive acceptance policy? With no such producer, the only sound policy I can run is deny-all, and that is a completeness cost I do not want to hide.
Status. I have no fixed date for the preprint or for the journal submission. I will send the arXiv ID before the preprint goes public; if you would like to see the relevant sections first, or want more time, tell me and I will arrange it. The patch and the measurement scripts are available on request; I have not attached them.
Sincerely,
Kang Jin
Wollongong Joint Institute, Central China Normal University(CCNU) [email protected]