diff --git a/[refs] b/[refs] index 20a47a21eeae..ef27eeee4939 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 08a036d583409e3517e3d15b7478d029b25f2cf2 +refs/heads/master: 936cf251787be41833afe2a1e44fbd5fb2adbdb6 diff --git a/trunk/arch/sparc/kernel/kprobes.c b/trunk/arch/sparc/kernel/kprobes.c index 3bc6527c95af..6716584e48ab 100644 --- a/trunk/arch/sparc/kernel/kprobes.c +++ b/trunk/arch/sparc/kernel/kprobes.c @@ -46,6 +46,9 @@ struct kretprobe_blackpoint kretprobe_blacklist[] = {{NULL, NULL}}; int __kprobes arch_prepare_kprobe(struct kprobe *p) { + if ((unsigned long) p->addr & 0x3UL) + return -EILSEQ; + p->ainsn.insn[0] = *p->addr; flushi(&p->ainsn.insn[0]);