LWN.net Logo

C's notion of null _is_ the _only_ relevant

C's notion of null _is_ the _only_ relevant

Posted Jul 19, 2009 11:19 UTC (Sun) by nix (subscriber, #2304)
In reply to: C's notion of null _is_ the _only_ relevant by xilun
Parent article: Linux 2.6.30 exploit posted

The *attacker* mmap()ed address zero, not the kernel. I suppose there
should be an option to make NULL not all-bits-zero when inside the kernel,
but then you'd have to adjust pointers in transit from userspace and
comparisons to it would be slower and so on.


(Log in to post comments)

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