Re: [PATCH] Fix mlockall for PROT_NONE mappings

From: Linus Torvalds
Date: Thu Oct 09 2003 - 10:20:02 EST



On 9 Oct 2003, Andi Kleen wrote:
>
> Ok. But what is with mappings that have MAY_READ not set ?
> [not 100% this cannot happen]

Well, PROT_NONE will not have MAY_READ set, and no, they won't get locked
into memory.

But neither did they get locked in before either, so it's not like it's a
new issue. Now we'd just ignore them nicely rather than abort the
lockall(). Hmm?

Linus

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