# git rev-parse -q --verify c7dee506ec3450717e84518ab3a6a3f2ce755cf6^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/linuxppc/linux.git next-test warning: The last gc run reported the following. Please correct the root cause and remove .git/gc.log. Automatic cleanup will not be performed until the file is removed. warning: There are too many unreachable loose objects; run 'git prune' to remove them. # git rev-parse -q --verify c7dee506ec3450717e84518ab3a6a3f2ce755cf6^{commit} c7dee506ec3450717e84518ab3a6a3f2ce755cf6 # git checkout -q -f -B kisskb c7dee506ec3450717e84518ab3a6a3f2ce755cf6 # git clean -qxdf # < git log -1 # commit c7dee506ec3450717e84518ab3a6a3f2ce755cf6 # Author: Michael Ellerman # Date: Tue Aug 31 23:41:15 2021 +1000 # # powerpc/ptdump: Fix generic ptdump for 64-bit # # Since the conversion to generic ptdump we see crashes on 64-bit: # # BUG: Unable to handle kernel data access on read at 0xc0eeff7f00000000 # Faulting instruction address: 0xc00000000045e5fc # Oops: Kernel access of bad area, sig: 11 [#1] # ... # NIP __walk_page_range+0x2bc/0xce0 # LR __walk_page_range+0x240/0xce0 # Call Trace: # __walk_page_range+0x240/0xce0 (unreliable) # walk_page_range_novma+0x74/0xb0 # ptdump_walk_pgd+0x98/0x170 # ptdump_check_wx+0x88/0xd0 # mark_rodata_ro+0x48/0x80 # kernel_init+0x74/0x1a0 # ret_from_kernel_thread+0x5c/0x64 # # What's happening is that have walked off the end of the kernel page # tables, and started dereferencing junk values. # # That happens because we initialised the ptdump_range to span all the way # up to 0xffffffffffffffff: # # static struct ptdump_range ptdump_range[] __ro_after_init = { # {TASK_SIZE_MAX, ~0UL}, # # But the kernel page tables don't span that far. So on 64-bit set the end # of the range to be the address immediately past the end of the kernel # page tables, to limit the page table walk to valid addresses. # # Fixes: e084728393a5 ("powerpc/ptdump: Convert powerpc to GENERIC_PTDUMP") # Reported-by: Nathan Chancellor # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 c7dee506ec3450717e84518ab3a6a3f2ce755cf6 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig # 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 CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:5462:warning: override: reassigning to symbol CPU_BIG_ENDIAN .config:5462:warning: override: CPU_BIG_ENDIAN changes choice state .config:5464:warning: override: reassigning to symbol PPC_DISABLE_WERROR .config:5465:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY .config:5466:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD .config:5469:warning: override: reassigning to symbol LD_HEAD_STUB_CATCH # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/kernel/trace/trace_osnoise.c: In function 'start_kthread': /kisskb/src/kernel/trace/trace_osnoise.c:1461:8: warning: 'main' is usually a function [-Wmain] void *main = osnoise_main; ^ /kisskb/src/drivers/virtio/virtio_vdpa.c: In function 'virtio_vdpa_setup_vq': /kisskb/src/drivers/virtio/virtio_vdpa.c:146:9: warning: missing braces around initializer [-Wmissing-braces] struct vdpa_vq_state state = {0}; ^ /kisskb/src/drivers/virtio/virtio_vdpa.c:146:9: warning: (near initialization for 'state.') [-Wmissing-braces] /kisskb/src/drivers/cxl/core.c: In function 'cxl_probe_component_regs': /kisskb/src/drivers/cxl/core.c:567:17: warning: missing braces around initializer [-Wmissing-braces] *map = (struct cxl_component_reg_map) { 0 }; ^ /kisskb/src/drivers/cxl/core.c:567:17: warning: (near initialization for '(anonymous).hdm_decoder') [-Wmissing-braces] /kisskb/src/drivers/cxl/core.c: In function 'cxl_probe_device_regs': /kisskb/src/drivers/cxl/core.c:831:17: warning: missing braces around initializer [-Wmissing-braces] *map = (struct cxl_device_reg_map){ 0 }; ^ /kisskb/src/drivers/cxl/core.c:831:17: warning: (near initialization for '(anonymous).status') [-Wmissing-braces] /kisskb/src/net/sched/sch_frag.c: In function 'sch_fragment': /kisskb/src/net/sched/sch_frag.c:93:10: warning: missing braces around initializer [-Wmissing-braces] struct rtable sch_frag_rt = { 0 }; ^ /kisskb/src/net/sched/sch_frag.c:93:10: warning: (near initialization for 'sch_frag_rt.dst') [-Wmissing-braces] /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c: In function 'dcn_bw_apply_registry_override': /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:640:2: error: implicit declaration of function 'enable_kernel_altivec' [-Werror=implicit-function-declaration] DC_FP_START(); ^ /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:676:2: error: implicit declaration of function 'disable_kernel_altivec' [-Werror=implicit-function-declaration] DC_FP_END(); ^ /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c: In function 'bios_parser_get_i2c_info': /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:297:9: warning: missing braces around initializer [-Wmissing-braces] struct atom_i2c_record dummy_record = {0}; ^ /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/dc/bios/bios_parser2.c:297:9: warning: (near initialization for 'dummy_record.record_header') [-Wmissing-braces] /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c: In function 'amdgpu_dm_psr_enable': /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:104:9: warning: missing braces around initializer [-Wmissing-braces] struct dc_static_screen_params params = {0}; ^ /kisskb/src/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_psr.c:104:9: warning: (near initialization for 'params.triggers') [-Wmissing-braces] cc1: some warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:272: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:514: drivers/gpu/drm/amd/amdgpu] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:514: drivers/gpu/drm] Error 2 make[2]: *** [/kisskb/src/scripts/Makefile.build:514: drivers/gpu] Error 2 make[1]: *** [/kisskb/src/Makefile:1842: drivers] Error 2 make: *** [Makefile:220: __sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.9 # Build took: 0:04:24.531264