Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-28 13:44:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:valid_vma: Verify if the specified vma is an executable vma* Relax restrictions while unregistering: vm_flags might have* changed after breakpoint was inserted

Proto:static bool valid_vma(struct vm_area_struct *vma, bool is_register)

Type:bool

Parameter:

TypeParameterName
struct vm_area_struct *vma
boolis_register
123  flags = Huge TLB Page VM | VM_MAYEXEC | VM_MAYSHARE
125  If is_register Then flags |= VM_WRITE
128  Return File we map to (can be NULL). && (Flags, see mm.h. & flags) == VM_MAYEXEC
Caller
NameDescribe
build_map_info
register_for_each_vma
unapply_uprobe
uprobe_mmapCalled from mmap_region/vma_adjust with mm->mmap_sem acquired.* Currently we ignore all errors and always return 0, the callers* can't handle the failure anyway.
uprobe_munmapCalled in context of a munmap of a vma.
mmf_recalc_uprobes
find_active_uprobe