Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\mmu_context.h Create Date:2022-07-28 05:55:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:arch_vma_access_permitted

Proto:static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, bool write, bool execute, bool foreign)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
boolwrite
boolexecute
boolforeign
335  If execute Then Return true
338  If foreign || We only want to enforce protection keys on the current process* because we effectively have no access to PKRU for other* processes or any way to tell *which * PKRU in a threaded* process we could use Then Return true
340  Return __pkru_allows_pkey(vma_pkey(vma), write)
Caller
NameDescribe
check_vma_flags
vma_permits_fault
handle_mm_faultBy the time we get here, we already hold the mm semaphore* The mmap_sem may have been released depending on flags and our* return value. See filemap_fault() and __lock_page_or_retry().