Extra filters: [With Repro]
Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Closed Patch
UBSan: Undefined Behavior in usb_free_device (2) -1 syz, C 117 1666d 1767d 0/3 never ee30345caf41 usb(9): Record config index, not just number, in struct usbd_device. 0ed3a32984ce usb(9): Use ud_configidx, not ud_config, to see if unconfigured.
MSan: Uninitialized Memory in ip6_hopopts_input -1 syz, C 6 904d 907d 3/3 904d 5c6e5685cb2e ip6_output: Initialize plen for ip6_hopopts_input.
UBSan: Undefined Behavior in dounmount -1 syz, C 130 904d 907d 3/3 904d 45a3b0de2942 dounmount: Avoid &((struct vnode_impl *)NULL)->vi_vnode.
assert failed: sc->sc_parent->dk_rawopens > NUM -1 syz, C 59 1473d 1504d 3/3 1168d 804127267a30 dk(4): Use disk_begindetach and rely on vdevgone to close instances.
panic: kernel di.NUM=S2dagnostic assertion "uio->uio_iovcnt > NUM" failed: file "/syzkaller/managers/ci2-netbs 2 1 1280d 1280d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: uAiio->uio_iovcnt > NUM -1 1 1268d 1268d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: uio->uio_iovcnt > NUM -1 syz, C 34 1243d 1706d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: %uio->uio_iovcnt > NUM -1 syz, C 1 1278d 1278d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
panic: keexecrnel diagnostic assertion "uio->uio_iovcnt > NUM" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kerne 2 syz 1 1483d 1483d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
panic: F8kernel diagnostic assertion "uio->uio_iovcnt > NUM" failed: file "/syzkaller/managers/ci2-netbsd- 2 syz, C 1 1705d 1705d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
ASan: Unauthorized Access in uiomove -1 syz, C 16 1279d 1732d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
panic: kernel dAiagnos@t ic assertion "uio->uio_iovcnt > NUM" failed: f 2 1 1281d 1281d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: uio->uio_iohsyz-vcnt > NUM -1 syz, C 1 1279d 1279d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
panic: kernel diagnostic assertion "uio->uio_iovcnt > NUM" failed: file "/syzkaller/managers/ci2-netbsd-kmsa 2 1 1270d 1270d 3/3 1236d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: !netq->netq_stopping -1 1 1259d 1259d 3/3 1248d c69fcfaebed9 Fix missing check for netq->netq_stopping in vioif_rx_intr()
assert failed: sc->sc_dk.dk_openmask == NUM -1 syz, C 22 1249d 1266d 3/3 1249d ee1fb5e72c05 dk(4): dkclose must handle a dying wedge too to close the parent. 9fa2d7efad52 ioctl(DIOCRMWEDGES): Delete only idle wedges.
assert failed: mutex_owned(&sc->sc_dk.dk_openlock) -1 4 1261d 1267d 3/3 1259d 91ee275156c4 dk(4): Fix lock assertion in size increase: parent's, not wedge's.
UBSan: Undefined Behavior in tmpfs_reg_resize -1 1 1262d 1262d 3/3 1259d cd541da68184 tmpfs: Refuse sizes that overflow round_page.
panic: LOCKDEBUG: Mutex error: mi_userret,NUM: sleep lock held 2 6 1266d 1267d 3/3 1266d 5d890d2b118a disk(9): Fix missing unlock in error branch in previous change.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/kern/subr_pserialize.c:LINE, member -1 39 1275d 1277d 3/3 1273d 245f5e21b00b pserialize(9): Fix bug in recent micro-optimization.
panic: kernel debugging assertion "notin" failed: file "/syzkaller/managers/ci2-netbsd/kernel/sys/kern/subr_pserialize.c 2 1 1274d 1274d 3/3 1273d 62ab30f06bcb pserialize(9): Fix buggy assertion inside assertion.
UBSan: Undefined Behavior in playtone -1 syz, C 1 1289d 1289d 3/3 1288d 2ca1ca999393 spkr(4): Avoid some overflow issues.
ASan: Unauthorized Access in playtone -1 syz, C 2 1289d 1289d 3/3 1288d 2ca1ca999393 spkr(4): Avoid some overflow issues.
panic: sockaddr_copy: source too long, NUM < NUM bytes 2 syz, C 9 1291d 1299d 3/3 1289d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
ASan: Unauthorized Access in ifreq_setaddr (2) -1 7 1289d 1315d 3/3 1289d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
MSan: Uninitialized Memory in ifreq_setaddr -1 syz, C 8 1290d 1299d 3/3 1289d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
ASan: Unauthorized Access in sockaddr_dup -1 syz, C 3 1295d 1298d 3/3 1289d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
MSan: Uninitialized Memory in sin_print -1 syz, C 4 1315d 1331d 3/3 1289d 8d2c9c078303 sockaddr_alloc(9): Avoid uninitialized buffer in sockaddr_checklen.
assert failed: sa->sa_len <= sizeof(ifr.ifr_ifru) -1 syz, C 10 1290d 1296d 3/3 1289d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
ASan: Unauthorized Access in sat_print -1 syz, C 10 1290d 1311d 3/3 1289d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
netbsd boot error: ASan: Unauthorized Access in evcnt_attach_dynamic -1 33 1296d 1297d 3/3 1291d 317ef74dd360 vioif(4): fix wrong memory allocation size
netbsd boot error: assert failed: len <= map->dm_mapsize - offset (2) -1 135 1291d 1294d 3/3 1291d f5ab0ea696d5 virtio(4): Fix sizing of virtqueue allocation.
netbsd boot error: page fault in virtio_free_vq -1 27 1295d 1297d 3/3 1291d a66d32465828 Added check of pointer for allocated memory before release of resource
panic: kernel debugging assertion "off + len <= m_length(m0)" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel 2 syz 5 1300d 1318d 3/3 1298d 4ae0945c2b68 in6: make sure a user-specified checksum field is within a packet
panic: kernel debugging assertion "off + len <= m_length(m0)" failed: file "/syzkaller/managers/ci2-netbsd/kernel/sys/ke 2 syz 1 1300d 1300d 3/3 1298d 4ae0945c2b68 in6: make sure a user-specified checksum field is within a packet
panic: kernel debugging assertion "off + len <= m_length(m0)" failed: file "/syzkaller/managers/ci2-netbsd-kmsan/kernel/ 2 syz 3 1300d 1318d 3/3 1298d 4ae0945c2b68 in6: make sure a user-specified checksum field is within a packet
assert failed: fmi->fmi_mount->mnt_lower == NULL -1 syz, C 5 1340d 1349d 3/3 1334d 6587ec829804 When mounting a union file system set its lower mount only on success.
assert failed: size > NUM -1 syz, C 4 1367d 1367d 3/3 1365d e4a063c01894 It is not sufficient to have a comment /* Sanity check the size. */, also check the size is greater than zero and a multiple of DEV_BSIZE.
protection fault in __asan_load4 -1 syz, C 3 1453d 1606d 3/3 1388d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
page fault in __asan_load4 (3) -1 syz, C 64 1403d 1558d 3/3 1388d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
page fault in ppptioctl -1 syz, C 6 1442d 1547d 3/3 1388d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
protection fault in ppptioctl -1 syz, C 3 1415d 1606d 3/3 1388d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
UBSan: Undefined Behavior in ppptioctl -1 syz, C 9 1400d 1547d 3/3 1388d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
assert failed: bp->b_vp == vp -1 syz, C 125 1390d 2110d 3/3 1389d 03c421ecc1ee swap: disallow user opens of swap block device
panic: dead fs operation used (2) 2 syz, C 8 1399d 1409d 3/3 1398d ea1b2266a84e Harden layered file systems usage of field "mnt_lower" against forced unmounts of the lower layer.
page fault in VFS_STATVFS -1 syz 1 1406d 1406d 3/3 1398d ea1b2266a84e Harden layered file systems usage of field "mnt_lower" against forced unmounts of the lower layer.
UBSan: Undefined Behavior in ip_ctloutput -1 syz, C 22 1439d 1443d 3/3 1412d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
page fault in ip_ctloutput -1 syz, C 18 1440d 1442d 3/3 1412d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
UBSan: Undefined Behavior in tcp_bind_wrapper -1 syz, C 8 1440d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_shutdown_wrapper -1 syz, C 45 1439d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_bind_wrapper -1 syz, C 9 1441d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_recvoob_wrapper -1 syz, C 23 1439d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_sockaddr_wrapper -1 syz, C 32 1439d 1442d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in ip6_ctloutput -1 syz, C 5 1440d 1442d 3/3 1412d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
page fault in ip_setmoptions -1 syz, C 2 1442d 1442d 3/3 1412d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
page fault in ip6_ctloutput -1 syz, C 4 1440d 1442d 3/3 1412d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
UBSan: Undefined Behavior in tcp_listen_wrapper -1 syz, C 15 1439d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_connect_wrapper -1 syz, C 23 1440d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_recvoob_wrapper -1 syz, C 26 1439d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_sockaddr_wrapper -1 syz, C 25 1439d 1443d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_connect_wrapper -1 syz, C 18 1439d 1442d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_listen_wrapper -1 syz, C 17 1439d 1442d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_shutdown_wrapper -1 syz, C 36 1439d 1442d 3/3 1412d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in lf_advlock (3) -1 syz, C 2 1436d 1436d 3/3 1412d 7dc16c04c41d kern/vfs_lockf.c: Parenthesize to make arithmetic match check.
assert failed: !topdown || hint <= orig_hint -1 syz, C 474 1416d 1588d 3/3 1415d 94439ddc9c53 mmap(2): Avoid arithmetic overflow in search for free space.
page fault in umap_bypass -1 syz, C 9 1418d 1424d 3/3 1416d 65e6ed3eadc8 When testing whiteout support on the underlying file system union_mount() should not use a NULL componentname as not all file systems can handle it.
UBSan: Undefined behavior (7) -1 1 1423d 1423d 3/3 1416d 65e6ed3eadc8 When testing whiteout support on the underlying file system union_mount() should not use a NULL componentname as not all file systems can handle it.
UBSan: Undefined Behavior in umap_bypass -1 syz, C 30 1417d 1424d 3/3 1416d 65e6ed3eadc8 When testing whiteout support on the underlying file system union_mount() should not use a NULL componentname as not all file systems can handle it.
assert failed: fstrans_is_owner(mp) (2) -1 syz, C 3 1447d 1447d 3/3 1429d 78705bd7aed6 Tmpfs_mount() uses tmpfs_unmount() for cleanup if set_statvfs_info() fails. This will not work as tmpfs_unmount() needs a suspended file system.
UBSan: Undefined Behavior in quota1_handle_cmd_get -1 syz, C 2 1480d 1480d 3/3 1479d 86778a9b6d3d compat_50_quota: reject invalid quota id types.
UBSan: Undefined Behavior in bpf_ioctl (2) -1 syz, C 2 1499d 1499d 3/3 1498d 648957bead21 bpf(4): Reject bogus timeout values before arithmetic overflows.
page fault in raidioctl -1 1 1505d 1505d 3/3 1504d c6afd038f959 RAIDframe must be initialized for the RAIDFRAME_SET_LAST_UNIT and RAIDFRAME_SHUTDOWN ioctls.
assert failed: (l = dev->dv_detaching) == curlwp -1 syz, C 2 1508d 1508d 3/3 1506d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
UBSan: Undefined Behavior in config_detach_commit -1 syz, C 13 1507d 1518d 3/3 1506d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
panic: netbsd:vpanic+0x282 2 1 1526d 1526d 3/3 1506d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
page fault in __asan_load8 (6) -1 syz, C 23 1507d 1546d 3/3 1506d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
page fault in config_detach_commit -1 syz, C 8 1508d 1518d 3/3 1506d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
assert failed: dev->dv_detaching == curlwp -1 syz, C 236 1519d 1634d 3/3 1506d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
assert failed: kpreempt_disabled() (2) -1 syz 4 1515d 1516d 3/3 1509d 1e8b246aa870 KERNEL_LOCK(9): Need kpreempt_disable to ipi_send, oops.
assert failed: curcpu() != ci -1 syz, C 1 1515d 1515d 3/3 1514d e94ab9ad30fc KERNEL_LOCK(9): Record kernel lock holder in fast path too.
assert failed: lktype != LK_NONE -1 syz, C 8 1637d 1637d 3/3 1517d Fix mistake in error branch locking caused by previous changes. vput(vp) also unlocks vp, thus unlocking happens twice in error flow causing kernel to panic with failed assertion lktype != LK_NONE in vfs_vnode.c#778. Thanks riastradh with finding the issue.
assert failed: sn->sn_opencnt -1 18 1525d 1622d 3/3 1519d 5f6126977284 specfs: Refuse to open a closing-in-progress block device.
MSan: Uninitialized Memory in rum_attach -1 syz 2 1520d 1520d 3/3 1519d 940a6b14a9f7 rum(4): Avoid uninitialized garbage in failed register read.
assert failed: sd->sd_closing -1 syz, C 20 1551d 1638d 3/3 1519d 5f6126977284 specfs: Refuse to open a closing-in-progress block device.
assert failed: !fmi->fmi_gone -1 syz, C 3 1542d 1542d 3/3 1521d 6f3bdef36d97 Finish previous, evaluate the lowest mount on first access to "struct mount_info" and store it here so we no longer derefence the "struct mount" from fstrans_alloc_lwp_info().
page fault in vrefcnt -1 syz 2 1525d 1525d 3/3 1521d b683789d109b raidframe: reject invalid values for numCol and numSpares
MSan: Uninitialized Memory in rf_UnconfigureVnodes -1 syz 5 1525d 1527d 3/3 1521d b683789d109b raidframe: reject invalid values for numCol and numSpares
ASan: Unauthorized Access in rf_UnconfigureVnodes -1 syz 8 1525d 1527d 3/3 1521d b683789d109b raidframe: reject invalid values for numCol and numSpares
panic: kmem_free(ADDR, NUM) != allocated size NUM; overwrote? 2 syz, C 3 1530d 1530d 3/3 1521d d8c1cd5fc0b1 ptyfs: Don't copy out cookies past end of buffer.
UBSan: Undefined Behavior in vrefcnt -1 syz 5 1525d 1527d 3/3 1521d b683789d109b raidframe: reject invalid values for numCol and numSpares
UBSan: Undefined Behavior in sys_rasctl (2) -1 syz, C 4 1523d 1524d 3/3 1523d 21780199e5b9 rasctl(2): Avoid arithmetic overflow.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) (4) 2 syz, C 4 1525d 1525d 3/3 1524d 84b1e299c3e2 uirda(4): Unconditionally initializes mutexes and selq on attach.
netbsd boot error: panic: pmap_get_physpage: out of memory -1 51 1526d 1529d 3/3 1526d 785175e6ae3e allow KMSAN to work again by restoring the limiting of kva even with NKMEMPAGES_MAX_UNLIMITED. we used to limit kva to 1/8 of physmem but limiting to 1/4 should be enough, and 1/4 still gives the kernel enough kva to map all of the RAM that KMSAN has not stolen.
UBSan: Undefined Behavior in sys_rasctl -1 syz, C 10 1526d 1529d 3/3 1526d d0d3275611d2 rasctl(2): Avoid overflow in address range arithmetic.
ASan: Unauthorized Access in _prop_object_internalize_context_alloc -1 syz, C 6 1528d 1529d 3/3 1526d c9637813f932 proplib: Don't run off end of buffer with memcmp.
panic: ASan: Unauthorized Access In ADDR: Addr ADDR [NUM bytes, write, MallocRedZone] 2 syz, C 1 1530d 1530d 3/3 1526d d8c1cd5fc0b1 ptyfs: Don't copy out cookies past end of buffer.
UBSan: Undefined Behavior in lf_advlock (2) -1 syz, C 2 1530d 1530d 3/3 1526d 10f34aa31546 kern/vfs_lockf.c: Fix overflow in overflow detection.
UBSan: Undefined Behavior in physio.cold -1 syz, C 2 2044d 2044d 3/3 1552d c0577626b1c5 physio(9): Avoid left shift of negative in alignment check.
assert failed: l->l_lid == pls->pl_lwpid -1 syz, C 133 1553d 2332d 3/3 1552d 3f5ac2f440aa ptrace(PT_LWPSTATUS): Fix lid=0 case.
UBSan: Undefined Behavior in compat_43_ttioctl.cold (2) -1 syz, C 119 1554d 2143d 3/3 1552d 7a20d166be3d tty_43: Do unsigned arithmetic to avoid shift into sign bits.
UBSan: Undefined Behavior in cpuctl_ioctl.cold -1 syz, C 44 1555d 2025d 3/3 1553d 3b13b0053ea7 cpuio.h: Use uint8_t, not bool.
UBSan: Undefined Behavior in tty_get_qsize.cold.5 -1 syz, C 63 2220d 2235d 3/3 1553d ad11505eeb84 tty: Avoid undefined behaviour (left shift of 1 by 31 places overflows int)
UBSan: Undefined Behavior in compat_43_ttioctl.cold.0 -1 syz, C 122 2219d 2281d 3/3 1553d c32467e14928 tty_43: Check a bitset from userspace is valid before shifting it
assert failed: fli != NULL && !fli->fli_mountinfo->fmi_gone -1 syz, C 4 2039d 2040d 3/3 1554d 1d440e92c8c7 While one thread runs vgone() it is possible for another thread to grab a "v_mount" that will be freed before it uses this mount for fstrans_start().
panic: dead fs operation used 2 syz, C 109 1557d 2148d 3/3 1554d acc01a1ad2eb Make dead vfs ops "vfs_statvfs" and "vfs_vptofh" return EOPNOTSUPP. Both operations may originate from (possible dead) vnodes.
page fault in __asan_load8 (5) -1 syz, C 2 1556d 1556d 3/3 1555d 72412fe0bfca ifioctl(9): Don't touch ifconf or ifreq until command is validated.
page fault in compat_ifconf -1 syz, C 1 1556d 1556d 3/3 1555d 72412fe0bfca ifioctl(9): Don't touch ifconf or ifreq until command is validated.
UBSan: Undefined Behavior in compat_ifconf -1 syz, C 37 1556d 1761d 3/3 1555d 72412fe0bfca ifioctl(9): Don't touch ifconf or ifreq until command is validated.
UBSan: Undefined Behavior in udv_attach -1 syz, C 2 1558d 1558d 3/3 1557d a881a55ee8ab mmap(2): Prohibit overflowing offsets for non-D_NEGOFFSAFE devices.
MSan: Uninitialized Memory in pppioctl -1 syz, C 3 1597d 1620d 3/3 1557d 4bf2966bec75 net/if_ppp.c: Avoid user-controlled overrun in PPPIOCSCOMPRESS.
MSan: Uninitialized Memory in ifq_enqueue (2) -1 syz, C 6 1588d 1759d 3/3 1561d 8349f7b2392f sendto(2), recvfrom(2): Scrub internal struct msghdr on stack.
UBSan: Undefined Behavior in settime1.constprop.5 -1 syz, C 6 2219d 2319d 3/3 1561d d5c20c2f7d03 kern_time: prevent the system clock from being set too low or high
page fault in __asan_store1 -1 syz, C 23 1927d 1928d 3/3 1561d 6cfadad833d3 Improve Christos's vn_open fix.
UBSan: Undefined Behavior in route_filter -1 syz, C 3 1562d 1562d 3/3 1561d 9140f660c6fc route(4): Use m_copydata, not misaligned mtod struct access.
UBSan: Undefined Behavior in lf_advlock -1 syz, C 138 1564d 2325d 3/3 1562d b4a75906960e vfs(9): Avoid arithmetic overflow in lf_advlock.
assert failed: p != NULL (2) -1 syz, C 5 1582d 1582d 3/3 1562d fad5a7fdd1ff uvideo(4): Make alloc logic match free logic.
MSan: Uninitialized Memory in comintr (2) -1 syz 3 1601d 1604d 3/3 1562d 18a0da752d44 ktrace(9): Zero-initialize padding for ktr_psig records.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) (3) 2 syz, C 4 1563d 1563d 3/3 1562d 8a733328a1e6 upgt(4): Make upgt_free_cmd match upgt_alloc_cmd.
panic: LOCKDEBUG: Mutex error: mi_userret,116: sleep lock held 2 syz, C 704 1562d 2202d 3/3 1562d def1e7b831c7 sequencer(4): Fix lock leak in ioctl(FIOASYNC).
assert failed: (!cpu_intr_p() && !cpu_softintr_p()) || (pc->pc_pool.pr_ipl != IPL_NONE || cold || panicstr != NULL) -1 syz, C 5398 1563d 1811d 3/3 1563d 663332e33fad ktrace(9): Fix mutex detection in ktrcsw. 16f1641497a4 sleepq(9): Pass syncobj through to sleepq_block.
panic: vfs load failed for `compat_12', error NUM (2) 2 1 1638d 1638d 3/3 1563d 663332e33fad ktrace(9): Fix mutex detection in ktrcsw.
UBSan: Undefined Behavior in compat_50_route_output (2) -1 syz, C 3 1563d 1563d 3/3 1563d fea551d11726 route(4): Avoid unaligned access to struct rt_msghdr, take two.
assert failed: usp->tv_nsec >= NUM -1 syz, C 31 1563d 1564d 3/3 1563d aedc6df2fcba recvmmsg(2): More timespec validation.
assert failed: usp->tv_nsec < ADDRL -1 syz, C 79 1563d 1564d 3/3 1563d aedc6df2fcba recvmmsg(2): More timespec validation.
panic: ernel diagnostic assertion "(!cpu_intr_p() && !cpu_softintr_p()) || (pc->pc_pool.pr_ipl != IPL_NONE || cold || pa 2 1 1637d 1637d 3/3 1563d 663332e33fad ktrace(9): Fix mutex detection in ktrcsw.
page fault in rf_fail_disk -1 syz, C 1 1566d 1566d 3/3 1564d c3db04994218 RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.
page fault in uaudio_attach -1 syz, C 3 1752d 1753d 3/3 1564d 217df124906d Fix a null-deref
assert failed: pipe != NULL -1 syz, C 5 1757d 2117d 3/3 1564d 4f71c0ceaaeb umidi(4): Fix fencepost in error branch.
panic: tcp_output: no template 2 syz, C 5612 1566d 2783d 3/3 1564d abfa6438367c tcp(4): Bail early on sendoob if not connected.
assert failed: tp->t_oproc != NULL -1 syz, C 3 1579d 1579d 3/3 1564d 869f6ce4e7c0 remove KASSERT() checking for t_oproc at open since assigning this line discipline to a pty may not have that set. Instead do a runtime check to ensure that the function exists before calling it, as ttstart() handles it.
UBSan: Undefined Behavior in rf_fail_disk -1 syz, C 2 1566d 1566d 3/3 1564d c3db04994218 RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.
UBSan: Undefined Behavior in gettimeleft -1 syz, C 20 1571d 2034d 3/3 1564d bb260a3b0b8b kern: Avoid arithmetic overflow in gettimeleft.
UBSan: Undefined Behavior in sys_recvmmsg -1 syz, C 491 1566d 2254d 3/3 1564d 8e66f4be029b recvmmsg(2): Avoid arithmetic overflow in timeout calculations.
ASan: Unauthorized Access in ktr_kuser -1 syz, C 23 1574d 1810d 3/3 1565d 37e3b6d69aff sendmsg(2): Avoid buffer overrun in ktrace of invalid cmsghdr.
UBSan: Undefined Behavior in ts2timo (3) -1 syz, C 16 1567d 1668d 3/3 1566d f283286a7e41 kern: Use timespecsubok in ts2timo.
assert failed: requested_size > NUM -1 syz, C 7 1568d 1591d 3/3 1566d 503bc9b44ec6 umcs(4): Reject invalid interrupt endpoints.
UBSan: Undefined Behavior in dosetitimer.part.NUM -1 syz, C 147 1567d 1689d 3/3 1566d 5d334e4f13e3 setitimer(2): Guard against overflow in arithmetic.
UBSan: Undefined behavior (5) -1 1 1583d 1583d 3/3 1566d 2d711168d1f6 route(4): Avoid unaligned access to struct rt_msghdr.
assert failed: ci != NULL -1 syz, C 4 1596d 1596d 3/3 1566d bfb356306710 opencrypto(9): Fix missing initialization in error branch.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) (2) 2 syz, C 8 1566d 1602d 3/3 1566d 69ae1015704b emdtv(4): More attach/detach bugs.
UBSan: Undefined Behavior in itimer_callout -1 syz, C 6 1574d 1629d 3/3 1566d 7152269db67f setitimer(2): Avoid arithmetic overflow in periodic bookkeeping.
UBSan: Undefined Behavior in uao_detach -1 2 1635d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
ASan: Unauthorized Access in uvm_unmap_detach -1 syz, C 7 1635d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
page fault in udv_detach -1 1 1635d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
panic: vrelel: bad ref count 2 syz, C 2 1634d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
ASan: Unauthorized Access in uao_reference -1 1 1635d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
assert failed: (use & VUSECOUNT_MASK) > NUM -1 syz, C 22 1634d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
page fault in uvm_mmap -1 1 1635d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
panic: [ NUM.ADDR] vpanic() at netbsd:vpanic+0x2f2 2 1 1635d 1635d 3/3 1634d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
ASan: Unauthorized Access in audio_track_set_format -1 1 1638d 1638d 3/3 1634d fd486f88f37d audio(4): Wait for opens to drain in detach.
assert failed: VOP_ISLOCKED(vp) == LK_EXCLUSIVE -1 syz, C 73 1638d 1638d 3/3 1635d f5e648f9554a sequencer(4): VOP_CLOSE requires vnode lock.
UBSan: Undefined Behavior in rnd_detach_source -1 syz, C 9 1735d 1736d 3/3 1635d dafad59dab33 ucom(4): Make sure rndsource is attached before use and detach.
panic: spkr1 at audio1kernel diagnostic assertion "(target->prt_class == class)" failed: file "/syzkaller/managers/ci2-n 2 1 1655d 1655d 3/3 1635d 65a628cc3991 audio(4): Use d_cfdriver/devtounit to avoid open/detach races.
ASan: Unauthorized Access in uvideo_attach -1 1 1716d 1716d 3/3 1635d df8a105e9437 uvideo(4): Parse descriptors more robustly.
netbsd boot error: fault in supervisor mode -1 9 1652d 1652d 3/3 1635d e86caeaead15 cgd(4): Omit technically-correct-but-broken adiantum dependency again.
netbsd boot error: assert failed: locks == curcpu()->ci_biglock_count -1 2 1655d 1655d 3/3 1635d a2bbd8e60824 Revert "kern: Sprinkle biglock-slippage assertions."
netbsd boot error: UBSan: Undefined Behavior in node_insert -1 1 1655d 1655d 3/3 1635d 8d4ad4784038 thmap(9): Handle memory allocation failure in root_try_put.
netbsd boot error: assert failed: ci->ci_ilevel <= IPL_VM -1 18 1653d 1653d 3/3 1635d 437c9c4e0b76 cgd(4): Remove recently added dependency on adiantum.
MSan: Uninitialized Memory in umcs7840_attach -1 syz, C 5 1635d 1637d 3/3 1635d 36d5987e481d umcs(4): Avoid using uninitialized data if register read fails.
netbsd boot error: assert failed: curlwp->l_pflag & LP_BOUND -1 36 1661d 1661d 3/3 1635d 517fa18875c3 entropy(9): Call entropy_softintr while bound to CPU.
netbsd boot error: MSan: Uninitialized Memory in bus_dmamap_sync -1 177 1708d 1716d 3/3 1653d 9fdc83c65c2c Initialize "replun" -- found with KMSAN.
ASan: Unauthorized Access in umidi_attach -1 syz, C 69 1667d 2294d 3/3 1665d 9f7e8016feb4 umidi(4): Parse descriptors a little more robustly.
ASan: Unauthorized Access in usbd_get_no_alts -1 syz, C 4 1752d 2028d 3/3 1665d 4fc17b686835 usbdi(9): Fix usbd_get_no_alts.
assert failed: filter->bf_insn != NULL -1 syz, C 114 1671d 2249d 3/3 1669d f9a07bf7167b bpf(4): Handle null bf_insn on free.
UBSan: Undefined Behavior in do_posix_fadvise -1 1 1670d 1670d 3/3 1669d 0a3e258bc394 posix_fadvise(2): Detect arithmetic overflow without UB.
assert failed: fvp != tvp -1 syz, C 11 1816d 1816d 3/3 1669d Don't use genfs_rename_knote() in the "rename foo over hard-link to itself" case, which simply results in removing the "from" name; there are assertions in genfs_rename_knote() that are too strong for that case.
assert failed: !(timo == NUM && intr == false) -1 syz, C 4 1820d 1820d 3/3 1669d - microtime -> microuptime - avoid kpause with timeo=0
assert failed: kpreempt_disabled() -1 syz, C 12 1670d 1671d 3/3 1670d ae4ad17c1747 tun(4): Fix bug introduced in previous locking change.
assert failed: requested_size > 0 (2) -1 syz, C 20 1752d 2116d 3/3 1670d d56fa848ee30 umidi(4): Bail early if no endpoints.
panic: ugen0 at uhub3kernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd-kmsan/kernel/ 2 1 1677d 1677d 3/3 1670d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: pb->pb_pathcopyuses == NUM -1 syz, C 3 1741d 1741d 3/3 1670d 848da1ee2abf ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.
assert failed: maxblksize > NUM -1 syz, C 4 1721d 1737d 3/3 1670d 6103caa238dd pad(4): Do harmless, not harmful, integer truncation.
panic: pad3: outputs: 44100Hz, NUM-bit, stereo 2 syz, C 1 1737d 1737d 3/3 1670d 6103caa238dd pad(4): Do harmless, not harmful, integer truncation.
panic: audio0: detached 2 1 1721d 1721d 3/3 1670d 6103caa238dd pad(4): Do harmless, not harmful, integer truncation.
UBSan: Undefined Behavior in vn_open -1 syz, C 34 1927d 1928d 3/3 1670d PR/56286: Martin Husemann: Fix NULL deref on kmod load. - No need to set ret_domove and ret_fd in the regular case, they are meaningless - KASSERT instead of setting errno and then doing the NULL deref.
UBSan: Undefined Behavior in sys_lseek -1 syz, C 2 2209d 2209d 3/3 1670d d1730a577782 vfs(9): Avoid arithmetic overflow in vn_seek.
assert failed: pb->pb_pathcopy == NULL -1 syz, C 2 1741d 1741d 3/3 1670d 848da1ee2abf ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.
panic: cdce0: could not find data bulk in 2 syz 2 1756d 1756d 3/3 1670d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: KERNEL_LOCKED_P() -1 syz, C 32 1945d 1945d 3/3 1670d ea2ec439285b autoconf(9): Take kernel lock in a few entry points.
panic: uhidev0: no report descriptor 2 syz 18 1681d 2281d 3/3 1670d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: ret == 0 -1 syz, C 6950 1672d 2290d 3/3 1670d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: _bpfattach: out of memory (2) 2 3 1733d 1735d 3/3 1670d 6583daf00fe7 bpf(4): Nix KM_NOSLEEP and prune dead branch.
panic: vfs load failed for `compat_12', error NUM 2 1 1703d 1703d 3/3 1670d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: un->un_ops->uno_init -1 syz, C 72 1680d 1682d 3/3 1670d ee8fc1216476 usbnet(9): uno_init is now optional.
panic: port NUM (addr NUM) disconnected 2 2 1709d 1737d 3/3 1670d a977a2e5ca55 tun(4): Reduce lock from IPL_NET to IPL_SOFTNET.
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,517: spin lock held 2 syz, C 3 1916d 1916d 3/3 1671d a977a2e5ca55 tun(4): Reduce lock from IPL_NET to IPL_SOFTNET.
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,516: spin lock held (2) 2 syz, C 1221 1671d 2298d 3/3 1671d a977a2e5ca55 tun(4): Reduce lock from IPL_NET to IPL_SOFTNET.
UBSan: Undefined Behavior in ntp_adjtime1.cold -1 syz 17 1687d 1722d 3/3 1671d deeafa20c413 ntp(9): Avoid left shift of negative.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) 2 syz, C 16 1708d 1759d 3/3 1671d c541dc45f013 auvitek(4): Fix i2c detach if attach failed.
ASan: Unauthorized Access in usbd_fill_iface_data (2) -1 syz, C 44 1674d 2127d 3/3 1671d 76003ab85971 usb: Parse descriptors a little more robustly.
UBSan: Undefined Behavior in nanosleep1 -1 syz, C 2 1673d 1673d 3/3 1671d 9b26ef97d982 kern: Handle clock winding back in nanosleep1 without overflow.
UBSan: Undefined Behavior in ts2timo (2) -1 syz, C 9 1675d 1767d 3/3 1671d 4a85d208135c kern: Fix fencepost error in ts2timo overflow checks.
panic: kernel debugging assertion "pserialize_not_in_read_section()" failed: file "/syzkaller/managers/ci2-netbsd-kmsan/ (2) 2 1 1687d 1687d 3/3 1671d c3efd236bb39 kern: Fix ordering of loads for pid_table and pid_tbl_mask.
panic: todo(ADDR) > MAXPHYS; minphys broken 2 syz, C 98 1675d 2287d 3/3 1671d e8535b94fbff kern: Use harmless, not harmful, integer truncation in physio.
MSan: Uninitialized Memory in proc_find_lwp_unlocked (3) -1 2 1759d 1840d 3/3 1671d c3efd236bb39 kern: Fix ordering of loads for pid_table and pid_tbl_mask.
UBSan: Undefined Behavior in ntp_adjtime1 (2) -1 syz 4 1680d 1690d 3/3 1671d 1037494fc94a ntp(9): Clamp ntv->offset to avoid arithmetic overflow on adjtime.
UBSan: Undefined Behavior in vn_seek -1 syz, C 3 1674d 1731d 3/3 1671d d1730a577782 vfs(9): Avoid arithmetic overflow in vn_seek.
panic: kernel debugging assertion "pserialize_not_in_read_section()" failed: file "/syzkaller/managers/ci2-netbsd-kubsan 2 1 1686d 1686d 3/3 1671d c3efd236bb39 kern: Fix ordering of loads for pid_table and pid_tbl_mask.
UBSan: Undefined Behavior in ktrace_thread -1 syz, C 74 1673d 1810d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
netbsd boot error: panic: kmem_intr_free: zero size with pointer ADDR -1 12 1716d 1716d 3/3 1672d 3d5b3d401fe6 scsi(9): Handle bogus number of LUNs in SCSI_REPORT_LUNS.
UBSan: Undefined Behavior in config_devalloc -1 syz, C 149 2147d 2264d 3/3 1672d 1c141a083828 autoconf(9): Refuse to consider negative unit numbers in cfdata.
panic: TAILQ_* forw ADDR /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/kern/kern_ktrace.c:LINE 2 syz, C 5 1729d 1763d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
ASan: Unauthorized Access in cryptodev_mop -1 1 1728d 1728d 3/3 1672d 6bc42b34d483 crypto(4): Refuse count>1 for old CIOCNCRYPTM.
panic: TAILQ_* forw ADDR /syzkaller/managers/ci2-netbsd/kernel/sys/kern/kern_ktrace.c:LINE 2 syz, C 22 1674d 1761d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
ASan: Unauthorized Access in ktrace_thread -1 1 1747d 1747d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
MSan: Uninitialized Memory in pathbuf_destroy -1 syz, C 3 1741d 1741d 3/3 1672d 848da1ee2abf ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.
panic: genfs: bad op (2) 2 syz, C 6 1672d 1746d 3/3 1672d 292edadd0bae kernfs: Just fail with EOPNOTSUPP, don't panic, on VOP_BMAP.
page fault in ktrace_thread -1 syz 82 1673d 1768d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
panic: : playback 2 syz, C 1 1721d 1721d 3/3 1672d 6103caa238dd pad(4): Do harmless, not harmful, integer truncation.
panic: TAILQ_PREREMOVE head ADDR elm ADDR /syzkaller/managers/ci2-netbsd/kernel/sys/kern/kern_ktrace.c:LINE 2 syz, C 56 1672d 1810d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
panic: TAILQ_PREREMOVE head ADDR elm ADDR /syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/kern/kern_ktrace.c:LINE 2 syz 16 1673d 1804d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
UBSan: Undefined Behavior in adjtime1 -1 syz, C 16 1673d 1716d 3/3 1672d c7190692f73e kern: Clamp time_adjtime to avoid overflow.
panic: TAILQ_PREREMOVE head ADDR elm ADDR /syzkaller/managers/ci2-netbsd/kernel/sys/kern/kern_ktrace.c:LINEuhub5: device 2 1 1743d 1743d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
MSan: Uninitialized Memory in emdtv_i2c_exec -1 syz, C 5 2122d 2123d 3/3 1672d 7c75d5789d19 emdtv(4): If register read fails, read as all zero.
MSan: Uninitialized Memory in ktrace_thread -1 syz, C 450 1673d 1811d 3/3 1672d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
panic: uhidev0: (0x0000) syz (0x0000), rev NUM.NUM/NUM.NUM, addr NUM, iclass NUM/NUM 2 1 1717d 1717d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: l diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/dev/usb/vhci.c 2 1 1748d 1748d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: ugen0: setting configuration index NUM failed 2 2 1721d 1763d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: urtwn0: failed to set configuration, err=IOERROR 2 1 1719d 1719d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhidev0: detached 2 3 1683d 1746d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhub5: device problem, disabling port NUM 2 6 1674d 1758d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: cdce0: faking address 2 1 1692d 1692d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
UBSan: Undefined Behavior in compat_30_sys_getdents -1 syz, C 3 1676d 1676d 3/3 1672d 11f34addeca0 compat_30: Avoid what might be technically undefined behaviour.
panic: port NUM configuration NUM interface 0kernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers 2 syz 1 1736d 1736d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: device problem, disabling port NUM 2 1 1740d 1740d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: cdce0: detached 2 1 1683d 1683d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhidev0: no input interrupt endpoint 2 syz, C 6 1728d 1761d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhub4: device problem, disabling port NUM 2 7 1691d 1761d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: "/syzkaller/managers/ci2-netbsd/kernel/sys/dev/usb/vhci.c", line NUM 2 1 1744d 1744d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhub3: device problem, disabling port NUM 2 6 1682d 1749d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: (addr NUM) disconnected 2 1 1685d 1685d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhub0: device problem, disabling port NUM 2 8 1673d 1746d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: urtwn0: failed to set configuration, err=TIMEOUT 2 1 1753d 1753d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: [ NUM.ADDR] vpanic() at netbsd:vpanic+0x2d0 2 6 1677d 1832d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: ernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/dev/usb/vh 2 4 1685d 1795d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhub1: device problem, disabling port NUM 2 1 1703d 1703d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
UBSan: Undefined Behavior in bpf_ioctl -1 syz, C 2 1706d 1706d 3/3 1672d 0c325362987e bpf(4): Clamp read timeout to INT_MAX ticks to avoid overflow.
panic: ernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd/kernel/sys/dev/usb/vhci.c", 2 1 1736d 1736d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: [ NUM.ADDR] kernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd-kmsan/kernel/sy 2 1 1694d 1694d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: [ NUM.ADDR] vpanic() at netbsd:vpanic+0x9ec 2 2 1682d 1742d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
UBSan: Undefined Behavior in ffs_init_vnode.cold -1 syz, C 2 1676d 1676d 3/3 1672d 8fa88ee7afc4 ffs: Fix 64-bit inode integer truncation.
UBSan: Undefined Behavior in soreceive (2) -1 1 1681d 1681d 3/3 1672d 68d507c1cf2c kern: m_copym(M_DONTWAIT) can fail; handle that case gracefully.
panic: ugen0 at uhub4 port 1kernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd/kernel 2 1 1733d 1733d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: [ NUM.ADDR] kernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd/kernel/sys/dev 2 2 1747d 1760d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhub2: device problem, disabling port NUM 2 2 1675d 1726d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: nostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/sys/dev/usb/vhci.c", lin 2 1 1688d 1688d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: [ NUM.ADDR] kernel diagnostic assertion "ret == NUM" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel/ 2 1 1729d 1729d 3/3 1672d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
ASan: Unauthorized Access in psignal (2) -1 syz, C 7 1716d 2076d 3/3 1679d 156c65eb54de usb(4): Use atomics for usb_async_proc.
panic: kernel diagnostic assertion "searchdir != foundobj" failed: file "/syzkaller/managers/ci2-netbsd- 2 1 1730d 1730d 3/3 1702d feba92b89b21 Remove the assertion "searchdir != foundobj" from lookup_crossmount().
assert failed: searchdir != foundobj -1 syz, C 2326 1703d 2260d 3/3 1702d feba92b89b21 Remove the assertion "searchdir != foundobj" from lookup_crossmount().
panic: [ NUM.ADDR] kernel diagnostic assertion "searchdir != foundobj" failed: file "/syzkaller/managers/ci2-netbsd-kms 2 1 1729d 1729d 3/3 1702d feba92b89b21 Remove the assertion "searchdir != foundobj" from lookup_crossmount().
panic: spkr1 at audio1kernel diagnostic assertion "searchdir != foundobj" failed: file "/syzkaller/managers/ci2-netbsd/k 2 1 1725d 1725d 3/3 1702d feba92b89b21 Remove the assertion "searchdir != foundobj" from lookup_crossmount().
panic: vfs load failed for `udf', error 2kernel diagnostic assertion "searchdir != foundobj" failed: file "/syzkaller/ma 2 1 1723d 1723d 3/3 1702d feba92b89b21 Remove the assertion "searchdir != foundobj" from lookup_crossmount().
UBSan: Undefined Behavior in ntp_adjtime1 -1 1 1709d 1709d 3/3 1707d af0d3919a307 kernel: Avoid arithmetic overflow in ntp_adjtime.
UBSan: Undefined behavior (3) -1 1 1763d 1763d 3/3 1762d fafcdc38d472 Use unsigned to avoid undefined behavior. Found by kUBSan.
UBSan: Undefined Behavior in usb_free_device -1 syz 1 1824d 1824d 3/3 1821d d021b7463a20 Revert "usb: uhub: remove unnecessary delays when powering on ports"
page fault in __asan_load1 -1 1 1824d 1824d 3/3 1821d d021b7463a20 Revert "usb: uhub: remove unnecessary delays when powering on ports"
UBSan: Undefined Behavior in pppasyncstart.cold -1 18 1848d 1870d 3/3 1838d daf713f1d819 Use unsigned to avoid undefined behavior in pppasyncstart().
panic: _uvm_mapent_check: bad entry ADDR, line 2299 2 syz, C 2 1932d 1932d 3/3 1926d 388be8fd3b90 in uvm_mapent_forkzero(), if the old entry was an object mapping, appease a debug check by setting the new entry offset to zero along with setting the new entry object pointer to NULL.
panic: _uvm_mapent_check: bad entry ADDR, line 1704 2 syz, C 2 1932d 1932d 3/3 1926d 388be8fd3b90 in uvm_mapent_forkzero(), if the old entry was an object mapping, appease a debug check by setting the new entry offset to zero along with setting the new entry object pointer to NULL.
panic: _uvm_mapent_check: bad entry ADDR, line 2306 2 syz, C 37 2000d 2273d 3/3 1926d 388be8fd3b90 in uvm_mapent_forkzero(), if the old entry was an object mapping, appease a debug check by setting the new entry offset to zero along with setting the new entry object pointer to NULL.
panic: genfs: bad op 2 syz, C 31 2004d 2220d 3/3 1929d e3beb3764561 VOP_BMAP() may be called via ioctl(FIOGETBMAP) on any vnode that applications can open. change various pseudo-fs *_bmap methods return an error instead of panic.
netbsd boot error: UBSan: Undefined Behavior in AcpiNsRootInitialize -1 120 1959d 1964d 3/3 1958d d5b984e0de7e avoid dereferencing a constant string address as a UINT32 pointer, KUBSAN complains about bad alignment.
UBSan: Undefined Behavior in ts2timo -1 syz, C 40 1968d 2326d 3/3 1958d 6f5e84c07140 ts2timo(9): refactor TIMER_ABSTIME handling
assert failed: (cnp->cn_flags & LOCKPARENT) == 0 || searchdir == NULL || VOP_ISLOCKED(searchdir) == LK_EXCLUSIVE (2) -1 syz, C 1614 1971d 2298d 3/3 1958d 4af96c872b34 Honor LOCKPARENT for ".." of the root directory.
UBSan: Undefined Behavior in free_pipe -1 syz, C 6 2047d 2117d 3/3 1958d 8c601f6c5ae7 fix free_all_endpoints() to not try calling free_pipe() when no endpoints are allocated; this can happen during config_detach() after attach fails
page fault in free_all_endpoints -1 syz, C 2 2117d 2117d 3/3 1958d 8c601f6c5ae7 fix free_all_endpoints() to not try calling free_pipe() when no endpoints are allocated; this can happen during config_detach() after attach fails
UBSan: Undefined Behavior in fss_close -1 syz, C 3 2167d 2177d 3/3 2113d e5ad6630f80f Check the return value of device_lookup_private against NULL.
UBSan: Undefined Behavior in quota1_handle_cmd_quotaoff -1 syz, C 22 2124d 2256d 3/3 2114d 479d6bd7aed1 Avoid potentially accessing an array with an index out of range.
UBSan: Undefined Behavior in quota1_handle_cmd_quotaon -1 syz, C 310 2117d 2262d 3/3 2114d 479d6bd7aed1 Avoid potentially accessing an array with an index out of range.
UBSan: Undefined Behavior in fsetown -1 syz, C 643 2115d 2299d 3/3 2115d fe22bed11b62 Avoid negating the minimum size of pid_t (this overflows).
assert failed: semcnt >= 0 -1 syz, C 1460 2125d 2267d 3/3 2125d d1d48122addb when updating the per-uid "semcnt", decrement the counter for the uid that created the ksem, not the uid of the process freeing the ksem. fixes PR 55509.
UBSan: Undefined Behavior in dosetitimer -1 syz, C 62 2134d 2134d 3/3 2134d 46944f1c4d5d Fix an uninitialized pointer deref introduced in rev 1.207.
assert failed: ! (2) -1 syz, C 4 2158d 2158d 3/3 2149d 98e71a6eeb52 When validating the mount device string make sure its length is below *data_len and below PATH_MAX.
panic: Suspending fresh file system failed 2 syz 44 2151d 2186d 3/3 2150d 0b5a6352dcf7 We have to ignore interrupts when suspending here the same way we have to do with revoke.
assert failed: fstrans_is_owner(mp) -1 syz, C 789 2152d 2260d 3/3 2152d d8a571076ba6 Suspend file system before unmounting in mount_domount() error path to prevent diagnostic assertions from unmount/flush.
panic: kernel diagnostic assertion "fstrans_is_owner(mp)" failed: file "/syzkaller/managers/netbsd-kmsan/kernel/s 2 1 2204d 2204d 3/3 2152d d8a571076ba6 Suspend file system before unmounting in mount_domount() error path to prevent diagnostic assertions from unmount/flush.
panic: [ 222.ADDR] kernel diagnostic assertion "fstrans_is_owner(mp)" failed: file "/syzkaller/managers/netbsd-kmsan/ker 2 1 2216d 2216d 3/3 2152d d8a571076ba6 Suspend file system before unmounting in mount_domount() error path to prevent diagnostic assertions from unmount/flush.
UBSan: Undefined Behavior in ttioctl -1 1 2275d 2275d 3/3 2152d bf7b939a1a2d tty: Negating INT_MIN will overflow int, bail out with EINVAL
assert failed: (length != 0 || extblocks || LIST_EMPTY(&ovp->v_cleanblkhd)) -1 syz, C 6 2179d 2275d 3/3 2152d 9235b59ee381 Lock the vnode while calling VOP_BMAP() for FIOGETBMAP.
UBSan: Undefined behavior -1 8 2185d 2260d 3/3 2152d ad11505eeb84 tty: Avoid undefined behaviour (left shift of 1 by 31 places overflows int)
panic: kernel diagnostic assertion "fstrans_is_owner(mp)" failed: file "/syzkaller/managers/netbsd-kmsan/kernel 2 1 2206d 2206d 3/3 2152d d8a571076ba6 Suspend file system before unmounting in mount_domount() error path to prevent diagnostic assertions from unmount/flush.
panic: kernel diagnostic assertion "fstrans_is_owner(mp)" failed: file "/syzkaller/managers/netbsd-kubsan/kernel/sys/ke 2 1 2205d 2205d 3/3 2152d d8a571076ba6 Suspend file system before unmounting in mount_domount() error path to prevent diagnostic assertions from unmount/flush.
UBSan: Undefined Behavior in compat_43_ttioctl.cold -1 syz, C 116 2154d 2209d 3/3 2152d c32467e14928 tty_43: Check a bitset from userspace is valid before shifting it
UBSan: Undefined Behavior in tty_get_qsize -1 syz, C 19 2235d 2281d 3/3 2234d 699b2c0a0a86 Add a check to prevent shift by -1. Not really important in this case, but to appease KUBSAN.
assert failed: rb_tree_find_node(&ugenif.tree, &sc->sc_unit) == sc -1 syz, C 8 2244d 2245d 3/3 2243d 257aaf9afb72 Fix ugen detach after partial attach.
ASan: Unauthorized Access in nvlist_copyin -1 syz, C 2 2269d 2269d 3/3 2243d 17ffbcbdab9a Add missing cases, to prevent memory corruption.
assert failed: 0 <= space && space <= ifc->ifc_len -1 syz, C 4 2278d 2278d 3/3 2276d 0be10c48cf6f Don't accept negative value.
page fault in statvfs_to_statfs12_copy -1 syz, C 5 2296d 2296d 3/3 2296d f2af77cb3adc Yet another idiotic compat syscall that was developed with literally zero test made. Simply invoking this syscall with _valid parameters_ triggers a fatal fault, because the kernel tries to write to userland addresses.
page fault in usbd_add_drv_event -1 syz, C 2 2297d 2297d 3/3 2296d 6cac1dde29fb Fix NULL deref on attach failure. Found via vHCI fuzzing.
UBSan: Undefined Behavior in pipe_ioctl -1 syz, C 1 2298d 2298d 3/3 2296d 60b6b2cd7463 Fix NULL deref. The original code before Jaromir's cleanup had an #ifndef block that wrongly contained the 'else' statement, causing the NULL check to have no effect.
ASan: Unauthorized Access in m_copydata -1 syz, C 1 2299d 2299d 3/3 2298d 305ae8585db2 Ensure sockaddrs have valid lengths for RO_MISSFILTER.
assert failed: (cnp->cn_flags & LOCKPARENT) == 0 || searchdir == NULL || VOP_ISLOCKED(searchdir) == LK_EXCLUSIVE -1 syz, C 2815 2299d 2347d 3/3 2299d 3e5fbb6583a3 remove special handling for symbolic links for COMPAT_43 lstat, it's not necessary; this removes the only places in kernel which did namei LOOKUP with LOCKPARENT
UBSan: Undefined Behavior in tunwrite -1 syz, C 5 2300d 2300d 3/3 2299d 521e747162a6 Hum. Fix NULL deref triggerable with just write(0).
assert failed: p != NULL -1 1 2398d 2398d 3/3 2315d 3c214a3d995e Fix bohr bug triggered only once by syzkaller 2,5 months ago.
UBSan: Undefined Behavior in db_read_bytes -1 1 2319d 2319d 3/3 2317d 0f48bfb53e25 If the frame is not aligned, leave right away. This place probably needs to be revisited, because %rbp could easily contain garbage.
netbsd boot error: MSan: Uninitialized Memory in pmap_ctor -1 60 2322d 2326d 3/3 2321d 248fe10b7a27 Reported-by: syzbot+6dd5a230d19f0cbc7814@syzkaller.appspotmail.com
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,516: spin lock held 2 syz, C 95 2322d 2341d 3/3 2321d 134b16ca64ab Reported-by: syzbot+c1770938bb3fa7c085f2@syzkaller.appspotmail.com Reported-by: syzbot+ae26209c7d7f06e0b29f@syzkaller.appspotmail.com
ASan: Unauthorized Access in usbd_fill_iface_data -1 syz, C 5 2323d 2323d 3/3 2321d 3774168381e9 If we failed because we didn't encounter an endpoint, do not attempt to read 'ed', because its value is past the end of the buffer, and we thus perform out-of-bounds accesses.
panic: kmem_intr_free: zero size with pointer ADDR 2 syz, C 1 2323d 2323d 3/3 2321d 39045d90bd43 also set ifc->ui_endpoints to NULL in usbd_free_iface_data() when the value is freed, to make it impossible to re-enter this by mistake
UBSan: Undefined Behavior in process_read_fpregs -1 syz, C 2 2329d 2329d 3/3 2321d 4660020b03f4 Introduce PTRACE_REGS_ALIGN, and on x86, enforce a 16-byte alignment, due to fpregs having fxsave which requires 16-byte alignment.
ASan: Unauthorized Access in usb_free_device -1 syz, C 3 2322d 2323d 3/3 2321d 869e8f7b28b0 Reset ud_ifaces and ud_cdesc to NULL, to prevent use-after-free in usb_free_device().
assert failed: pmap->pm_ncsw == lwp_pctr() (2) -1 4 2324d 2326d 3/3 2321d 2ac4ea76ffcd Reported-by: syzbot+fd9be59aa613bbf4eba8@syzkaller.appspotmail.com Reported-by: syzbot+15dd4dbac6ed159faa4a@syzkaller.appspotmail.com Reported-by: syzbot+38fa02d3b0e46e57c156@syzkaller.appspotmail.com
assert failed: !pmap_extract(pmap, va, NULL) -1 syz 1 2398d 2398d 3/3 2335d 4cd60295b346 Reported-by: syzbot+3e3c7cfa8093f8de047e@syzkaller.appspotmail.com
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,512: locking against myself 2 syz, C 52 2335d 2341d 3/3 2335d fbbe5c9112a1 Reported-by: syzbot+0f38e4aed17c14cf0af8@syzkaller.appspotmail.com Reported-by: syzbot+c1770938bb3fa7c085f2@syzkaller.appspotmail.com Reported-by: syzbot+92ca248f1137c4b345d7@syzkaller.appspotmail.com Reported-by: syzbot+acfd688740461f7edf2f@syzkaller.appspotmail.com
MSan: Uninitialized Memory in ifq_enqueue -1 1 2339d 2339d 3/3 2339d 145523e8345f igmp_sendpkt() expects ip_output() to set 'imo.imo_multicast_ttl' into 'ip->ip_ttl'; but ip_output() won't if the target is not a multicast address, meaning that the uninitialized 'ip->ip_ttl' byte gets sent to the network. This leaks one byte of kernel heap.
MSan: Uninitialized Memory in nanosleep1 -1 syz, C 8 2355d 2388d 3/3 2339d d9377f809390 Fix uninitialized memory access. Found by KMSAN.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/x86/x86/intr.c:LINE, member access -1 15 2351d 2353d 3/3 2349d 37beba86ee63 Explicitly align to 8 bytes, found by kUBSan.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_cache.c:LINE, left shift of AD -1 36 2392d 2392d 3/3 2384d 395a577cab63 Pacify a syzbot complaint about bit shifting.
assert failed: pmap->pm_stats.resident_count == PDP_SIZE -1 syz 22 2395d 2396d 3/3 2395d 398f36d55ce0 PR port-amd64/55083 (assertion "pmap->pm_stats.resident_count == PDP_SIZE" failed)
assert failed: ptp->wire_count == 1 -1 syz, C 16 2396d 2397d 3/3 2396d 4538c4a0a4c9 Pacify assertion in a failure path.
assert failed: (opte & (PTE_A | PTE_P)) != PTE_A -1 syz, C 15 2397d 2399d 3/3 2397d 4f0135d6fae3 - pmap_enter(): under low memory conditions, if PTP allocation succeeded and then PV entry allocation failed, PTP pages were being freed without their struct pmap_page being reset back to the non-PTP setup, which then caused havoc with pmap_page_removed(). Fix it.
panic: pmap_check_pv: ADDR/ADDR missing on pp ADDR 2 syz 60 2397d 2397d 3/3 2397d 4f0135d6fae3 - pmap_enter(): under low memory conditions, if PTP allocation succeeded and then PV entry allocation failed, PTP pages were being freed without their struct pmap_page being reset back to the non-PTP setup, which then caused havoc with pmap_page_removed(). Fix it.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_mount.c:LINE, member access wi -1 1446 2407d 2483d 3/3 2407d 431ed6f61bc2 - Pad kmem cache names with zeros so vmstat -m and -C are readable. - Exclude caches with size not a factor or multiple of the coherency unit. 4c7232d4a136 KMEM_SIZE: append the size_t to the allocated buffer, rather than prepending, so it doesn't screw up the alignment of the buffer.
ASan: Unauthorized Access in ifreq_setaddr -1 syz, C 6 2472d 2472d 3/3 2407d 36f08dfcb97c Don't forget to initialize 'sin6_len'. With kASan, from time to time the value will be bigger than the size of the source, and we get a read overflow. With kMSan the uninitialized access is detected immediately.
MSan: Uninitialized Memory in getsockopt -1 syz, C 37 2421d 2422d 3/3 2407d 559c53d028d6 Zero out 'tv', to prevent uninitialized bytes in its padding from leaking to userland. Found by kMSan.
assert failed: l->l_stat == LSONPROC -1 syz, C 645 2419d 2432d 3/3 2407d f61617cee78c exit1(): remove from the radix tree before setting zombie status, as radix_tree_remove_node() can block on locks when freeing.
ASan: Unauthorized Access in mutex_oncpu -1 syz, C 24521 2407d 2468d 3/3 2407d e78f9b4fde02 A final set of scheduler tweaks:
MSan: Uninitialized Memory in bus_dmamap_sync -1 syz, C 16 2418d 2423d 3/3 2407d b1f6fd939ed8 Zero out the padding in 'd_namlen', to prevent info leaks. Same logic as ufs_makedirentry().
assert failed: ci->ci_tlbstate != TLBSTATE_VALID -1 syz, C 123 2490d 2491d 3/3 2423d ea92f12b1800 uvm_pagerealloc() can now block because of radixtree manipulation, so defer freeing PTPs until pmap_unmap_ptes(), where we still have the pmap locked but can finally tolerate context switches again.
assert failed: pmap->pm_ncsw == curlwp->l_ncsw -1 syz, C 30 2490d 2491d 3/3 2423d ea92f12b1800 uvm_pagerealloc() can now block because of radixtree manipulation, so defer freeing PTPs until pmap_unmap_ptes(), where we still have the pmap locked but can finally tolerate context switches again.
assert failed: pmap->pm_ncsw == lwp_pctr() -1 2 2484d 2487d 3/3 2423d 680f3a8667de pmap_get_ptp(): the uvm_pagefree() call in the failure case can block too. Pacify the assertion in pmap_unmap_ptes().
assert failed: pg->offset >= nextoff -1 syz, C 10 2489d 2490d 3/3 2423d 3f49a1ff579b genfs_do_putpages(): add a missing call to uvm_page_array_advance().
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/init_main.c:LINE, left shift of AD -1 9 2484d 2484d 3/3 2423d 1e5952fd4837 Fix integer overflow when printing available memory size (resulting from a cast lost during merges).
netbsd boot error: panic: LOCKDEBUG: Mutex error: _mutex_init,363: already initialized -1 51 2489d 2489d 3/3 2423d dc1bd2c9382b Fix LOCKDEBUG panic on mutex_init().
assert failed: lwp_locked(l, l->l_cpu->ci_schedstate.spc_lwplock) -1 syz, C 2676 2511d 2512d 2/3 2508d lwp_start(): don't try to change the target CPU. Fixes potential panic in setrunnable(). Oops, experimental change that escaped.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/netinet/tcp_congctl.c:LINE, unsigned in 2 syz 28 2517d 2529d 2/3 2517d 1f03898791a3 Don't allow zero sized segments that will panic the stack. Reported-by: syzbot+5542516fa4afe7a101e6@syzkaller.appspotmail.com
ASan: Unauthorized Access in __asan_load8 -1 syz 39 2521d 2641d 2/3 2519d 9ea67c54e50f in uvm_fault_lower_io(), fetch all the map entry values that we need before we unlock everything.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/dev/raidframe/rf_netbsdkintf.c:LINE, me -1 114 2538d 2541d 2/3 2519d 41eeee0166bf Get &rsc->sc_dksc only when we know 'rsc' is not NULL. This was actually harmless because we didn't use the pointer then.
panic: m_copydata(ADDR,2,48,ADDR): m=NULL, off=0 (48), len=2 (0) 2 syz, C 3 2524d 2524d 2/3 2519d 624f3f7406ee Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The Rip6 entry point could see a garbage Hop6 option.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/arch/x86/x86/pmap.c:LINE, member access -1 6 2519d 2520d 2/3 2519d 4acdfa6ced5b Add a NULL check on the structure pointer, not to retrieve its first field if it is NULL. The previous code was not buggy strictly speaking. This change probably doesn't change anything, except removing assumptions in the compiler optimization passes, which too probably doesn't change anything in this case.
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/subr_disk_mbr.c:LINE, member acces -1 135 2530d 2535d 2/3 2519d 4e5cb50b58af Avoid unaligned pointer arithmetic in check_label_magic()
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_subr.c:LINE, member access wit -1 99 2520d 2530d 2/3 2519d 473e202ba108 NULL-check the structure pointer, not the address of its first field. This is clearer and also appeases syzbot.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/uipc_socket.c:LINE, null pointer p 2 syz, C 3 2557d 2565d 2/3 2552d 7b43da9e77aa Add a check before the memcpy. memcpy is defined to never take NULL as second argument, and the compiler is free to perform optimizations knowing that this argument is never NULL.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/net/rtsock_shared.c:LINE, shift exponen 2 syz, C 91 2553d 2557d 2/3 2552d a1bd50f5a7d5 Error out if the type is beyond the storage size. No functional change, since the shift would otherwise 'and' against zero, returning EEXIST.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/sys_ptrace_common.c:LINE, negation 2 syz, C 2 2556d 2556d 2/3 2555d c18c9a670f07 Avoid signed integer overflow for -lwp where lwp is INT_MIN
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/kern_time.c:LINE, signed integer o 2 syz, C 3 2561d 2562d 2/3 2561d 8e3fd5b6989c Check for valid timespec in clock_settime1()
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/subr_time.c:LINE, signed integer o 2 syz, C 2 2563d 2563d 2/3 2562d ffd5d3e30b5f Avoid signed integer overflow in ts2timo() for ts->tv_nsec
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/uvm/uvm_mmap.c:LINE, left shift of 1 by 2 syz, C 2 2562d 2562d 2/3 2562d 6c69d9fad1ca Avoid left shift changing the signedness flag
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/sysv_msg.c:LINE, negation of -ADDR 2 syz, C 2 2562d 2562d 2/3 2562d fa6363e63652 Avoid -LONG_MIN msgtyp in msgrcv(2) and treat it as LONG_MAX
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/crypto/nist_hash_drbg/nist_hash_drbg.c: -1 39 2578d 2579d 2/3 2564d 338a6d8211a1 Use an explicit run-time assertion where compile-time doesn't work.
panic: ifmedia_add: can't malloc entry 2 28 2566d 2642d 2/3 2565d 0ab44a811f8a in ifmedia_add(), use a wait-style memory allocation rather than not waiting and panic'ing if the allocation fails.
page fault in __asan_load8 -1 syz, C 4 2567d 2599d 2/3 2565d db38f3713d52 in shmdt(), wait until shmat() completes before detaching.
page fault in shm_delete_mapping -1 syz 17 2700d 2712d 2/3 2565d db38f3713d52 in shmdt(), wait until shmat() completes before detaching.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/kern_rndq.c:LINE, negation of -ADD 2 9 2569d 2575d 2/3 2567d 1c7f0224e7e0 Do all delta calculations strictly using uint32_t. Avoid integer overflows in calculating absolute deltas by subtracting the right way around.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/net/rtsock_shared.c:LINE, member access 2 1 2574d 2574d 2/3 2573d 00ccc35339cc Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/netinet6/scope6.c:LINE, member access w (2) 2 syz 91 2573d 2576d 2/3 2573d 00ccc35339cc Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/sys_select.c:LINE, signed integer 2 syz, C 2 2577d 2577d 2/3 2576d 7049e5e68831 Validate usec ranges in sys___select50()
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/netinet6/scope6.c:LINE, member access w 2 syz 73 2576d 2577d 2/3 2576d a5df2084c7a4 Decorate in6_clearscope() with __noubsan
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/vfs_syscalls.c:LINE, signed intege 2 syz, C 11 2576d 2577d 2/3 2576d 43bc9355ea3c Validate usec ranges in do_sys_utimes()
netbsd boot error: panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/subr_percpu.c:LINE, null pointer p -1 12 2579d 2579d 2/3 2577d 360cafb4be56 Decorate percpu_cpu_swap() with __noubsan
assert failed: buflen != 0 -1 syz 18 2584d 2584d 1/3 2584d 75eea5b7359a As I suspected, the KASSERT I added yesterday can fire if we try to process zero-sized packets. Skip them to prevent a type confusion that can trigger random page faults later.
assert failed: (c->c_flags & CALLOUT_PENDING) == 0 -1 syz, C 2918 2647d 2785d 1/3 2585d 80a06cecc711 Fix race in timer destruction.
assert failed: c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c -1 syz, C 247 2646d 2786d 1/3 2603d 80a06cecc711 Fix race in timer destruction.
assert failed: to_ticks >= 0 (2) -1 syz, C 70 2658d 2717d 1/3 2603d 4952945bc9cb Clamp tcp timer quantities to reasonable ranges.
assert failed: pg->wire_count != 0 (2) -1 syz, C 174 2647d 2669d 1/3 2603d 95ce9a69b407 fix two bugs reported in https://syzkaller.appspot.com/bug?id=8840dce484094a926e1ec388ffb83acb2fa291c9
assert failed: pg->wire_count > 0 -1 syz, C 6 2771d 2783d 1/3 2603d 6eb7fd2b53ce Acquire shmseg uobj reference while we hold shm_lock.
assert failed: uvm_page_locked_p(pg) -1 syz, C 44 2647d 2657d 1/3 2647d b5e559801c7e Add missing lock around pmap_protect. ok, chs@
panic: LOCKDEBUG: Reader / writer lock error: rw_vector_exit,449: not held by current LWP 2 syz, C 3 2661d 2662d 1/3 2660d e4c2eafeb5ab Fix bug, don't release the reflock if we didn't take it in the first place. Looks like there are other locking issues in here.
ASan: Unauthorized Access in exec_makepathbuf -1 syz 2 2668d 2668d 1/3 2663d abb1684df1f5 Fix buffer overflow. It seems that some people need to go back to the basics of C programming.
page fault in uvm_fault -1 syz, C 2 2670d 2670d 1/3 2669d 00dad9ea5158 Correct wrong type of uio_seg passed to do_sys_mknodat()
assert failed: ! -1 2 2669d 2670d 1/3 2669d 00dad9ea5158 Correct wrong type of uio_seg passed to do_sys_mknodat()
assert failed: pmap->pm_obj[i].uo_npages == 0 -1 syz, C 58 2699d 2780d 1/3 2670d in uvm_map_protect(), do a pmap_update() before possibly switching from removing pmap entries to creating them. this fixes the problem reported in https://syzkaller.appspot.com/bug?id=cc89e47f05e4eea2fd69bcccb5e837f8d1ab4d60
assert failed: pg->wire_count != 0 -1 syz, C 45 2702d 2766d 1/3 2670d shmctl(SHM_LOCK) does not need to mess with mappings of the shm segment, uvm_obj_wirepages() is sufficient. this fixes the problem reported in https://syzkaller.appspot.com/bug?id=71f9271d761f5b6ed517a18030dc04f0135e6179
assert failed: mutex_owned(pipe->pipe_lock) -1 39 2723d 2783d 1/3 2715d 7abfdd368b0d Clean up pipe structure before recycling it.
assert failed: to_ticks >= 0 -1 syz, C 2547 2735d 2785d 1/3 2735d 797b68a5c224 Add more checks, if the values are negative we hit a KASSERT later in the timeout.
ASan: Unauthorized Access in vioscsi_scsipi_request -1 syz 1841 2736d 2773d 1/3 2736d b60093a0824f Fix use-after-free. If we're not polling, virtio_enqueue_commit() will send the transaction, and it means 'xs' can be immediately freed. So, save the value of xs_control beforehand.
panic: receive 3 2 syz, C 5 2777d 2786d 1/3 2749d c78c83f0efb3 Also check for MT_CONTROL, and end the receive operation if we see one. It is possible to get an MT_CONTROL if we sleep in MSG_WAITALL. The other BSDs do the same.
assert failed: vp->v_usecount != 0 -1 syz, C 108 2768d 2784d 1/3 2768d 713042b84b5e Take a reference on ndp->ni_rootdir and ndp->ni_erootdir.
assert failed: vp->v_type == VREG -1 syz, C 139 2774d 2784d 1/3 2774d 21e56f354bb4 Change vn_openchk() to fail VNON and VBAD with error ENXIO.
assert failed: vp->v_type == VREG || vp->v_type == VDIR -1 syz, C 1085 2774d 2785d 1/3 2774d 21e56f354bb4 Change vn_openchk() to fail VNON and VBAD with error ENXIO.
assert failed: c->c_magic == CALLOUT_MAGIC -1 syz, C 1645 2785d 2786d 1/3 2777d The callout is used by any nonvirtual timer including CLOCK_MONOTONIC and needs to be initialized.
assert failed: so->so_lock == NULL -1 syz, C 5 2783d 2784d 1/3 2782d 516d295318eb Fix locking: it is fine if the lock is already key_so_mtx, this can happen in socketpair. In that case don't take it.
assert failed: so->so_pcb == NULL -1 syz, C 6 2784d 2784d 1/3 2784d fa4f0f367829 Fix the order in udp6_attach: soreserve should be called before in6_pcballoc, otherwise if it fails there is still a PCB attached, and we hit a KASSERT in socreate. In !DIAGNOSTIC this would have caused a memory leak.
assert failed: requested_size > 0 -1 syz, C 19 2784d 2785d 1/3 2784d 09915c34c237 Reading a directory may trigger a panic when the buffer is too small. Adjust necessary checks.
ASan bug (2) -1 syz, C 347 2784d 2785d 1/3 2784d d020c71c0cee RIP6, CAN, SCTP and SCTP6 lack a length check in their _send() functions. Fix RIP6 and CAN, add a big XXX in the SCTP ones.
ASan bug -1 syz, C 302 2785d 2786d 1/3 2785d d26f60da72b3 RIP, RIP6, DDP, SCTP and SCTP6 lack a length check in their _connect() functions. Fix the first three, and add a big XXX in the SCTP ones.