• K
    x86/boot: Rename overlapping memcpy() to memmove() · 81b785f3
    Kees Cook 提交于
    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: NLasse Collin <lasse.collin@tukaani.org>
    Signed-off-by: NKees 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.netSigned-off-by: NIngo Molnar <mingo@kernel.org>
    81b785f3
misc.c 9.6 KB