Two paths track memory after the guest has unmapped it; the watcher stays when the range is mapped again, so the new mapping is not write-protected.
Rasterizer::UnmapMemoryuntracks the range in the buffer cache, then the GPU thread'sObtainBuffertracks it again before it leavesmapped_ranges. Caught inrace-wo1.txt: unmap of 0x2a3160000+0x240000 by RenderThread_1, invalidate at seq 3228041, GpuCommObtainBufferUpload at 3228061,mapped_rangeserase at 3228210, re-map 3 ms later with w=1.BufferCache::SynchronizeDmaBufferssyncs every resident range, unmapped ones included: the unmap left their pages CPU-modified, so a DMA draw uploads them (zeros) and tracks them again (gow-dma.txt).