Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\kprobes\core.c Create Date:2022-07-28 08:38:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:We have reentered the kprobe_handler(), since another probe was hit while* within the handler. We save the original kprobes variables and just single* step on the instruction of the new probe without calling any user handlers.

Proto:static int reenter_kprobe(struct kprobe *p, struct pt_regs *regs, struct kprobe_ctlblk *kcb)

Type:int

Parameter:

TypeParameterName
struct kprobe *p
struct pt_regs *regs
struct kprobe_ctlblk *kcb
628  Case kprobe_status == KPROBE_HIT_SSDONE
629  Case kprobe_status == kprobe_status settings
630  Case kprobe_status == KPROBE_HIT_SS
631  kprobes_inc_nmissed_count(p)
632  setup_singlestep(p, regs, kcb, 1)
633  Break
634  Case kprobe_status == KPROBE_REENTER
641  pr_err("Unrecoverable kprobe detected.\n")
642  dump_kprobe(p)
643  BUG()
644  Default
646  WARN_ON(1)
647  Return 0
650  Return 1
Caller
NameDescribe
kprobe_int3_handlerInterrupts are disabled on entry as trap3 is an interrupt gate and they* remain disabled throughout this function.