https://github.com/torvalds/linux
Revision 15bbc1b28ff65767922f78c266821cc138b90a47 authored by Marc Zyngier on 17 April 2013, 19:09:09 UTC, committed by Linus Torvalds on 17 April 2013, 19:51:32 UTC
In the very unlikely event where a guest would be foolish enough to
*read* from a write-only cache maintainance register, we end up
with preemption disabled, due to a misplaced get_cpu().

Just move the "is_write" test outside of the critical section.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fca8316
History
Tip revision: 15bbc1b28ff65767922f78c266821cc138b90a47 authored by Marc Zyngier on 17 April 2013, 19:09:09 UTC
ARM: KVM: fix unbalanced get_cpu() in access_dcsw
Tip revision: 15bbc1b
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.0 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 244.0 KB
Makefile -rw-r--r-- 47.0 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top