You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Masami Hiramatsu
53a019a951
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 <masami.hiramatsu.pt@hitachi.com>
Cc: Stephane Eranian <eranian@google.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: acme@redhat.com
Cc: ming.m.lin@intel.com
Cc: robert.richter@amd.com
Cc: ravitillo@lbl.gov
Cc: yrl.pp-manager.tt@hitachi.com
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20111007133155.10933.58577.stgit@localhost.localdomain
Signed-off-by: Ingo Molnar <mingo@elte.hu>
14 years ago
..
.gitignore
…
Makefile
Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
14 years ago
atomic64_32.c
atomic: use <linux/atomic.h>
14 years ago
atomic64_386_32.S
x86: Use {push,pop}_cfi in more places
14 years ago
atomic64_cx8_32.S
x86: Use {push,pop}_cfi in more places
14 years ago
cache-smp.c
x86, lib: Add wbinvd smp helpers
15 years ago
checksum_32.S
x86: Use {push,pop}_cfi in more places
14 years ago
clear_page_64.S
x86, mem: clear_page_64.S: Support clear_page() with enhanced REP MOVSB/STOSB
14 years ago
cmpxchg.c
x86, asm: Merge cmpxchg_486_u64() and cmpxchg8b_emu()
15 years ago
cmpxchg8b_emu.S
…
cmpxchg16b_emu.S
percpu: Omit segment prefix in the UP case for cmpxchg_double
14 years ago
copy_page_64.S
x86: Make alternative instruction pointers relative
14 years ago
copy_user_64.S
x86, 64-bit: Fix copy_[to/from]_user() checks for the userspace address limit
14 years ago
copy_user_nocache_64.S
…
csum-copy_64.S
x86: Clean up csum-copy_64.S a bit
14 years ago
csum-partial_64.c
x86: Fix common misspellings
14 years ago
csum-wrappers_64.c
…
delay.c
x86: udelay: Use this_cpu_read to avoid address calculation
14 years ago
getuser.S
…
inat.c
…
insn.c
x86: Fix insn decoder for longer instruction
14 years ago
iomap_copy_64.S
…
memcpy_32.c
x86, mem: Optimize memmove for small size and unaligned cases
15 years ago
memcpy_64.S
Merge branches 'x86-apic-for-linus', 'x86-asm-for-linus' and 'x86-cleanups-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
14 years ago
memmove_64.S
x86: Make alternative instruction pointers relative
14 years ago
memset_64.S
x86, mem: memset_64.S: Optimize memset by enhanced REP MOVSB/STOSB
14 years ago
mmx_32.c
…
msr-reg-export.c
…
msr-reg.S
…
msr-smp.c
x86, msr: msrs_alloc/free for CONFIG_SMP=n
15 years ago
msr.c
x86, msr: msrs_alloc/free for CONFIG_SMP=n
15 years ago
putuser.S
…
rwlock.S
x86: Fix write lock scalability 64-bit issue
14 years ago
rwsem.S
x86: Unify rwsem assembly implementation
14 years ago
string_32.c
…
strstr_32.c
…
thunk_32.S
x86: Remove unused bits from lib/thunk_*.S
14 years ago
thunk_64.S
x86: Fix write lock scalability 64-bit issue
14 years ago
usercopy.c
x86, perf: Make copy_from_user_nmi() a library function
14 years ago
usercopy_32.c
…
usercopy_64.c
…
x86-opcode-map.txt
…