Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:is_trap_at_addr

Proto:static int is_trap_at_addr(struct mm_struct *mm, unsigned long vaddr)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
unsigned longvaddr
2017  These routines enable/disable the pagefault handler. If disabled, it will* not take any locks and go straight to the fixup table.* User access methods will not sleep when called from a pagefault_disabled()* environment.
2018  result = Get a simple variable from user space, with less checking(opcode, (uprobe_opcode_t__user * )vaddr)
2019  pagefault_enable()
2021  If Value is more likely to compile time(result == 0) Then Go to out
2030  result = get_user_pages_remote(NULL, mm, vaddr, 1, get_user_pages read/write w/o permission , & page, NULL, NULL)
2032  If result < 0 Then Return result
2035  copy_from_page(page, vaddr, & opcode, UPROBE_SWBP_INSN_SIZE)
2036  put_page(page)
2037  out :
2039  Return s_trap_insn - check if instruction is breakpoint instruction
Caller
NameDescribe
find_active_uprobe