[ros-kernel] Handling of user mode exceptions in ros

Thomas Weidenmueller thomas at reactsoft.com
Sat Apr 17 12:47:30 CEST 2004


I'm having a few concerns about memory leaks and instability due to 
usermode exceptions (especially while in callbacks from kernel mode).

Let's imagine the following scenario:

Application X runs and calls a kmode win32k function, let's say 
NtUserY(). This function allocates memory and does a callback to 
usermode in context of the same process. After it returned from the 
callback, it frees up some memory and finally returns back to user mode.

What if the process crashes inside the callback?
What i'd need expect ros to do in case of a usermode exception is to 
return from the callback so NtUserY() is at least finished (freeing 
memory etc.) and after that the thread/process cleanup routine cleans up 
Application X.

Is it done this way or another way?

Regards
Thomas


More information about the Ros-kernel mailing list