Messages in this thread | | | From | Michael Buesch <> | Subject | Re: Really good idea to allow mmap(0, FIXED)? | Date | Sun, 8 Oct 2006 21:18:29 +0200 |
| |
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |