Re: [PATCH 07/12] perf_events: add LBR software filter support for Intel X86

From: Andi Kleen
Date: Thu Oct 06 2011 - 11:32:33 EST


> + kernel_insn_init(&insn, kaddr);
> + insn_get_opcode(&insn);

This makes me uncomfortable. AFAIK that's the first use of the opcode
decoder being used directly for user space. It has a quite large attack
surface. Who says it cannot be exploited?

-Andi
--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/