diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2016-02-15 11:19:49 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2016-09-09 01:01:12 +0300 |
commit | d771fdf94180de2bd811ac90cba75f0f346abf8d (patch) | |
tree | 35ed27e1a7667a2e651b6f29c4754bc582547ae2 /arch/powerpc/include/asm/pnv-pci.h | |
parent | 7e75678d23167c2527e655658a8ef36a36c8b4d9 (diff) | |
download | linux-d771fdf94180de2bd811ac90cba75f0f346abf8d.tar.xz |
pstore/ram: Use memcpy_fromio() to save old buffer
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'arch/powerpc/include/asm/pnv-pci.h')
0 files changed, 0 insertions, 0 deletions