I'm asking this from a position of ignorance -- I haven't looked at kernel code in a long time. But wouldn't it be possible to allocate 4k stacks with guard pages between them, thus (a) saving memory and (b) generating a loud exception on stack overflow? Or is there some kind of overhead in leaving holes into the kernel address space that I'm not aware of?
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds