Commit Graph
1 Commits
Author SHA1 Message Date
Dean Galvin dd7ebf9606 fix(libc): stage allocation registry changes before the host mapping changes
A Protect or Unmap that ran out of memory while applying its range patch
had already changed the host mapping, leaving the registry and the mapping
disagreeing. The replacement nodes are now allocated before the apply
callback runs, so applying the patch cannot fail. guest_allocations_oom
injects an allocation failure at every allocation of a Protect and of an
Unmap and checks that the registry is unchanged when the call throws.
2026-10-27 08:38:31 +13:00