(2014/11/18 15:19), Wang Nan wrote:
> diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c
> index 6d64420..f114a3f 100644
> --- a/arch/arm/kernel/kprobes.c
> +++ b/arch/arm/kernel/kprobes.c
> @@ -61,6 +61,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
>       kprobe_decode_insn_t *decode_insn;
>       const union decode_action *actions;
>       int is;
> +     const struct decode_checker **checkers;
>  
>       if (in_exception_text(addr))
>               return -EINVAL;
> @@ -74,9 +75,11 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
>               insn = __opcode_thumb32_compose(insn, inst2);
>               decode_insn = thumb32_probes_decode_insn;
>               actions = kprobes_t32_actions;
> +             checkers = kprobes_t32_checkers;
>       } else {
>               decode_insn = thumb16_probes_decode_insn;
>               actions = kprobes_t16_actions;
> +             checkers = kprobes_t16_checkers;
>       }
>  #else /* !CONFIG_THUMB2_KERNEL */
>       thumb = false;
> @@ -85,12 +88,13 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
>       insn = __mem_to_opcode_arm(*p->addr);
>       decode_insn = arm_probes_decode_insn;
>       actions = kprobes_arm_actions;
> +     checkers = kprobes_arm_checkers;
>  #endif
>  
>       p->opcode = insn;
>       p->ainsn.insn = tmp_insn;
>  
> -     switch ((*decode_insn)(insn, &p->ainsn, true, actions)) {
> +     switch ((*decode_insn)(insn, &p->ainsn, true, actions, NULL)) {

BTW, even if checkers always empty at this point, we should pass the checkers 
to this function.

Thank you,


-- 
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Research Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: [email protected]


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to