User: Password:
Subscribe / Log in / New account

4k/8k stacks

4k/8k stacks

Posted May 9, 2008 0:57 UTC (Fri) by corbet (editor, #1)
In reply to: 4k/8k stacks by jmspeex
Parent article: The last things through the 2.6.26 merge window

All memory is virtual memory when the kernel is running. But kernel-space addresses are a sort of special case, in that they are mapped as one big page using a single page table entry. So it's not possible to insert inaccessible guard pages after the kernel stacks - at least, not without dropping the big mapping, which would have a significant performance cost.

(Log in to post comments)

4k/8k stacks

Posted May 15, 2008 11:37 UTC (Thu) by cras (guest, #7000) [Link]

Maybe a small (32bit?) canary at the end of the stack would help a bit? Although if an
happens I guess by the time it's noticed the kernel might have crashed already.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds