# git rev-parse -q --verify 83e367f9ad18d42a1883ee29f20608a2b93e1071^{commit} 83e367f9ad18d42a1883ee29f20608a2b93e1071 already have revision, skipping fetch # git checkout -q -f -B kisskb 83e367f9ad18d42a1883ee29f20608a2b93e1071 # git clean -qxdf # < git log -1 # commit 83e367f9ad18d42a1883ee29f20608a2b93e1071 # Author: Breno Leitao # Date: Thu Jan 17 15:01:54 2019 -0200 # # selftests/powerpc: Add a signal fuzzer selftest # # This is a new selftest that raises SIGUSR1 signals and handles it in a # set of different ways, trying to create different scenario for testing # purpose. # # This test works raising a signal and calling sigreturn interleaved # with TM operations, as starting, suspending and terminating a # transaction. The test depends on random numbers, and, based on them, # it sets different TM states. # # Other than that, the test fills out the user context struct that is # passed to the sigreturn system call with random data, in order to make # sure that the signal handler syscall can handle different and invalid # states properly. # # This selftest has command line parameters to control what kind of # tests the user wants to run, as for example, if a transaction should # be started prior to signal being raised, or, after the signal being # raised and before the sigreturn. If no parameter is given, the default # is enabling all options. # # This test does not check if the user context is being read and set # properly by the kernel. Its purpose, at this time, is basically # guaranteeing that the kernel does not crash on invalid scenarios. # # 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 83e367f9ad18d42a1883ee29f20608a2b93e1071 # < make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 10 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1478:2: warning: #warning syscall pidfd_send_signal not implemented [-Wcpp] :1481:2: warning: #warning syscall io_uring_setup not implemented [-Wcpp] :1484:2: warning: #warning syscall io_uring_enter not implemented [-Wcpp] :1487:2: warning: #warning syscall io_uring_register not implemented [-Wcpp] In file included from /kisskb/src/include/linux/kernel.h:11:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc430f4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:30 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6085366 Bytes = 5942.74 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:30 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6053930 Bytes = 5912.04 KiB = 5.77 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084389 Bytes = 5941.79 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084382 Bytes = 5941.78 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084352 Bytes = 5941.75 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084998 Bytes = 5942.38 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6085641 Bytes = 5943.01 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084963 Bytes = 5942.35 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084315 Bytes = 5941.71 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 INFO: Uncompressed kernel (size 0xc53928) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:31 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084408 Bytes = 5941.80 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084363 Bytes = 5941.76 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084435 Bytes = 5941.83 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084428 Bytes = 5941.82 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084362 Bytes = 5941.76 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084421 Bytes = 5941.82 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.1.0-rc3-g83e367f9ad18 Created: Fri May 3 12:19:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6084133 Bytes = 5941.54 KiB = 5.80 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:04:05.805352