函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-27 15:05:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static bool valid_vma(struct vm_area_struct *vma, bool is_register)

返回类型:bool

参数:

类型参数名称
struct vm_area_struct *vma
boolis_register
123  flags等于Huge TLB Page VM 按位或VM_MAYEXEC按位或VM_MAYSHARE
125  如果is_registerflags或等于VM_WRITE
128  返回:File we map to (can be NULL). Flags, see mm.h. 按位与flags的值恒等于VM_MAYEXEC
调用者
名称描述
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