# git rev-parse -q --verify ebda7e3c2ebb244682d068c7d9ad8ad25404295a^{commit} ebda7e3c2ebb244682d068c7d9ad8ad25404295a already have revision, skipping fetch # git checkout -q -f -B kisskb ebda7e3c2ebb244682d068c7d9ad8ad25404295a # git clean -qxdf # < git log -1 # commit ebda7e3c2ebb244682d068c7d9ad8ad25404295a # Author: Breno Leitao # Date: Tue Jan 8 09:31:21 2019 -0200 # # selftests/powerpc: New TM signal self test # # A new self test that forces MSR[TS] to be set without calling any TM # instruction. This test also tries to cause a page fault at a signal # handler, exactly between MSR[TS] set and tm_recheckpoint(), forcing # thread->texasr to be rewritten with TEXASR[FS] = 0, which will cause a BUG # when tm_recheckpoint() is called. # # This test is not deterministic, since it is hard to guarantee that the page # access will cause a page fault. In order to force more page faults at # signal context, the signal handler and the ucontext are being mapped into a # MADV_DONTNEED memory chunks. # # Tests have shown that the bug could be exposed with few interactions in a # buggy kernel. This test is configured to loop 5000x, having a good chance # to hit the kernel issue in just one run. This self test takes less than # two seconds to run. # # This test uses set/getcontext because the kernel will recheckpoint # zeroed structures, causing the test to segfault, which is undesired because # the test needs to rerun, so, there is a signal handler for SIGSEGV which # will restart the test. # # v2: Uses the MADV_DONTNEED memory advice # v3: Fix memcpy and 32-bits compilation # v4: Does not define unused macros # # Signed-off-by: Breno Leitao # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 ebda7e3c2ebb244682d068c7d9ad8ad25404295a # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc86xx_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc86xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:140.22-142.4: Warning (pci_bridge): /pcie@f1008000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:97.7-122.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:107.9-121.4: Warning (pci_bridge): /pcie@f1008000/pcie@0: missing ranges for PCI bridge (or not a bridge) /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:144.22-146.4: Warning (pci_bridge): /pcie@f1009000: missing ranges for PCI bridge (or not a bridge) also defined at /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:124.7-149.3 /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8641si-post.dtsi:134.9-148.4: Warning (pci_bridge): /pcie@f1009000/pcie@0: missing ranges for PCI bridge (or not a bridge) arch/powerpc/boot/dts/fsl/mvme7100.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' /kisskb/src/arch/powerpc/boot/dts/fsl/mvme7100.dts:35.11-37.6: Warning (i2c_bus_reg): /soc@f1000000/i2c@3000/rtc@68: missing or empty reg property INFO: Uncompressed kernel (size 0x9f8e0c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xa00000) Image Name: Linux-5.0.0-rc1-gebda7e3c2ebb Created: Mon Jan 14 20:28:44 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 4940972 Bytes = 4825.17 KiB = 4.71 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc86xx_defconfig_powerpc-gcc5 # Build took: 0:01:02.413191