Thread (30 messages) 30 messages, 5 authors, 2013-02-04

[PATCHv5 11/16] arm64: arm_generic: prevent reading stale time

From: catalin.marinas@arm.com (Catalin Marinas)
Date: 2013-01-31 15:36:47

On Thu, Jan 31, 2013 at 12:15:34PM +0000, Mark Rutland wrote:
Currently arch_counter_get_cnt{p,v}ct can be speculated, allowing for
stale time values to be read. This could be problematic for the delay
loop and other sensitive functions, as the time delta could jump around
unexpectedly.

This patch adds isbs to arch_counter_get_cnt{p,v}ct, preventing this
possibility.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help