]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: Reduce chance of upgrading mmap_lock in v6.4-rc5_stack_v2
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 16 Jun 2023 14:06:30 +0000 (10:06 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 16 Jun 2023 20:39:43 +0000 (16:39 -0400)
commit8b5fe9ab1fc0549b7ab1534344b2eb63849f70d9
treeb18fc223be37e6624b2774dc0675105e72183850
parent896235bcf1a8fadc3d1e51b9e2e2b9c182c89f0b
mm: Reduce chance of upgrading mmap_lock in

Attempt to expand the stack with just the read lock before upgrading to
the write lock and falling back to find_extend_vma_locked().

Make all other calls to find_extend_vma() fail if the write lock is
required.

Co-Developed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
fs/binfmt_elf.c
fs/exec.c
include/linux/mm.h
mm/memory.c
mm/mmap.c
mm/nommu.c