Re: mmap to address zero with MAP_FIXED returns ENOPERM for non-rootusers?

From: Eric Smith
Date: Sun Dec 05 2010 - 02:47:32 EST


Kyle Moffett wrote:
> This is a specific security feature designed to reduce the security
> impact of a kernel NULL-pointer dereference.

Thanks for the explanation!

> Since you're performing binary translation of a microcontroller, it
> may be better to perform some kind of minimal memory-map translation
> as a part of that.

That's exactly what I'd hoped to avoid, as it does result in a non-trivial performance hit. I suppose I can make it a configuration option of my translator.

I'm curious, though. How likely are exploits where I can trick the kernel into calling a function at 0 in my virtual address space, but not trick it into calling a function at some non-zero address of my choosing?

Best regards,
Eric

--
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/