Re: Really good idea to allow mmap(0, FIXED)?

From: Michael Buesch
Date: Sun Oct 08 2006 - 15:19:01 EST


On Sunday 08 October 2006 02:22, Jeremy Fitzhardinge wrote:
> Though (*something_ops->thingy)() becomes a lot more interesting if
> something_ops or ->thingy is NULL...

It's always very critical if a userspace program can modify some
data in the kernel. Be it function pointers or plain data.
Also consider something like:

if (task->uid == 0)
allow_access_to_time_machine();
else
return -EPERM;

Now if "task" may be a NULL pointer (due to a bug) it
can be exploited.

PS: Please don't drop me from the CC list ;)

--
Greetings Michael.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/