Revision 1713e5aa05fff3951e747548b373bd2c81be4e7a authored by Marc Zyngier on 16 September 2015, 09:54:37 UTC, committed by Marc Zyngier on 16 September 2015, 13:50:04 UTC
When setting the debug register from userspace, make sure that copy_from_user() is called with its parameters in the expected order. It otherwise doesn't do what you think. Fixes: 84e690bfbed1 ("KVM: arm64: introduce vcpu->arch.debug_ptr") Reported-by: Peter Maydell <peter.maydell@linaro.org> Cc: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 43297dd
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 3.1 KB |
Makefile | -rw-r--r-- | 577 bytes |
associola.c | -rw-r--r-- | 48.0 KB |
auth.c | -rw-r--r-- | 23.9 KB |
bind_addr.c | -rw-r--r-- | 13.7 KB |
chunk.c | -rw-r--r-- | 9.5 KB |
debug.c | -rw-r--r-- | 4.2 KB |
endpointola.c | -rw-r--r-- | 13.0 KB |
input.c | -rw-r--r-- | 30.8 KB |
inqueue.c | -rw-r--r-- | 6.2 KB |
ipv6.c | -rw-r--r-- | 28.4 KB |
objcnt.c | -rw-r--r-- | 4.0 KB |
output.c | -rw-r--r-- | 22.3 KB |
outqueue.c | -rw-r--r-- | 52.0 KB |
primitive.c | -rw-r--r-- | 7.3 KB |
probe.c | -rw-r--r-- | 5.9 KB |
proc.c | -rw-r--r-- | 14.4 KB |
protocol.c | -rw-r--r-- | 41.5 KB |
sm_make_chunk.c | -rw-r--r-- | 102.1 KB |
sm_sideeffect.c | -rw-r--r-- | 48.9 KB |
sm_statefuns.c | -rw-r--r-- | 197.0 KB |
sm_statetable.c | -rw-r--r-- | 31.2 KB |
socket.c | -rw-r--r-- | 207.8 KB |
ssnmap.c | -rw-r--r-- | 3.1 KB |
sysctl.c | -rw-r--r-- | 12.3 KB |
transport.c | -rw-r--r-- | 19.7 KB |
tsnmap.c | -rw-r--r-- | 9.5 KB |
ulpevent.c | -rw-r--r-- | 29.1 KB |
ulpqueue.c | -rw-r--r-- | 29.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...