[lkml]   [2015]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [2/3] mm: fix up some user-visible effects of the stack guard page
On Mon, Jan 5, 2015 at 1:03 PM, Linus Torvalds
<> 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).


 \ /
  Last update: 2015-01-05 22:41    [W:0.059 / U:9.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site