Nonsense. This is trivial stuff.
Posted Jul 17, 2009 20:34 UTC (Fri) by
corbet (editor, #1)
In reply to:
Nonsense. This is trivial stuff. by mikov
Parent article:
Linux 2.6.30 exploit posted
There is an interesting aspect to this that nobody has mentioned: I have seen reviewers advising the removal of NULL pointer checks with the reasoning that, should a NULL pointer ever come about, the resulting kernel oops is just as useful as a "this pointer was null!" message. In the mean time, the overhead of the check can be avoided.
The idea, clearly, is that the memory management hardware can be counted on to do the NULL check so there's no need to do it in software too. But if that address can be mapped, that reasoning clearly does not hold. I don't doubt there are other situations like this one in the kernel code; for most systems, disallowing mappings at zero seems like a reasonable step to take.
(
Log in to post comments)