Re: [PATCH] x86: Fix insn decoder for longer instruction

From: Ingo Molnar
Date: Mon Oct 10 2011 - 03:06:32 EST



* Masami Hiramatsu <masami.hiramatsu.pt@xxxxxxxxxxx> wrote:

> Fix x86 insn decoder for hardening against invalid length
> instructions. This adds length checkings for each byte-read
> site and if it exceeds MAX_INSN_SIZE, returns immediately.
> This can happen when decoding user-space binary.
>
> Caller can check whether it happened by checking insn.*.got
> member is set or not.

Thanks.

We really need the /dev/urandom based build-time tester as well.

Thanks,

Ingo
--
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/