On Mon, Jan 5, 2015 at 1:03 PM, Linus Torvalds <torva...@linux-foundation.org> wrote: > > Yup, your analysis sounds correct. My completely untested gut feel is > that the problem is that we don't actually return the error from the > expand_stack() call, so then do_anonymous_page() will allow the extra > guard-page access. > > IOW, *maybe* a patch like this. TOTALLY UNTESTED! I may have missed > something, and this may be complete crap.
.. and ti's still untested, but I'm pretty sure it's right - except we should probably also allow an extra page for the stack rlimit (so that the guard page doesn't count towards the limit). Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/