# git rev-parse -q --verify 83654d1d047c98341f1f4472d31c189b3bf0ebe7^{commit} 83654d1d047c98341f1f4472d31c189b3bf0ebe7 already have revision, skipping fetch # git checkout -q -f -B kisskb 83654d1d047c98341f1f4472d31c189b3bf0ebe7 # git clean -qxdf # < git log -1 # commit 83654d1d047c98341f1f4472d31c189b3bf0ebe7 # Author: Thiago Jung Bauermann # Date: Wed Sep 11 13:34:33 2019 -0300 # # powerpc/prom_init: Undo relocation before entering secure mode # # The ultravisor will do an integrity check of the kernel image but we # relocated it so the check will fail. Restore the original image by # relocating it back to the kernel virtual base address. # # This works because during build vmlinux is linked with an expected # virtual runtime address of KERNELBASE. # # Fixes: 6a9c930bd775 ("powerpc/prom_init: Add the ESM call to prom_init") # Signed-off-by: Thiago Jung Bauermann # Tested-by: Ram Pai # [mpe: Add IS_ENABLED() to fix the CONFIG_RELOCATABLE=n build] # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20190911163433.12822-1-bauerman@linux.ibm.com # < /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 83654d1d047c98341f1f4472d31c189b3bf0ebe7 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64e_defconfig+KEXEC_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64e_defconfig # Added to kconfig CONFIG_KEXEC=y # yes \n | make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64e_defconfig+KEXEC_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 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64e_defconfig+KEXEC_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0xbdfb38) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-5.4.0-rc2-g83654d1d047c Created: Mon Oct 28 19:48:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4962280 Bytes = 4845.98 KiB = 4.73 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc64e_defconfig+KEXEC_powerpc-gcc5 # Build took: 0:02:02.183134