-
由 Andrew Bresticker 提交于
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: NAndrew Bresticker <abrestic@chromium.org> Signed-off-by: NEnric Balletbo Serra <enric.balletbo@collabora.com> Reviewed-by: NPuneet Kumar <puneetster@chromium.org> Signed-off-by: NKees Cook <keescook@chromium.org> Cc: stable@vger.kernel.org
d771fdf9