alistair23-linux/arch/x86/lib
Stephane Eranian 25f4298582 perf/x86: Fix broken LBR fixup code
I noticed that the LBR fixups were not working anymore
on programs where they used to. I tracked this down to
a recent change to copy_from_user_nmi():

 db0dc75d64 ("perf/x86: Check user address explicitly in copy_from_user_nmi()")

This commit added a call to __range_not_ok() to the
copy_from_user_nmi() routine. The problem is that the logic
of the test must be reversed. __range_not_ok() returns 0 if the
range is VALID. We want to return early from copy_from_user_nmi()
if the range is NOT valid.

Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Arun Sharma <asharma@fb.com>
Link: http://lkml.kernel.org/r/20120611134426.GA7542@quad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2012-06-13 15:00:28 +02:00
..
.gitignore
atomic64_32.c
atomic64_386_32.S
atomic64_cx8_32.S
cache-smp.c
checksum_32.S x86, extable: Remove open-coded exception table entries in arch/x86/lib/checksum_32.S 2012-04-20 13:51:38 -07:00
clear_page_64.S
cmpxchg.c
cmpxchg8b_emu.S
cmpxchg16b_emu.S
copy_page_64.S
copy_user_64.S x86, extable: Remove open-coded exception table entries in arch/x86/lib/copy_user_64.S 2012-04-20 13:51:38 -07:00
copy_user_nocache_64.S x86, extable: Remove open-coded exception table entries in arch/x86/lib/copy_user_nocache_64.S 2012-04-20 13:51:38 -07:00
csum-copy_64.S x86, extable: Remove open-coded exception table entries in arch/x86/lib/csum-copy_64.S 2012-04-20 13:51:39 -07:00
csum-partial_64.c
csum-wrappers_64.c
delay.c
getuser.S x86, extable: Remove open-coded exception table entries in arch/x86/lib/getuser.S 2012-04-20 13:51:39 -07:00
inat.c
insn.c x86: Handle failures of parsing immediate operands in the instruction decoder 2012-04-16 08:56:11 +02:00
iomap_copy_64.S
Makefile
memcpy_32.c
memcpy_64.S
memmove_64.S
memset_64.S
mmx_32.c
msr-reg-export.c
msr-reg.S
msr-smp.c
msr.c
putuser.S x86, extable: Remove open-coded exception table entries in arch/x86/lib/putuser.S 2012-04-20 13:51:39 -07:00
rwlock.S
rwsem.S
string_32.c
strstr_32.c
thunk_32.S
thunk_64.S
usercopy.c perf/x86: Fix broken LBR fixup code 2012-06-13 15:00:28 +02:00
usercopy_32.c x86: use the new generic strnlen_user() function 2012-05-26 11:33:54 -07:00
usercopy_64.c x86: use the new generic strnlen_user() function 2012-05-26 11:33:54 -07:00
x86-opcode-map.txt x86/decoder: Fix bsr/bsf/jmpe decoding with operand-size prefix 2012-06-06 08:54:18 +02:00