Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f79ff0c authored by Nicolas Pitre's avatar Nicolas Pitre
Browse files

kprobes/arm: fix cache flush address for instruction stub



It is more useful to flush the cache with the actual buffer address
rather than the address containing a pointer to the buffer.

Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
Acked-by: default avatarLennert Buytenhek <buytenh@marvell.com>
parent 563307b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p)
			return -ENOMEM;
		for (is = 0; is < MAX_INSN_SIZE; ++is)
			p->ainsn.insn[is] = tmp_insn[is];
		flush_insns(&p->ainsn.insn, MAX_INSN_SIZE);
		flush_insns(p->ainsn.insn, MAX_INSN_SIZE);
		break;

	case INSN_GOOD_NO_SLOT:	/* instruction doesn't need insn slot */