CVE-2026-100066: KVM: arm64: Move OUTSIDE_GUEST_MODE publication past context being saved
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: Move OUTSIDEGUESTMODE publication past context being saved
OUTSIDEGUESTMODE indicates to the rest of KVM that the vcpu has exited. So far, this is set as soon as we return from the notional hypervisor (which with VHE is just a function call away).
However, code that uses OUTSIDEGUESTMODE as a synchronisation point relies on the vcpu state to have been written back to the in-memory structures. Clearly, this is not what is happening.
Move the publication of OUTSIDEGUESTMODE to the point where the state is actually written, and give this write release semantics to ensure the correct ordering.