Re: [rfc 3/3] prctl: Add PR_SET_MM codes to tune up mm_struct entires

From: Cyrill Gorcunov
Date: Tue Nov 29 2011 - 15:47:43 EST


On Tue, Nov 29, 2011 at 12:40:57PM -0800, Kees Cook wrote:
>
> Right, if you verify that the addresses are actually inside valid
> userspace vmas, that is likely to be right, though there are probably
> other things I haven't thought of. The trouble is avoiding vdso, stack
> guard page, vsyscall, and anything else that isn't meant for the mm to
> have direct access to.

Yeah, these service area should not be messed up, I'll add such tests.
Thanks a lot for comments, Kees!
--
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/