Monday, March 21, 2011

Expanding Kernel Stack

Although there is limit attach to Kernel Stack size for each Thread (12KB+4KB Guard Page). But there are mechanisms supported by Windows to provide efficient expansion of Kernel stacks. In this it allocates additional 16 KB when stack growth near guard page. And during the unwinding, it de-allocates the additional 16KB extensions. Kernel driver make use to KeExpandKernelStackAndCallout to this. But I guess, a judicious use is warranted.

No comments:

Post a Comment