Another ZwMapViewOfSection question

If a driver calls ZwMapViewOfSection in the context of a client process during an IOCTL call and maps a view into the client virtual memory space, but the view of the section is not unmapped before the client process exits, would the view automatically be cleaned up on process exit? Or would PTEs be left hanging?

Thanks,
Sherri

Yes, all of a process’s user mode address space resources will be cleaned up by the memory manager, with some exceptions (e.g. A buggy driver leaving locked pages laying around).

  • S

-----Original Message-----
From: xxxxx@yahoo.com
Sent: Friday, August 21, 2009 12:34
To: Windows System Software Devs Interest List
Subject: [ntdev] Another ZwMapViewOfSection question

If a driver calls ZwMapViewOfSection in the context of a client process during an IOCTL call and maps a view into the client virtual memory space, but the view of the section is not unmapped before the client process exits, would the view automatically be cleaned up on process exit? Or would PTEs be left hanging?

Thanks,
Sherri


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Thanks for the response!
Sherri