linux/arch
Will Deacon f967dfcedb KVM: ARM/arm64: avoid returning negative error code as bool
commit 18d457661f upstream.

is_valid_cache returns true if the specified cache is valid.
Unfortunately, if the parameter passed it out of range, we return
-ENOENT, which ends up as true leading to potential hilarity.

This patch returns false on the failure path instead.

Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-06-29 12:25:38 -07:00
..
alpha vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
arc ARC: signal handling robustify 2015-05-13 05:17:00 -07:00
arm KVM: ARM/arm64: avoid returning negative error code as bool 2015-06-29 12:25:38 -07:00
arm64 KVM: ARM/arm64: avoid returning negative error code as bool 2015-06-29 12:25:38 -07:00
avr32 vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
blackfin Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2014-01-31 09:31:14 -08:00
c6x C6x: time: Ensure consistency in __init 2015-05-06 21:59:21 +02:00
cris vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
frv vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
hexagon Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-01-25 11:17:34 -08:00
ia64 vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
m32r vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
m68k vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
metag vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
microblaze vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
mips MIPS: Fix enabling of DEBUG_STACKOVERFLOW 2015-06-22 17:01:21 -07:00
mn10300 vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
openrisc vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
parisc vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
powerpc powerpc: Align TOC to 256 bytes 2015-06-06 08:19:35 -07:00
s390 crypto: s390/ghash - Fix incorrect ghash icv buffer handling. 2015-06-06 08:19:37 -07:00
score vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
sh nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:59:21 +02:00
sparc nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:59:21 +02:00
tile vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
um vm: add VM_FAULT_SIGSEGV handling support 2015-04-29 10:31:55 +02:00
unicore32 nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 21:59:21 +02:00
x86 x86/asm/irq: Stop relying on magic JMP behavior for early_idt_handlers 2015-06-22 17:01:21 -07:00
xtensa xtensa: ISS: fix locking in TAP network adapter 2015-05-06 21:59:18 +02:00
.gitignore
Kconfig stackprotector: Introduce CONFIG_CC_STACKPROTECTOR_STRONG 2013-12-20 09:38:40 +01:00