mm: mmap: Merge vma after call_mmap() if possible
Quoted 8 lines · Andrew Morton
Quoted 4 lines · On Tue, 14 Jul 2020 11:07:44 +0800 linmiaohe <[email protected]> wrote:
The
vm_flagsmay be changed aftercall_mmap()because drivers may set some flags for their own purpose. As a result, we failed to merge the adjacent vma due to the differentvm_flagsas userspace can't pass in the same one. Try to merge vma aftercall_mmap()to fix this issue.Which drivers do this?
I searched the code and I see many drivers change the vm_flags, such as aio_ring_mmap set VM_DONTEXPAND and amdgpu_mmap , binder_mmap also change the vm_flags , and so on...
Thanks.