Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\kprobes.c Create Date:2022-07-28 11:34:51
Last Modify:2022-05-22 18:14:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check given address is on the page of kprobe instruction slots.* This will be used for checking whether the address on a stack* is on a text area or not.

Proto:bool __is_insn_slot_addr(struct kprobe_insn_cache *c, unsigned long addr)

Type:bool

Parameter:

TypeParameterName
struct kprobe_insn_cache *c
unsigned longaddr
278  bool ret = false
280  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
282  If addr >= Page of instruction slots && addr < Page of instruction slots + PAGE_SIZE Then
284  ret = true
285  Break
288  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
290  Return ret
Caller
NameDescribe
is_kprobe_insn_slot
is_kprobe_optinsn_slot