diff options
author | Masami Hiramatsu <[email protected]> | 2011-10-07 22:31:55 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-10-10 09:05:51 +0200 |
commit | 53a019a951fae849471e4a620948c5f6886bd1a4 (patch) | |
tree | 3c37f0297b628e263f74f146352f39cd5401134a /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 65112dccf8a113737684366349d7f9ec373ddc47 (diff) |
x86: Fix insn decoder for longer instruction
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.
Signed-off-by: Masami Hiramatsu <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Peter Zijlstra <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions