MPS issue job000813

TitleCan't access memory without hitting MPS protection barrier.
Statusclosed
Priorityessential
Assigned userDavid Jones
OrganizationRavenbrook
DescriptionIn order to investigate the Win2K / Office XP problem
(job000812) Configura would like to have the MPS lift all
memory protection barriers that it is using. They are happy
that this can only when when the arena is parked. They
understand that this will impact performance and is intended for
debugging.

This is part of the problem described in job000812
AnalysisWe should provide a function to call (when the arena is parked)
that removes all memory protection.

In principle this is quite easy to do, just set the segment's
summary to RefSetUNIV for all the segments in the arena.
Possibly just all scannable / protectable segments.

Testing:

A suitable test might be to use a Structured Exception Handler
to see whether a page has been protected. This is not portable
of course. A more portable test might be to print out how long
an acccess takes though this is more subjective. The test
exposet0.c takes the former approach and uses SEH.

Design and implementation notes:

Arranges to park arena so no requirement to call it only when
parked already.

Call SegSetSummary(_, RefSetUNIV) on all scannable segments.
How foundcustomer
Evidencehttps://info.ravenbrook.com/mail/2003/10/29/16-10-08/0/
Observed in1.101.0
Created byDavid Jones
Created on2003-11-04 09:51:32
Last modified byGareth Rees
Last modified on2013-03-19 12:11:33
History2003-11-04 DRJ created
2003-11-04 DRJ closed

Fixes

Change Effect Date User Description
62949 closed 2003-11-04 12:34:54 David Jones MPS: implementing mps_arena_expose