Files
AnyPS5/docs/dev/debt/changes/fix-libkernel-sys-vm-map-timestamp.md
Mohamed Malek AifaandOpenAI ChatGPT 0fc505cb09 fix(libkernel_sys): only advance vm map timestamp on map changes (#26335)
* fix(libkernel_sys): track vm map timestamp changes
* fix(libkernel_sys): keep failed vm mutations timestamp-stable
* test(libkernel_sys): pin vm map timestamp mutation paths
* test(libkernel_sys): pin vm map remove timestamp
* test(libc): cover successful protection map timestamp

Co-authored-by: OpenAI ChatGPT <noreply@openai.com>
2026-12-03 22:04:23 +13:00

771 B

libkernel_sys

change [get_vm_map_timestamp]

  • get_vm_map_timestamp (libkernel_sys) returns the low 32 bits of a dedicated guest VM-map generation. It advances when a tracked mapping or protection changes, including image registration, unmapping and explicit page-state invalidation, but not when a registry mutation scope only inspects mappings. Previously it reused the broader allocation-registry generation, which advances at the end of every mutation scope and therefore changed on read-only operations. Firmware 13.60 libkernel_sys.sprx routes this export to syscall 624. The console timestamp arithmetic is not hardware-validated, and host mappings made outside the tracker can still be missed.