Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\extable.c Create Date:2022-07-28 09:29:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kernel_text_address

Proto:int kernel_text_address(unsigned long addr)

Type:int

Parameter:

TypeParameterName
unsigned longaddr
122  ret = 1
124  If core_kernel_text(addr) Then Return 1
137  no_rcu = Not _is_watching - see if RCU thinks that the current CPU is not idle* Return true if RCU is watching the running CPU, which means that this* CPU can safely enter RCU read-side critical sections
140  If no_rcu Then rcu_nmi_enter()
143  If is_module_text_address(addr) Then Go to out
145  If is_ftrace_trampoline(addr) Then Go to out
147  If is_kprobe_optinsn_slot(addr) || is_kprobe_insn_slot(addr) Then Go to out
149  If is_bpf_text_address(addr) Then Go to out
151  ret = 0
152  out :
153  If no_rcu Then rcu_nmi_exit()
156  Return ret
Caller
NameDescribe
__kernel_text_address
check_kprobe_address_safe
kprobe_add_ksym_blacklist
jump_label_can_update
populate_error_injection_listLookup and populate the error_injection_list.* For safety reasons we only allow certain functions to be overridden with* bpf_error_injection, so we need to populate the list of the symbols that have* been marked as safe for overriding.