2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/arch/arm64
Michael S. Tsirkin 4cad67fca3 arm/arm64: KVM: Fix ioctl error handling
Calling return copy_to_user(...) in an ioctl will not
do the right thing if there's a pagefault:
copy_to_user returns the number of bytes not copied
in this case.

Fix up kvm to do
	return copy_to_user(...)) ?  -EFAULT : 0;

everywhere.

Cc: stable@vger.kernel.org
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
2016-02-29 09:56:40 +00:00
..
boot ARM: SoC support for Tegra platforms for v4.5 2016-01-22 17:30:52 -08:00
configs Third Round of Renesas ARM64 Based SoC Defconfig Updates for v4.5 2015-12-22 12:50:29 -08:00
crypto arm64: crypto: reduce priority of core AES cipher 2015-11-18 12:09:08 +00:00
include arm64: KVM: Configure TCR_EL2.PS at runtime 2016-02-11 13:16:47 +00:00
kernel arm64: insn: remove BUG_ON from codegen 2016-01-17 19:15:26 -05:00
kvm arm/arm64: KVM: Fix ioctl error handling 2016-02-29 09:56:40 +00:00
lib arm64: add KASAN support 2015-10-12 17:46:36 +01:00
mm arm64, thp: remove infrastructure for handling splitting PMDs 2016-01-15 17:56:32 -08:00
net arm64: bpf: add extra pass to handle faulty codegen 2016-01-17 19:15:26 -05:00
xen xen/arm: introduce HYPERVISOR_platform_op on arm and arm64 2015-12-21 14:40:56 +00:00
Kconfig dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
Kconfig.debug arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug 2016-01-09 06:30:49 -08:00
Kconfig.platforms ARM: SoC support for Tegra platforms for v4.5 2016-01-22 17:30:52 -08:00
Makefile arm64 updates for 4.4: 2015-11-04 14:47:13 -08:00