# git rev-parse -q --verify 8b909e3548706cbebc0a676067b81aadda57f47e^{commit} 8b909e3548706cbebc0a676067b81aadda57f47e already have revision, skipping fetch # git checkout -q -f -B kisskb 8b909e3548706cbebc0a676067b81aadda57f47e # git clean -qxdf # < git log -1 # commit 8b909e3548706cbebc0a676067b81aadda57f47e # Author: Thiago Jung Bauermann # Date: Wed May 22 19:01:58 2019 -0300 # # powerpc/kexec: Fix loading of kernel + initramfs with kexec_file_load() # # Commit b6664ba42f14 ("s390, kexec_file: drop arch_kexec_mem_walk()") # changed kexec_add_buffer() to skip searching for a memory location if # kexec_buf.mem is already set, and use the address that is there. # # In powerpc code we reuse a kexec_buf variable for loading both the # kernel and the initramfs by resetting some of the fields between those # uses, but not mem. This causes kexec_add_buffer() to try to load the # kernel at the same address where initramfs will be loaded, which is # naturally rejected: # # # kexec -s -l --initrd initramfs vmlinuz # kexec_file_load failed: Invalid argument # # Setting the mem field before every call to kexec_add_buffer() fixes # this regression. # # Fixes: b6664ba42f14 ("s390, kexec_file: drop arch_kexec_mem_walk()") # Cc: stable@vger.kernel.org # v5.0+ # Signed-off-by: Thiago Jung Bauermann # Reviewed-by: Dave Young # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 8b909e3548706cbebc0a676067b81aadda57f47e # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_KVM_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_defconfig # Added to kconfig CONFIG_KVM_BOOK3S_64=n # Added to kconfig CONFIG_KVM=n # yes \n | make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_KVM_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig+NO_KVM_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1658:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1633:6: note: 'oldval' was declared here int oldval, ret; ^ WARNING: vmlinux.o(.text+0x3dc6): Section mismatch in reference from the variable start_here_multiplatform to the function .init.text:.early_setup() The function start_here_multiplatform() references the function __init .early_setup(). This is often because start_here_multiplatform lacks a __init annotation or the annotation of .early_setup is wrong. warning: same basename if the following are built as modules: arch/powerpc/platforms/powermac/nvram.ko drivers/char/nvram.ko Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc64_defconfig+NO_KVM_powerpc-gcc5 # Build took: 0:03:46.247669