Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Perform required fix-ups and disable singlestep.* Allow pending signals to take effect.

Proto:static void handle_singlestep(struct uprobe_task *utask, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct uprobe_task *utask
struct pt_regs *regs
2262  err = 0
2264  uprobe = active_uprobe
2265  If state == UTASK_SSTEP_ACK Then err = Called after single-stepping. To avoid the SMP problems that can* occur when we temporarily put back the original opcode to* single-step, we single-stepped a copy of the instruction.* This function prepares to resume execution after the single-step.
2267  Else if state == UTASK_SSTEP_TRAPPED Then This function gets called when XOL instruction either gets trapped or* the thread has a fatal signal. Reset the instruction pointer to its* probed address for the potential restart or for post mortem analysis.
2269  Else WARN_ON_ONCE(1)
2272  put_uprobe(uprobe)
2273  active_uprobe = NULL
2274  state = UTASK_RUNNING
2275  xol_free_insn_slot - If slot was earlier allocated by*@xol_get_insn_slot(), make the slot available for* subsequent requests.
2277  spin_lock_irq( & siglock)
2278  recalc_sigpending()
2279  spin_unlock_irq( & siglock)
2281  If Value for the false possibility is greater at compile time(err) Then
2282  uprobe_warn(current process, "execute the probed insn, sending SIGILL.")
2283  force_sig(SIGILL)
Caller
NameDescribe
uprobe_notify_resumeOn breakpoint hit, breakpoint notifier sets the TIF_UPROBE flag and* allows the thread to return from interrupt. After that handle_swbp()* sets utask->active_uprobe.* On singlestep exception, singlestep notifier sets the TIF_UPROBE flag