The s390 architecture can execute code on kmalloc/vmalloc memory.
No need for the __ARCH_WANT_KPROBES_INSN_SLOT detour.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
 #include <linux/ptrace.h>
 #include <linux/percpu.h>
 
-#define  __ARCH_WANT_KPROBES_INSN_SLOT
 struct pt_regs;
 struct kprobe;
 
 /* Architecture specific copy of original instruction */
 struct arch_specific_insn {
        /* copy of original instruction */
-       kprobe_opcode_t *insn;
+       kprobe_opcode_t insn[MAX_INSN_SIZE];
 };
 
 struct prev_kprobe {
 
        if (is_prohibited_opcode((kprobe_opcode_t *) p->addr))
                return -EINVAL;
 
-       /* Use the get_insn_slot() facility for correctness */
-       if (!(p->ainsn.insn = get_insn_slot()))
-               return -ENOMEM;
-
        p->opcode = *p->addr;
        memcpy(p->ainsn.insn, p->addr, ((p->opcode >> 14) + 3) & -2);
 
 
 void __kprobes arch_remove_kprobe(struct kprobe *p)
 {
-       if (p->ainsn.insn) {
-               free_insn_slot(p->ainsn.insn, 0);
-               p->ainsn.insn = NULL;
-       }
 }
 
 static void __kprobes enable_singlestep(struct kprobe_ctlblk *kcb,