Handling abnormal exit of app that is sharing memory to kernel driver

  • Thread starter Thread starter Boomi.s
  • Start date Start date
B

Boomi.s

Guest
Hi All,

Assume that the memory is allocated by the user mode application and mapped to system address space using IOCTL. The shared memory is used to exchange data between app and driver. I know this is bad approach.

But wondering how can i handle unmapping of this shared memory in kernel driver when application exits due to not-handled exception. Accessing this mapped memory in the driver code when application already exited will cause issue.

Thanks,

Continue reading...
 
Back
Top