# git rev-parse -q --verify b45ba4a51cde29b2939365ef0c07ad34c8321789^{commit} b45ba4a51cde29b2939365ef0c07ad34c8321789 already have revision, skipping fetch # git checkout -q -f -B kisskb b45ba4a51cde29b2939365ef0c07ad34c8321789 # git clean -qxdf # < git log -1 # commit b45ba4a51cde29b2939365ef0c07ad34c8321789 # Author: Christophe Leroy # Date: Mon Oct 1 12:21:10 2018 +0000 # # powerpc/lib: fix book3s/32 boot failure due to code patching # # Commit 51c3c62b58b3 ("powerpc: Avoid code patching freed init # sections") accesses 'init_mem_is_free' flag too early, before the # kernel is relocated. This provokes early boot failure (before the # console is active). # # As it is not necessary to do this verification that early, this # patch moves the test into patch_instruction() instead of # __patch_instruction(). # # This modification also has the advantage of avoiding unnecessary # remappings. # # Fixes: 51c3c62b58b3 ("powerpc: Avoid code patching freed init sections") # Cc: stable@vger.kernel.org # 4.13+ # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 b45ba4a51cde29b2939365ef0c07ad34c8321789 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- randconfig KCONFIG_SEED=0x91CCCB71 # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig # yes \n | make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- oldconfig yes: standard output: Broken pipe # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/mm/tlb-radix.c:669:0: warning: "radix__flush_all_mm" redefined [enabled by default] /kisskb/src/arch/powerpc/include/asm/book3s/64/tlbflush-radix.h:44:0: note: this is the location of the previous definition /kisskb/src/arch/powerpc/mm/tlb-radix.c: In function '__radix__flush_tlb_range': /kisskb/src/arch/powerpc/mm/tlb-radix.c:712:5: error: implicit declaration of function 'exit_flush_lazy_tlbs' [-Werror=implicit-function-declaration] /kisskb/src/arch/powerpc/mm/tlb-radix.c: In function 'radix__tlb_flush': /kisskb/src/arch/powerpc/mm/tlb-radix.c:873:3: error: implicit declaration of function '__flush_all_mm' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[2]: *** [/kisskb/src/scripts/Makefile.build:306: arch/powerpc/mm/tlb-radix.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/arch/powerpc/kernel/watchdog.c: In function 'watchdog_smp_panic': /kisskb/src/arch/powerpc/kernel/watchdog.c:175:4: error: implicit declaration of function 'smp_send_nmi_ipi' [-Werror=implicit-function-declaration] cc1: some warnings being treated as errors make[2]: *** [/kisskb/src/scripts/Makefile.build:305: arch/powerpc/kernel/watchdog.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1060: arch/powerpc/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1060: arch/powerpc/kernel] Error 2 /kisskb/src/mm/ksm.c: In function 'stable_node_dup': /kisskb/src/mm/ksm.c:1395:15: warning: 'found_rmap_hlist_len' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:185:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/sched/core.c: In function 'update_rq_clock_task': /kisskb/src/kernel/sched/core.c:139:6: warning: unused variable 'steal' [-Wunused-variable] make: *** [Makefile:146: sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc # Build took: 0:00:41.470640