android_kernel_samsung_msm8976/fs/pstore
Andrew Bresticker f39176835c 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>
2019-07-27 21:42:50 +02:00
..
ftrace.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
inode.c fs: push sync_filesystem() down to the file system's remount_fs() 2015-09-16 18:20:11 +05:30
internal.h Import latest Samsung release 2017-04-18 03:43:52 +02:00
Kconfig Import latest Samsung release 2017-04-18 03:43:52 +02:00
Makefile Import latest Samsung release 2017-04-18 03:43:52 +02:00
platform.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
pmsg.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ram.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ram_core.c pstore/ram: Use memcpy_fromio() to save old buffer 2019-07-27 21:42:50 +02:00
ss_platform_log.c Import latest Samsung release 2017-04-18 03:43:52 +02:00