disarm_kprobe(p, regs); 
arch_disarm_kprobe(p); regs->rip = (unsigned long)p->addr; 
int kprobe_handler(struct pt_regs *regs){	struct kprobe *p;	int ret = 0;	kprobe_opcode_t *addr = (kprobe_opcode_t *)(regs->rip - sizeof(kprobe_opcode_t));	/* We're in an interrupt, but this is clear and BUG()-safe. */	preempt_disable();	/* Check we're not actually recursing */	if (kprobe_running()) {		/* We *are* holding lock here, so this is safe.		   Disarm the probe we just hit, and ignore it. */		p = get_kprobe(addr);		if (p) {			if (kprobe_status == KPROBE_HIT_SS) {				regs->eflags &= ~TF_MASK;				regs->eflags |= kprobe_saved_rflags;				unlock_kprobes();				goto no_kprobe;			}			disarm_kprobe(p, regs);			ret = 1;		} else {			p = current_kprobe;			if (p->break_handler && p->break_handler(p, regs)) {				goto ss_probe;			}		}		/* If it's not ours, can't be delete race, (we hold lock). */		goto no_kprobe;	}	lock_kprobes();	p = get_kprobe(addr);	if (!p) {		unlock_kprobes();		if (*addr != BREAKPOINT_INSTRUCTION) {			/*			 * The breakpoint instruction was removed right			 * after we hit it.  Another cpu has removed			 * either a probepoint or a debugger breakpoint			 * at this address.  In either case, no further			 * handling of this interrupt is appropriate.			 */			ret = 1;		}		/* Not one of ours: let kernel handle it */		goto no_kprobe;	}	kprobe_status = KPROBE_HIT_ACTIVE;	current_kprobe = p;	kprobe_saved_rflags = kprobe_old_rflags	    = (regs->eflags & (TF_MASK | IF_MASK));	if (is_IF_modifier(p->ainsn.insn))		kprobe_saved_rflags &= ~IF_MASK;	if (p->pre_handler && p->pre_handler(p, regs))		/* handler has already set things up, so skip ss setup */		return 1;ss_probe:	prepare_singlestep(p, regs);	kprobe_status = KPROBE_HIT_SS;	return 1;no_kprobe:	preempt_enable_no_resched();	return ret;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/7e1048b11c5afe79aac46a42e3ccec86b8365c6d/kprobes.c/buggy/arch/x86_64/kernel/kprobes.c