Re: [patch] mm: recheck lock rlim after f_op->mmap() method

From: Christoph Hellwig
Date: Fri Jul 13 2007 - 05:54:01 EST


On Wed, Jul 11, 2007 at 07:03:36PM +0100, Hugh Dickins wrote:
> Well, they'll get what they deserve. I'm not convinced Dmitry's right
> about their nopage; and I'm not going to waste any more time working
> out ways to protect ourselves from them. Let's stick with the mspec.

I'm not just concerned about the ati driver. There's a lot of driver
that do or did really stupid stuff with mmap, including in-tree drivers.
the actual mmap() code is not actually a fastpath so additional sanity
checks can't hurt. It might not be worth the effort for ->nopage, though.

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