tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/static_call
head: 814cfbceba54e980b1f949a13d04b1909bbe80da
commit: f8cff6dfd839277e169c290ab64cae9b2411e92a [15/34] x86/kprobes: Convert to
text-patching.h
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
reproduce:
git checkout f8cff6dfd839277e169c290ab64cae9b2411e92a
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
arch/x86/kernel/kprobes/core.c: In function 'setup_singlestep':
> arch/x86/kernel/kprobes/core.c:612:19: error:
'INT3_INSN_OPCODED' undeclared (first use in this function); did you mean
'INT3_INSN_OPCODE'?
if (p->opcode == INT3_INSN_OPCODED)
^~~~~~~~~~~~~~~~~
INT3_INSN_OPCODE
arch/x86/kernel/kprobes/core.c:612:19: note: each undeclared identifier is reported
only once for each function it appears in
arch/x86/kernel/kprobes/core.c: In function 'kprobe_int3_handler':
arch/x86/kernel/kprobes/core.c:698:22: error: 'INT3_INSN_OPCODED' undeclared
(first use in this function); did you mean 'INT3_INSN_OPCODE'?
} else if (*addr != INT3_INSN_OPCODED) {
^~~~~~~~~~~~~~~~~
INT3_INSN_OPCODE
vim +612 arch/x86/kernel/kprobes/core.c
580
581 static void setup_singlestep(struct kprobe *p, struct pt_regs *regs,
582 struct kprobe_ctlblk *kcb, int reenter)
583 {
584 if (setup_detour_execution(p, regs, reenter))
585 return;
586
587 #if !defined(CONFIG_PREEMPTION)
588 if (p->ainsn.boostable && !p->post_handler) {
589 /* Boost up -- we can execute copied instructions directly */
590 if (!reenter)
591 reset_current_kprobe();
592 /*
593 * Reentering boosted probe doesn't reset current_kprobe,
594 * nor set current_kprobe, because it doesn't use single
595 * stepping.
596 */
597 regs->ip = (unsigned long)p->ainsn.insn;
598 return;
599 }
600 #endif
601 if (reenter) {
602 save_previous_kprobe(kcb);
603 set_current_kprobe(p, regs, kcb);
604 kcb->kprobe_status = KPROBE_REENTER;
605 } else
606 kcb->kprobe_status = KPROBE_HIT_SS;
607 /* Prepare real single stepping */
608 clear_btf();
609 regs->flags |= X86_EFLAGS_TF;
610 regs->flags &= ~X86_EFLAGS_IF;
611 /* single step inline if the instruction is an int3 */
612 if (p->opcode == INT3_INSN_OPCODED)
613 regs->ip = (unsigned long)p->addr;
614 else
615 regs->ip = (unsigned long)p->ainsn.insn;
616 }
617 NOKPROBE_SYMBOL(setup_singlestep);
618
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation