Re: [PATCH] security: do not check mmap_min_addr on nommu systems

From: Eric Paris
Date: Fri Dec 04 2009 - 15:05:14 EST


On Thu, 2009-12-03 at 11:58 -0800, Andrew Morton wrote:
> On Thu, 03 Dec 2009 14:43:01 -0500
> Eric Paris <eparis@xxxxxxxxxx> wrote:
>
> > nommu systems can do anything with memory they please and so they already
> > win. mmap_min_addr is the least of their worries. Currently the
> > mmap_min_addr implementation is problamatic on such systems. This patch
> > changes the addr_only argument to be a flags which can take the arguments
> > for addr_only or not_addr. LSMs then need to properly implement these two
> > flags.
>
> This replaces David's
> nommu-ignore-the-address-parameter-in-the-file_mmap-security-check.patch,
> which missed 2.6.32.
>
> What are our thoughts wrt backporting this fix in some form into
> 2.6.32.x and earlier?

It would be very simple to do if anyone really wanted it. Seems the
only people who hit the problem already are happy with their temporary
hack. If anyone is actually hitting this bug, would actually update to
a stable kernel to get the fix, and would like me to send it that way
let me know and I will.

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