summaryrefslogtreecommitdiffstats
path: root/mm/list_lru.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2017-07-11 00:49:54 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-11 01:32:33 +0200
commit32e4e6d5cbb0c0e427391635991fe65e17797af8 (patch)
tree99fd2fe16b0823ff35bf616f1f3dad661e21cec9 /mm/list_lru.c
parentmm/mmap.c: do not blow on PROT_NONE MAP_FIXED holes in the stack (diff)
downloadlinux-32e4e6d5cbb0c0e427391635991fe65e17797af8.tar.xz
linux-32e4e6d5cbb0c0e427391635991fe65e17797af8.zip
mm/mmap.c: expand_downwards: don't require the gap if !vm_prev
expand_stack(vma) fails if address < stack_guard_gap even if there is no vma->vm_prev. I don't think this makes sense, and we didn't do this before the recent commit 1be7107fbe18 ("mm: larger stack guard gap, between vmas"). We do not need a gap in this case, any address is fine as long as security_mmap_addr() doesn't object. This also simplifies the code, we know that address >= prev->vm_end and thus underflow is not possible. Link: http://lkml.kernel.org/r/20170628175258.GA24881@redhat.com Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Hugh Dickins <hughd@google.com> Cc: Larry Woodman <lwoodman@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/list_lru.c')
0 files changed, 0 insertions, 0 deletions