# git rev-parse -q --verify 9c1a41149230e5e2d48c8948943306b8c0c9f242^{commit} 9c1a41149230e5e2d48c8948943306b8c0c9f242 already have revision, skipping fetch # git checkout -q -f -B kisskb 9c1a41149230e5e2d48c8948943306b8c0c9f242 # git clean -qxdf # < git log -1 # commit 9c1a41149230e5e2d48c8948943306b8c0c9f242 # Author: Nicholas Piggin # Date: Fri Mar 23 15:53:38 2018 +1000 # # powerpc/64s: Fix i-side SLB miss bad address handler saving nonvolatile GPRs # # The SLB bad address handler's trap number fixup does not preserve the # low bit that indicates nonvolatile GPRs have not been saved. This # leads save_nvgprs to skip saving them, and subsequent functions and # return from interrupt will think they are saved. # # This causes kernel branch-to-garbage debugging to not have correct # registers, can also cause userspace to have its registers clobbered # after a segfault. # # Fixes: f0f558b131 ("powerpc/mm: Preserve CFAR value on SLB miss caused by access to bogus address") # Cc: Paul Mackerras # Signed-off-by: Nicholas Piggin # 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 9c1a41149230e5e2d48c8948943306b8c0c9f242 # < 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=0xD6E07835 # 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 yes: write error # 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/arch/powerpc/platforms/powernv/memtrace.c: In function 'memtrace_alloc_node': /kisskb/src/arch/powerpc/platforms/powernv/memtrace.c:151:6: warning: the address of 'contig_page_data' will always evaluate as 'true' [-Waddress] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1439:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c: In function 'reservation_object_add_shared_replace': /kisskb/src/drivers/dma-buf/reservation.c:207:2: warning: 'k' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/dma-buf/reservation.c:210:7: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/mfd/arizona-core.c: In function 'arizona_dev_init': /kisskb/src/drivers/mfd/arizona-core.c:1387:6: warning: 'n_subdevs' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/amd/amdgpu/soc15.c: In function 'soc15_set_ip_blocks': /kisskb/src/drivers/gpu/drm/amd/amdgpu/soc15.c:549:3: warning: #warning "Enable CONFIG_DRM_AMD_DC for display support on SOC15." [-Wcpp] /kisskb/src/drivers/gpu/drm/amd/amdgpu/soc15.c:568:3: warning: #warning "Enable CONFIG_DRM_AMD_DC for display support on SOC15." [-Wcpp] /kisskb/src/drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c: In function 'gk104_top_oneinit': /kisskb/src/drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c:89:20: warning: 'inst' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c:75:3: warning: 'type' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c: In function 'nv50_head_lut_load': /kisskb/src/arch/powerpc/include/asm/io.h:178:1: warning: 'b' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c:1813:18: note: 'b' was declared here /kisskb/src/arch/powerpc/include/asm/io.h:178:1: warning: 'g' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c:1813:15: note: 'g' was declared here /kisskb/src/arch/powerpc/include/asm/io.h:178:1: warning: 'r' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/nouveau/nv50_display.c:1813:12: note: 'r' was declared here WARNING: vmlinux.o(.text.unlikely+0x488): Section mismatch in reference from the function .init_fallback_flush() to the function .init.text:.ppc64_bolted_size() The function .init_fallback_flush() references the function __init .ppc64_bolted_size(). This is often because .init_fallback_flush lacks a __init annotation or the annotation of .ppc64_bolted_size is wrong. WARNING: vmlinux.o(.text.unlikely+0x4b4): Section mismatch in reference from the function .init_fallback_flush() to the function .init.text:.memblock_alloc_base() The function .init_fallback_flush() references the function __init .memblock_alloc_base(). This is often because .init_fallback_flush lacks a __init annotation or the annotation of .memblock_alloc_base is wrong. WARNING: vmlinux.o(.text.unlikely+0x1b94): Section mismatch in reference from the function .pnv_setup_rfi_flush() to the function .init.text:.setup_rfi_flush() The function .pnv_setup_rfi_flush() references the function __init .setup_rfi_flush(). This is often because .pnv_setup_rfi_flush lacks a __init annotation or the annotation of .setup_rfi_flush is wrong. Completed OK # rm -rf /kisskb/build/powerpc-fixes_powerpc-randconfig_powerpc # Build took: 0:01:49.584240