# git rev-parse -q --verify 8659a0e0efdd975c73355dbc033f79ba3b31e82c^{commit} 8659a0e0efdd975c73355dbc033f79ba3b31e82c already have revision, skipping fetch # git checkout -q -f -B kisskb 8659a0e0efdd975c73355dbc033f79ba3b31e82c # git clean -qxdf # < git log -1 # commit 8659a0e0efdd975c73355dbc033f79ba3b31e82c # Author: Michael Ellerman # Date: Wed May 20 23:36:05 2020 +1000 # # powerpc/64s: Disable STRICT_KERNEL_RWX # # Several strange crashes have been eventually traced back to # STRICT_KERNEL_RWX and its interaction with code patching. # # Various paths in our ftrace, kprobes and other patching code need to # be hardened against patching failures, otherwise we can end up running # with partially/incorrectly patched ftrace paths, kprobes or jump # labels, which can then cause strange crashes. # # Although fixes for those are in development, they're not -rc material. # # There also seem to be problems with the underlying strict RWX logic, # which needs further debugging. # # So for now disable STRICT_KERNEL_RWX on 64-bit to prevent people from # enabling the option and tripping over the bugs. # # Fixes: 1e0fc9d1eb2b ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some configs") # Cc: stable@vger.kernel.org # v4.13+ # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20200520133605.972649-1-mpe@ellerman.id.au # < /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 8659a0e0efdd975c73355dbc033f79ba3b31e82c # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc5200_defconfig # < make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/platforms/52xx/lite5200_sleep.S: Assembler messages: /kisskb/src/arch/powerpc/platforms/52xx/lite5200_sleep.S:184: Warning: invalid register expression /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1617:1: warning: the frame size of 1192 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1676:17: warning: 'oldval' may be used uninitialized in this function [-Wmaybe-uninitialized] return oldval == cmparg; ^ /kisskb/src/kernel/futex.c:1652:6: note: 'oldval' was declared here int oldval, ret; ^ /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] struct drm_dp_desc desc = { 0 }; ^ /kisskb/src/drivers/gpu/drm/drm_dp_mst_topology.c:5497:9: warning: (near initialization for 'desc.ident') [-Wmissing-braces] /kisskb/src/lib/zstd/compress.c: In function 'ZSTD_compressBlock_doubleFast': /kisskb/src/lib/zstd/compress.c:1393:1: warning: the frame size of 1384 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0x7371d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7371d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x7371d4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) INFO: Uncompressed kernel (size 0x726b1c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x800000) Image Name: Linux-5.7.0-rc2-g8659a0e0efdd Created: Fri May 22 14:25:48 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3701188 Bytes = 3614.44 KiB = 3.53 MiB Load Address: 00800000 Entry Point: 00800274 Image Name: Linux-5.7.0-rc2-g8659a0e0efdd Created: Fri May 22 14:25:48 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3670929 Bytes = 3584.89 KiB = 3.50 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.7.0-rc2-g8659a0e0efdd Created: Fri May 22 14:25:48 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3701246 Bytes = 3614.50 KiB = 3.53 MiB Load Address: 00800000 Entry Point: 00800274 Image Name: Linux-5.7.0-rc2-g8659a0e0efdd Created: Fri May 22 14:25:48 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3700863 Bytes = 3614.12 KiB = 3.53 MiB Load Address: 00800000 Entry Point: 00800274 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc5200_defconfig_powerpc-gcc4.9 # Build took: 0:01:24.740710