Re: [PATCH v2] x86/boot: Rename overlapping memcpy() to memmove()

From: Ingo Molnar
Date: Thu Apr 28 2016 - 05:04:38 EST



* Kees Cook <keescook@xxxxxxxxxxxx> wrote:

> +void *memcpy(void *dest, const void *src, size_t n)

btw., if there's any doubt about other overlapping uses, we could add this to
memcpy():

WARN_ON_ONCE(dest > src && dest-src < n);

or so? Does printk() work so early on?

Thanks,

Ingo