# 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_83xx_mpc832x_rdb_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- 83xx/mpc832x_rdb_defconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_83xx_mpc832x_rdb_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x5e944c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) INFO: Uncompressed kernel (size 0x5d8d34) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x600000) Image Name: Linux-5.4.0-rc2-g83654d1d047c Created: Mon Oct 28 20:07:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 2974400 Bytes = 2904.69 KiB = 2.84 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.4.0-rc2-g83654d1d047c Created: Mon Oct 28 20:07:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3003173 Bytes = 2932.79 KiB = 2.86 MiB Load Address: 00600000 Entry Point: 00600294 Completed OK # rm -rf /kisskb/build/powerpc-fixes_83xx_mpc832x_rdb_defconfig_powerpc-gcc5 # Build took: 0:00:51.749883