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?
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?