Snap for 12085157 from 16ec86700b
to android14-6.1-keystone-qcom-release
Change-Id: Ib364ec7ef13ac9b133eeecee7fd406c632fb391a Signed-off-by: Coastguard Worker <android-build-coastguard-worker@google.com>
This commit is contained in:
commit
075ce55534
@ -294,11 +294,14 @@ struct vm_area_struct *get_pad_vma(struct vm_area_struct *vma)
|
||||
/* Adjust the start to begin at the start of the padding section */
|
||||
pad->vm_start = VMA_PAD_START(pad);
|
||||
|
||||
/*
|
||||
* The below modifications to vm_flags don't need mmap write lock,
|
||||
* since, pad does not belong to the VMA tree.
|
||||
*/
|
||||
/* Make the pad vma PROT_NONE */
|
||||
vm_flags_clear(pad, VM_READ|VM_WRITE|VM_EXEC);
|
||||
|
||||
__vm_flags_mod(pad, 0, VM_READ|VM_WRITE|VM_EXEC);
|
||||
/* Remove padding bits */
|
||||
vm_flags_clear(pad, VM_PAD_MASK);
|
||||
__vm_flags_mod(pad, 0, VM_PAD_MASK);
|
||||
|
||||
return pad;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user