[PATCH v5 0/2] x86/boot: Warn on future overlapping memcpy() use

From: Kees Cook
Date: Mon May 02 2016 - 18:51:18 EST

This attempts to bring some sanity to how warn() and error() are defined
so that they can be used by misc.c, kaslr.c, and string.c. After that,
we add a warn() to memcpy and call memmove on detected overlaps.


- split out warn/error into error.c/error.h
- use __memcpy not memcpy since we've already done the check.
- call memmove in addition to doing the warning
- warn about overlapping region