Thread (43 messages) 43 messages, 3 authors, 2021-04-26

Re: [PATCH v25 21/30] mm: Re-introduce vm_flags to do_mmap()

From: Yu, Yu-cheng <hidden>
Date: 2021-04-23 16:00:11
Also in: linux-api, linux-arch, linux-mm, lkml

On 4/23/2021 3:31 AM, Kirill A. Shutemov wrote:
On Thu, Apr 15, 2021 at 03:14:10PM -0700, Yu-cheng Yu wrote:
quoted
There was no more caller passing vm_flags to do_mmap(), and vm_flags was
removed from the function's input by:

     commit 45e55300f114 ("mm: remove unnecessary wrapper function do_mmap_pgoff()").

There is a new user now.  Shadow stack allocation passes VM_SHADOW_STACK to
do_mmap().  Thus, re-introduce vm_flags to do_mmap().

Signed-off-by: Yu-cheng Yu <redacted>
Reviewed-by: Peter Collingbourne <redacted>
Reviewed-by: Kees Cook <redacted>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: linux-mm@kvack.org
Reviewed-by: Kirill A. Shutemov <redacted>
Thanks for reviewing.

Yu-cheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help