1
0
Files
linux/arch/arm/kernel
Mark Rutland b60d5db690 ARM: 7786/1: hyp: fix macro parameterisation
Currently, compare_cpu_mode_with_primary uses a mixture of macro
arguments and hardcoded registers, and does so incorrectly, as it
stores (__boot_cpu_mode_offset | BOOT_CPU_MODE_MISMATCH) to
(__boot_cpu_mode + &__boot_cpu_mode_offset), which could corrupt an
arbitrary portion of memory.

This patch fixes up compare_cpu_mode_with_primary to use the macro
arguments, correctly updating __boot_cpu_mode.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Dave Martin <Dave.Martin@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <cdall@cs.columbia.edu>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-07-22 14:30:34 +01:00
..
2013-03-03 22:54:18 +00:00
2012-03-28 18:30:01 +01:00
2012-07-01 21:59:19 +08:00
2012-03-24 09:38:56 +00:00
2013-06-03 14:20:18 -07:00
2013-05-21 14:24:11 +00:00
2013-05-05 00:07:22 -04:00
2013-06-03 14:20:18 -07:00