aboutsummaryrefslogtreecommitdiff
path: root/include/linux/vcodec
diff options
context:
space:
mode:
authorAndrew Bresticker <abrestic@chromium.org>2016-02-15 09:19:49 +0100
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:58:53 +0200
commit689c2c4b7aa0c9b67337fbb241a428ec81636b62 (patch)
treea3c4b8425b9a5c2ac34412b0803bd26132e49247 /include/linux/vcodec
parent61585a7a668ba8dd4bb01ae28c78887524eef70f (diff)
pstore/ram: Use memcpy_fromio() to save old buffer
commit d771fdf94180de2bd811ac90cba75f0f346abf8d upstream. The ramoops buffer may be mapped as either I/O memory or uncached memory. On ARM64, this results in a device-type (strongly-ordered) mapping. Since unnaligned accesses to device-type memory will generate an alignment fault (regardless of whether or not strict alignment checking is enabled), it is not safe to use memcpy(). memcpy_fromio() is guaranteed to only use aligned accesses, so use that instead. Signed-off-by: Andrew Bresticker <abrestic@chromium.org> Signed-off-by: Enric Balletbo Serra <enric.balletbo@collabora.com> Reviewed-by: Puneet Kumar <puneetster@chromium.org> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/vcodec')
0 files changed, 0 insertions, 0 deletions