Commit f76e4f08 authored by Russell King's avatar Russell King Committed by Sami Tolvanen
Browse files

UPSTREAM: ARM: fix uaccess_with_memcpy() with SW_DOMAIN_PAN



The uaccess_with_memcpy() code is currently incompatible with the SW
PAN code: it takes locks within the region that we've changed the DACR,
potentially sleeping as a result.  As we do not save and restore the
DACR across co-operative sleep events, can lead to an incorrect DACR
value later in this code path.

Reported-by: default avatarPeter Rosin <peda@axentia.se>
Tested-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>

Change-Id: Iaa6ef00ad4d084eb24b9941a97ffe201635de003
(cherry picked from commit c014953d)
Signed-off-by: default avatarSami Tolvanen <samitolvanen@google.com>
parent 3552a17a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment