Message ID | 20190205152806.20340-1-mathieu.desnoyers@efficios.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Commit | 0ac569bf6a7983c0c5747d6df8db9dc05bc92b6c |
Headers | show |
Series | [1/1] Fix: arm: kprobes: optimized kprobes illegal instruction | expand |
diff --git a/arch/arm/probes/kprobes/opt-arm.c b/arch/arm/probes/kprobes/opt-arm.c index 2c118a6ab358..0dc23fc227ed 100644 --- a/arch/arm/probes/kprobes/opt-arm.c +++ b/arch/arm/probes/kprobes/opt-arm.c @@ -247,7 +247,7 @@ int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *or } /* Copy arch-dep-instance from template. */ - memcpy(code, (unsigned char *)optprobe_template_entry, + memcpy(code, (unsigned long *)&optprobe_template_entry, TMPL_END_IDX * sizeof(kprobe_opcode_t)); /* Adjust buffer according to instruction. */