# 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 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_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; ^ In file included from /kisskb/src/sound/ppc/pmac.h:25:0, from /kisskb/src/sound/ppc/awacs.c:29: /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:9: warning: 'speaker_vol' may be used uninitialized in this function [-Wmaybe-uninitialized] return _snd_ctl_add_slave(master, slave, 0); ^ /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here struct snd_kcontrol *master_vol, *speaker_vol; ^ INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xaf11a0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:32:58 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5287563 Bytes = 5163.64 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00894 Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:32:58 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5287559 Bytes = 5163.63 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00894 Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:32:58 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5256864 Bytes = 5133.66 KiB = 5.01 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:32:58 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5287146 Bytes = 5163.23 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00294 INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb018b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:33:00 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5286950 Bytes = 5163.04 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00294 INFO: Uncompressed kernel (size 0xaf11a0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:33:01 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5286969 Bytes = 5163.06 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:33:01 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5286703 Bytes = 5162.80 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:33:01 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5286900 Bytes = 5162.99 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00294 Image Name: Linux-5.2.0-rc1+ Created: Thu May 23 17:33:01 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5287572 Bytes = 5163.64 KiB = 5.04 MiB Load Address: 00c00000 Entry Point: 00c00294 warning: same basename if the following are built as modules: arch/powerpc/platforms/chrp/nvram.ko arch/powerpc/platforms/powermac/nvram.ko drivers/char/nvram.ko Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 # Build took: 0:05:12.037689