]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: Rename overlapping memcpy() to memmove()
authorKees Cook <keescook@chromium.org>
Tue, 26 Apr 2016 21:46:06 +0000 (14:46 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 28 Apr 2016 09:02:29 +0000 (11:02 +0200)
commit1a1cfe605719cd9d6c52b481e3ac7c9034bd32e5
treee8eadb4bb48b22c42a93cf626b60cb72ce95b02e
parent1c5687453fce40dc74287045533d019627fb12cd
x86/boot: Rename overlapping memcpy() to memmove()

Instead of having non-standard memcpy() behavior, explicitly call the new
function memmove(), make it available to the decompressors, and switch
the two overlap cases (screen scrolling and ELF parsing) to use memmove().
Additionally documents the purpose of compressed/string.c.

Suggested-by: Lasse Collin <lasse.collin@tukaani.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: H.J. Lu <hjl.tools@gmail.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/20160426214606.GA5758@www.outflux.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/boot/compressed/misc.c
arch/x86/boot/compressed/string.c