MKLIBCSANITIZER UBSan reports Inside chroot: mount -t null /dev /public/netbsd.fuzzer/destdir.amd64/dev mount -t null /dev/pts /public/netbsd.fuzzer/destdir.amd64/dev/pts mount -t null /tmp /public/netbsd.fuzzer/destdir.amd64/tmp chroot /public/netbsd.fuzzer/destdir.amd64 cd /usr/tessts && atf-run LLVM ./build.sh -V MKLIBCSANITIZER=yes -V MKGCC=no -V MKLLVM=yes -V HAVE_LLVM=yes distribution UBSan: Undefined Behavior in t_subr_prf.c:179:9, pointer expression with base 0 overflowed to 0x14 UBSan: Undefined Behavior in t_subr_prf.c:179:9, pointer expression with base 0 overflowed to 0xa UBSan: Undefined Behavior in /usr/src/usr.bin/netstat/main.c:724:9, index 255 is out of range for type 'struct nlist [49]' UBSan: Undefined Behavior in /usr/src/external/public-domain/xz/lib/../dist/src/liblzma/common/common.c:288:16, pointer expression with base 0 overflowed to 0 UBSan: Undefined Behavior in /usr/src/external/public-domain/xz/lib/../dist/src/liblzma/common/common.c:102:28, pointer expression with base 0 overflowed to 0 UBSan: Undefined Behavior in /usr/src/lib/libc/gdtoa/strtod.c:620:16, shift exponent 63 is too large for 32-bit type 'uint32_t' (aka 'unsigned int') UBSan: Undefined Behavior in /usr/src/lib/libc/stdio/vfwprintf.c:959:12, signed integer overflow: 10 * 230584300 cannot be represented in type 'int' UBSan: Undefined Behavior in /usr/src/lib/libc/string/bm.c:218:7, pointer expression with base 0x7f7ff7eee063 overflowed to 0x7f7ff7eee062 UBSan: Undefined Behavior in /usr/src/lib/libc/string/bm.c:201:7, pointer expression with base 0x7f7ff7eec123 overflowed to 0x7f7ff7eec122 UBSan: Undefined Behavior in /usr/src/lib/libm/src/e_pow.c:305:9, left shift of negative value -3 UBSan: Undefined Behavior in /usr/src/lib/libm/src/e_powf.c:248:9, left shift of negative value -3 UBSan: Undefined Behavior in /usr/src/lib/libc/gdtoa/gdtoa.c:264:32, left shift of negative value -8 UBSan: Undefined Behavior in /usr/src/lib/libm/src/s_exp2.c:409:2, left shift of negative value -1 UBSan: Undefined Behavior in /usr/src/lib/libm/src/e_hypotf.c:81:6, left shift of negative value -68 UBSan: Undefined Behavior in /usr/src/lib/libc/compat/gen/compat_ldexp_ieee754.c:101:18, signed integer overflow: 1024 + 2147483647 cannot be represented in type 'int' UBSan: Undefined Behavior in /usr/src/external/bsd/tre/lib/../dist/lib/tre-parse.c:604:17, signed integer overflow: 987654321 * 10 cannot be represented in type 'int' UBSan: Undefined Behavior in /usr/src/tests/net/net/t_unix.c:177:2, index 254 is out of range for type 'char [104]' UBSan: Undefined Behavior in /usr/src/tests/net/net/t_unix.c:177:2, index 253 is out of range for type 'char [104]' UBSan: Undefined Behavior in /usr/src/tests/net/net/t_unix.c:80:12, index 104 is out of range for type 'char [104]' UBSan: Undefined Behavior in /usr/src/tests/net/net/t_unix.c:279:8, index 104 is out of range for type 'char [104]' UBSan: Undefined Behavior in /usr/src/tests/net/net/t_unix.c:279:34, index 104 is out of range for type 'char [104]' GCC ./build.sh -V MKLIBCSANITIZER=yes distribution UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/usr.bin/sort/files.c:87:2, null pointer passed as argument 2, which is declared to never be null UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/usr.bin/netstat/main.c:724:11, index 255 is out of range for type 'nlist [49]' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/usr.bin/netstat/main.c:724:7, load of address 0x1f98551d8 with insufficient space for an object of type 'long unsigned int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/tests/kernel/h_segv.c:86:5, store to null pointer of type 'volatile int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/binutils/usr.bin/ld/../../dist/ld/ldlang.c:916:7, member access within null pointer of type 'union lang_statement_union' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/binutils/usr.bin/ld/../../dist/ld/ldlang.c:931:7, member access within null pointer of type 'union lang_statement_union' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/binutils/usr.bin/ld/../../dist/ld/ldlang.c:6522:3, member access within null pointer of type 'union lang_statement_union' UBSan: Undefined Behavior in eelf_x86_64.c:1446:5, member access within null pointer of type 'union lang_statement_union' UBSan: Undefined Behavior in eelf_i386.c:1446:5, member access within null pointer of type 'union lang_statement_union' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/public-domain/xz/lib/../dist/src/liblzma/common/common.c:102:2, null pointer passed as argument 2, which is declared to never be null UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libc/gdtoa/strtod.c:620:16, shift exponent 63 is too large for 32-bit type 'unsigned int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libc/stdio/vfwprintf.c:959:12, signed integer overflow: 230584300 * 10 cannot be represented in type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/tests/lib/libc/sys/t_sigqueue.c:143:31, load of address 0x7f7fffc9663c with insufficient space for an object of type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libm/src/e_pow.c:305:9, left shift of negative value -3 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libm/src/e_powf.c:248:9, left shift of negative value -3 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libc/gdtoa/gdtoa.c:264:32, left shift of negative value -8 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libm/src/s_exp2.c:409:2, left shift of negative value -1 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libm/src/e_hypotf.c:81:6, left shift of negative value -68 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/lib/libc/compat/gen/compat_ldexp_ieee754.c:101:9, signed integer overflow: 1024 + 2147483647 cannot be represented in type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/gcc/dist/libobjc/class.c:217:3, left shift of 1271241028 by 4 places cannot be represented in type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/gcc/dist/libobjc/class.c:188:3, left shift of 1271241028 by 4 places cannot be represented in type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/bsd/tre/lib/../dist/lib/tre-parse.c:604:17, signed integer overflow: 987654321 * 10 cannot be represented in type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sbin/ping/ping.c:518:24, index 16 is out of range for type 'int8_t [1]' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sbin/ifconfig/env.c:165:2, null pointer passed as argument 2, which is declared to never be null UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sbin/fsck_ffs/pass2.c:620:60, signed integer overflow: 5764888998010945536 - -4027062491799355392 cannot be represented in type 'long int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/binutils/usr.bin/ld/../../dist/ld/ldlang.c:6618:10, member access within null pointer of type 'union lang_statement_union' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/gpl3/binutils/lib/libbfd/../../dist/bfd/elf64-x86-64.c:3143:8, member access within null pointer of type 'struct elf_x86_link_hash_entry' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/usr.bin/make/buf.c:140:5, null pointer passed as argument 2, which is declared to never be null UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/usr.sbin/repquota/repquota.c:329:5, member access within null pointer of type 'struct fileusage' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sys/rump/fs/lib/liblfs/../../../../ufs/lfs/ulfs_bmap.c:175:10, left shift of negative value -2 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sys/rump/fs/lib/liblfs/../../../../ufs/lfs/ulfs_bmap.c:330:9, left shift of negative value -2 UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sys/../external/cddl/osnet/dist/uts/common/fs/zfs/sa.c:422:2, null pointer passed as argument 1, which is declared to never be null UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sys/../external/cddl/osnet/dist/uts/common/fs/zfs/dmu_objset.c:1069:19, index 1 is out of range for type 'blkptr_t [1]' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sys/../external/cddl/osnet/dist/uts/common/fs/zfs/zap.c:1217:13, shift exponent 64 is too large for 64-bit type 'long long unsigned int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/sys/external/bsd/ipf/netinet/fil.c:9865:9, shift exponent 32 is too large for 32-bit type 'unsigned int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/bsd/ipf/dist/ip_fil.c:746:11, member access within null pointer of type 'union i6addr_t' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/cddl/osnet/dist/tools/ctf/cvt/hash.c:87:10, left shift of 202597423 by 4 places cannot be represented in type 'int' UBSan: Undefined Behavior in /home/fox/projects/netbsd/src-wip/external/cddl/osnet/dist/tools/ctf/cvt/hash.c:87:10, left shift of 145602110 by 4 places cannot be represented in type 'int'