# 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/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 83e367f9ad18d42a1883ee29f20608a2b93e1071 # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- ppc6xx_defconfig # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.6 CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-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] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:187:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/futex.c: In function 'do_futex': /kisskb/src/kernel/futex.c:1658:3: warning: 'oldval' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/futex.c:1633:6: note: 'oldval' was declared here /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2594:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1855:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/bridge/br_netlink.c: In function 'br_afspec.isra.28': /kisskb/src/net/bridge/br_netlink.c:652:7: warning: 'err' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/i2c/i2c-core-base.c: In function 'i2c_generic_scl_recovery': /kisskb/src/drivers/i2c/i2c-core-base.c:235:5: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:2: warning: 'speaker_vol' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here /kisskb/src/fs/nfsd/nfs4xdr.c: In function 'nfsd4_encode_components_esc': /kisskb/src/fs/nfsd/nfs4xdr.c:2076:9: warning: 'str' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c: In function 'ieee80211_rx_mgmt_beacon': /kisskb/src/net/mac80211/mlme.c:1581:3: warning: 'pwr_level_cisco' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/net/mac80211/mlme.c:1538:6: note: 'pwr_level_cisco' was declared here /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:337:21: note: 'pdeo' 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/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/net/tun.c: In function 'tun_get_user': /kisskb/src/drivers/net/tun.c:1842:30: warning: 'copylen' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/tun.c:1755:46: warning: 'linear' may be used uninitialized in this function [-Wuninitialized] WARNING: vmlinux.o(.text+0x1d51c): Section mismatch in reference from the function setup_kup() to the function .init.text:setup_kuep() The function setup_kup() references the function __init setup_kuep(). This is often because setup_kup lacks a __init annotation or the annotation of setup_kuep is wrong. WARNING: vmlinux.o(.text+0x1d524): Section mismatch in reference from the function setup_kup() to the function .init.text:setup_kuap() The function setup_kup() references the function __init setup_kuap(). This is often because setup_kup lacks a __init annotation or the annotation of setup_kuap is wrong. INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab8bf4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:34 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5125516 Bytes = 5005.39 KiB = 4.89 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:34 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156969 Bytes = 5036.10 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00888 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:33 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156873 Bytes = 5036.01 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:33 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156900 Bytes = 5036.04 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00888 INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xac92d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xab8bf4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156757 Bytes = 5035.90 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:35 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156920 Bytes = 5036.05 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:36 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156714 Bytes = 5035.85 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:36 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5157065 Bytes = 5036.20 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00290 Image Name: Linux-5.1.0-rc3+ Created: Fri May 3 10:58:36 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5156951 Bytes = 5036.08 KiB = 4.92 MiB Load Address: 00b00000 Entry Point: 00b00290 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.6 # Build took: 0:05:37.463843