Re: [PATCH v23 21/28] mm: Re-introduce vm_flags to do_mmap()

2021-03-18 Thread Borislav Petkov
On Thu, Mar 18, 2021 at 08:59:28AM -0700, Yu, Yu-cheng wrote: > Right, do_mmap_pgoff() was removed by commit 45e55300f114. This patch does > not add back the wrapper. Instead, add vm_flags to do_mmap(). Please advice > if I misunderstand the question. I'm just wondering why you even need to

Re: [PATCH v23 21/28] mm: Re-introduce vm_flags to do_mmap()

2021-03-18 Thread Yu, Yu-cheng
On 3/18/2021 4:42 AM, Borislav Petkov wrote: On Tue, Mar 16, 2021 at 08:10:47AM -0700, Yu-cheng Yu wrote: 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

Re: [PATCH v23 21/28] mm: Re-introduce vm_flags to do_mmap()

2021-03-18 Thread Borislav Petkov
On Tue, Mar 16, 2021 at 08:10:47AM -0700, Yu-cheng Yu wrote: > 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.

[PATCH v23 21/28] mm: Re-introduce vm_flags to do_mmap()

2021-03-16 Thread Yu-cheng Yu
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_SHSTK to do_mmap(). Re-introduce