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.
Yann Droneaud
ebf2d2689d
perf/x86: Fix copy_from_user_nmi() return if range is not ok
...
Commit 0a196848ca
("perf: Fix arch_perf_out_copy_user default"),
changes copy_from_user_nmi() to return the number of
remaining bytes so that it behave like copy_from_user().
Unfortunately, when the range is outside of the process
memory, the return value is still the number of byte
copied, eg. 0, instead of the remaining bytes.
As all users of copy_from_user_nmi() were modified as
part of commit 0a196848ca
, the function should be
fixed to return the total number of bytes if range is
not correct.
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1435001923-30986-1-git-send-email-ydroneaud@opteya.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
10 years ago
..
boot
The libnvdimm sub-system introduces, in addition to the libnvdimm-core,
10 years ago
configs
kconfig: add xenconfig defconfig helper
10 years ago
crypto
crypto: aesni - fix failing setkey for rfc4106-gcm-aesni
10 years ago
entry
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
ia32
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
include
platform-drivers-x86 for 4.2-2
10 years ago
kernel
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
kvm
KVM: x86: remove data variable from kvm_get_msr_common
10 years ago
lguest
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
lib
perf/x86: Fix copy_from_user_nmi() return if range is not ok
10 years ago
math-emu
x86/fpu: Harmonize FPU register state types
10 years ago
mm
mm/memblock: add extra "flags" to memblock to allow selection of memory based on attribute
10 years ago
net
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
10 years ago
oprofile
x86/asm/entry: Change all 'user_mode_vm()' calls to 'user_mode()'
10 years ago
pci
PCI changes for the v4.2 merge window:
10 years ago
platform
Replace module_init with equivalent device_initcall in non modules.
10 years ago
power
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
purgatory
…
realmode
Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
tools
x86, build: replace Perl script with Shell script
10 years ago
um
Merge branch 'for-linus-4.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml
10 years ago
video
…
xen
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
.gitignore
…
Kbuild
x86/asm/entry, x86/vdso: Move the vDSO code to arch/x86/entry/vdso/
10 years ago
Kconfig
x86: opt into HAVE_COPY_THREAD_TLS, for both 32-bit and 64-bit
10 years ago
Kconfig.cpu
…
Kconfig.debug
Merge branch 'x86-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
10 years ago
Makefile
x86/asm/entry: Move the arch/x86/syscalls/ definitions to arch/x86/entry/syscalls/
10 years ago
Makefile.um
kbuild: use relative path more to include Makefile
10 years ago
Makefile_32.cpu
…