I'm new to the Linux kernel and I was trying to understand memory management better by reading up on function calls, prologues, assembly etc.

However it occurred to me that the Linux kernel might protect its stack differently due to different restrictions.

How does the Linux kernel memory management use guard pages (if this feature even exists)?


Yes, Linux has guard pages. The implementation in the latest Linux kernel recently changed somewhat in order to deal with a vulnerability ("stack clash") where the guard page can be skipped. See this post for a description of the issue with the previous implementation. See this thread on LKML for a discussion of recent changes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.