lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86: Fix insn decoder for longer instruction

* Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> 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


\
 
 \ /
  Last update: 2011-10-10 09:09    [W:0.185 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site