# git rev-parse -q --verify b3fc0fe88c866051e7fdf92c0fc5dde74d7d501d^{commit} b3fc0fe88c866051e7fdf92c0fc5dde74d7d501d already have revision, skipping fetch # git checkout -q -f -B kisskb b3fc0fe88c866051e7fdf92c0fc5dde74d7d501d # git clean -qxdf # < git log -1 # commit b3fc0fe88c866051e7fdf92c0fc5dde74d7d501d # Author: Geoff Levand # Date: Sat May 9 18:58:32 2020 +0000 # # powerpc/ps3: Fix kexec shutdown hang # # The ps3_mm_region_destroy() and ps3_mm_vas_destroy() routines # are called very late in the shutdown via kexec's mmu_cleanup_all # routine. By the time mmu_cleanup_all runs it is too late to use # udbg_printf, and calling it will cause PS3 systems to hang. # # Remove all debugging statements from ps3_mm_region_destroy() and # ps3_mm_vas_destroy() and replace any error reporting with calls # to lv1_panic. # # With this change builds with 'DEBUG' defined will not cause kexec # reboots to hang, and builds with 'DEBUG' defined or not will end # in lv1_panic if an error is encountered. # # Signed-off-by: Geoff Levand # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/7325c4af2b4c989c19d6a26b90b1fec9c0615ddf.1589049250.git.geoff@infradead.org # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-ld --version # < git log --format=%s --max-count=1 b3fc0fe88c866051e7fdf92c0fc5dde74d7d501d # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- randconfig KCONFIG_SEED=0x1A057460 # 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 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- help # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- olddefconfig .config:5376:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY .config:5377:warning: override: reassigning to symbol PREVENT_FIRMWARE_BUILD # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/crypto/async_tx/raid6test.c: In function 'test': /kisskb/src/crypto/async_tx/raid6test.c:159:9: warning: array subscript is below array bounds [-Warray-bounds] /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:72:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:471:21: note: 'pdeo' was declared here /kisskb/src/mm/memory.c: In function 'vm_insert_pages': /kisskb/src/mm/memory.c:1614:2: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/block/blk-merge.c: In function 'blk_rq_map_sg': /kisskb/src/block/blk.h:80:50: warning: 'bvprv.bv_offset' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/block/blk-merge.c:486:42: note: 'bvprv.bv_offset' was declared here /kisskb/src/block/blk.h:83:12: warning: 'bvprv.bv_len' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/block/blk-merge.c:486:42: note: 'bvprv.bv_len' was declared here /kisskb/src/arch/powerpc/include/asm/io.h:799:22: warning: 'bvprv.bv_page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/block/blk-merge.c:486:42: note: 'bvprv.bv_page' was declared here /kisskb/src/fs/ext4/extents.c: In function 'ext4_convert_unwritten_io_end_vec': /kisskb/src/fs/ext4/extents.c:4774:23: warning: 'ret' 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:204:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/ftrace.c: In function 'pid_write': /kisskb/src/kernel/trace/ftrace.c:7261:22: warning: 'other_pids' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/ftrace.c:7244:23: warning: 'filtered_pids' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/ftrace.c: In function 'pid_open': /kisskb/src/kernel/trace/ftrace.c:7166:6: warning: 'seq_ops' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/hda/hdac_regmap.c: In function 'hda_reg_write': /kisskb/src/sound/hda/hdac_regmap.c:284:16: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1686:3: warning: 'oldval' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/futex.c:1652:6: note: 'oldval' was declared here /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/soc/qcom/rpmh.c: In function 'rpmh_write_batch': /kisskb/src/drivers/soc/qcom/rpmh.c:355:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/trace/trace_events.c: In function 'event_create_dir': /kisskb/src/kernel/trace/trace_events.c:2189:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/f2fs/file.c: In function 'f2fs_precache_extents': /kisskb/src/fs/f2fs/file.c:3268:6: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/iommu/io-pgtable-arm-v7s.c: In function 'arm_v7s_map': /kisskb/src/drivers/iommu/io-pgtable-arm-v7s.c:480:7: warning: 'cptep' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/iommu/io-pgtable-arm-v7s.c:476:22: note: 'cptep' was declared here /kisskb/src/drivers/lightnvm/core.c: In function 'nvm_ioctl_dev_create.isra.19': /kisskb/src/include/linux/string.h:302:29: warning: array subscript is above array bounds [-Warray-bounds] /kisskb/src/fs/f2fs/node.c: In function '__set_nat_cache_dirty': /kisskb/src/include/linux/list.h:70:13: warning: 'head' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/f2fs/node.c:236:24: note: 'head' was declared here /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:247:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:227:19: note: 'i' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1859:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/gfs2/lops.c: In function 'gfs2_find_jhead': /kisskb/src/fs/gfs2/lops.c:568:8: warning: 'off' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2598:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/da7219-aad.c: In function 'da7219_aad_hptest_work': /kisskb/src/sound/soc/codecs/da7219-aad.c:317:17: warning: 'pll_ctrl' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/namei.c: In function 'handle_dots': /kisskb/src/fs/namei.c:1805:10: warning: 'inode' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/namei.c:1805:10: warning: 'seq' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port': /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: warning: missing braces around initializer [-Wmissing-braces] /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: warning: (near initialization for 'desc.ident') [-Wmissing-braces] /kisskb/src/sound/soc/codecs/rt5665.c: In function 'rt5665_i2s_pin_event': /kisskb/src/sound/soc/codecs/rt5665.c:2663:33: warning: 'val2' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/rt5665.c:2660:33: warning: 'val1' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/io_uring.c: In function '__io_sqe_files_update': /kisskb/src/fs/io_uring.c:6701:13: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/fsl/imx-audmix.c: In function 'imx_audmix_probe': /kisskb/src/sound/soc/fsl/imx-audmix.c:302:45: warning: 'capture_dai_name' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:800:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:797:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/usb/core/devio.c: In function 'async_completed': /kisskb/src/drivers/usb/core/devio.c:625:23: warning: 'errno' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c: In function 'sh_mobile_i2c_isr': /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:396:26: warning: 'data' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/busses/i2c-sh_mobile.c:369:16: note: 'data' was declared here /kisskb/src/drivers/vhost/vdpa.c: In function 'vhost_vdpa_process_iotlb_msg': /kisskb/src/drivers/vhost/vdpa.c:579:52: warning: 'map_pfn' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/vhost/vdpa.c:513:34: note: 'map_pfn' was declared here /kisskb/src/drivers/android/binderfs.c: In function 'binderfs_fill_super': /kisskb/src/drivers/android/binderfs.c:653:9: warning: missing braces around initializer [-Wmissing-braces] /kisskb/src/drivers/android/binderfs.c:653:9: warning: (near initialization for 'device_info.name') [-Wmissing-braces] ERROR: start_text address is c000000000000200, should be c000000000000100 ERROR: try to enable LD_HEAD_STUB_CATCH config option ERROR: see comments in arch/powerpc/tools/head_check.sh make[2]: *** [/kisskb/src/arch/powerpc/Makefile.postlink:31: vmlinux] Error 1 make[1]: *** [/kisskb/src/Makefile:1106: vmlinux] Error 2 make[1]: *** Deleting file 'vmlinux' make: *** [Makefile:180: sub-make] Error 2 Command 'make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc4.6 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-next-rand_powerpc-randconfig_powerpc-gcc4.6 # Build took: 0:03:26.638773