Applied filters: WithRepro (drop)
Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Closed Patch
UBSan: Undefined Behavior in usb_free_device (2) -1 C 117 1591d 1693d 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 C 6 830d 832d 3/3 829d 5c6e5685cb2e ip6_output: Initialize plen for ip6_hopopts_input.
UBSan: Undefined Behavior in dounmount -1 C 130 830d 832d 3/3 829d 45a3b0de2942 dounmount: Avoid &((struct vnode_impl *)NULL)->vi_vnode.
assert failed: sc->sc_parent->dk_rawopens > NUM -1 C 59 1399d 1430d 3/3 1094d 804127267a30 dk(4): Use disk_begindetach and rely on vdevgone to close instances.
assert failed: uio->uio_iovcnt > NUM -1 C 34 1168d 1631d 3/3 1161d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: %uio->uio_iovcnt > NUM -1 C 1 1204d 1204d 3/3 1161d 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 1409d 1409d 3/3 1161d 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 C 1 1631d 1631d 3/3 1161d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
ASan: Unauthorized Access in uiomove -1 C 16 1204d 1658d 3/3 1161d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: uio->uio_iohsyz-vcnt > NUM -1 C 1 1204d 1204d 3/3 1161d b31adf0b1e2d tty(9): Make ttwrite update uio with only how much it has consumed.
assert failed: sc->sc_dk.dk_openmask == NUM -1 C 22 1175d 1192d 3/3 1175d ee1fb5e72c05 dk(4): dkclose must handle a dying wedge too to close the parent. 9fa2d7efad52 ioctl(DIOCRMWEDGES): Delete only idle wedges.
UBSan: Undefined Behavior in playtone -1 C 1 1214d 1214d 3/3 1213d 2ca1ca999393 spkr(4): Avoid some overflow issues.
ASan: Unauthorized Access in playtone -1 C 2 1215d 1215d 3/3 1213d 2ca1ca999393 spkr(4): Avoid some overflow issues.
panic: sockaddr_copy: source too long, NUM < NUM bytes 2 C 9 1216d 1225d 3/3 1214d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
MSan: Uninitialized Memory in ifreq_setaddr -1 C 8 1215d 1225d 3/3 1214d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
ASan: Unauthorized Access in sockaddr_dup -1 C 3 1221d 1224d 3/3 1214d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
MSan: Uninitialized Memory in sin_print -1 C 4 1241d 1257d 3/3 1214d 8d2c9c078303 sockaddr_alloc(9): Avoid uninitialized buffer in sockaddr_checklen.
assert failed: sa->sa_len <= sizeof(ifr.ifr_ifru) -1 C 10 1216d 1221d 3/3 1214d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
ASan: Unauthorized Access in sat_print -1 C 10 1216d 1237d 3/3 1214d f13466450eff atalk(4): Don't let userland control sa_len when adding addresses.
panic: kernel debugging assertion "off + len <= m_length(m0)" failed: file "/syzkaller/managers/ci2-netbsd-kubsan/kernel 2 syz 5 1226d 1244d 3/3 1223d 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 1226d 1226d 3/3 1223d 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 1226d 1244d 3/3 1223d 4ae0945c2b68 in6: make sure a user-specified checksum field is within a packet
assert failed: fmi->fmi_mount->mnt_lower == NULL -1 C 5 1266d 1274d 3/3 1260d 6587ec829804 When mounting a union file system set its lower mount only on success.
assert failed: size > NUM -1 C 4 1292d 1292d 3/3 1290d 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 C 3 1379d 1531d 3/3 1313d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
page fault in __asan_load4 (3) -1 C 64 1329d 1484d 3/3 1313d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
page fault in ppptioctl -1 C 6 1368d 1472d 3/3 1313d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
protection fault in ppptioctl -1 C 3 1340d 1531d 3/3 1313d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
UBSan: Undefined Behavior in ppptioctl -1 C 9 1325d 1472d 3/3 1313d 10437a31e86e ppp: remove ioctls that never worked and crash the kernel
assert failed: bp->b_vp == vp -1 C 125 1316d 2035d 3/3 1314d 03c421ecc1ee swap: disallow user opens of swap block device
panic: dead fs operation used (2) 2 C 8 1325d 1335d 3/3 1323d 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 1331d 1331d 3/3 1323d ea1b2266a84e Harden layered file systems usage of field "mnt_lower" against forced unmounts of the lower layer.
UBSan: Undefined Behavior in ip_ctloutput -1 C 22 1365d 1368d 3/3 1337d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
page fault in ip_ctloutput -1 C 18 1365d 1368d 3/3 1337d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
UBSan: Undefined Behavior in tcp_bind_wrapper -1 C 8 1366d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_shutdown_wrapper -1 C 45 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_bind_wrapper -1 C 9 1367d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_recvoob_wrapper -1 C 23 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_sockaddr_wrapper -1 C 32 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in ip6_ctloutput -1 C 5 1366d 1368d 3/3 1337d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
page fault in ip_setmoptions -1 C 2 1367d 1367d 3/3 1337d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
page fault in ip6_ctloutput -1 C 4 1365d 1368d 3/3 1337d 74557efd80ae tcp: restore NULL check for inp in tcp_ctloutput
UBSan: Undefined Behavior in tcp_listen_wrapper -1 C 15 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_connect_wrapper -1 C 23 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_recvoob_wrapper -1 C 26 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in tcp_sockaddr_wrapper -1 C 25 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_connect_wrapper -1 C 18 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_listen_wrapper -1 C 17 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
page fault in tcp_shutdown_wrapper -1 C 36 1365d 1368d 3/3 1337d 443b5cdb2251 tcp: restore NULL checks for inp
UBSan: Undefined Behavior in lf_advlock (3) -1 C 2 1361d 1361d 3/3 1338d 7dc16c04c41d kern/vfs_lockf.c: Parenthesize to make arithmetic match check.
assert failed: !topdown || hint <= orig_hint -1 C 474 1341d 1513d 3/3 1341d 94439ddc9c53 mmap(2): Avoid arithmetic overflow in search for free space.
page fault in umap_bypass -1 C 9 1343d 1349d 3/3 1342d 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 C 30 1342d 1349d 3/3 1342d 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 C 3 1372d 1372d 3/3 1355d 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 C 2 1406d 1406d 3/3 1405d 86778a9b6d3d compat_50_quota: reject invalid quota id types.
UBSan: Undefined Behavior in bpf_ioctl (2) -1 C 2 1424d 1424d 3/3 1423d 648957bead21 bpf(4): Reject bogus timeout values before arithmetic overflows.
assert failed: (l = dev->dv_detaching) == curlwp -1 C 2 1434d 1434d 3/3 1431d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
UBSan: Undefined Behavior in config_detach_commit -1 C 13 1433d 1444d 3/3 1431d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
page fault in __asan_load8 (6) -1 C 23 1433d 1472d 3/3 1431d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
page fault in config_detach_commit -1 C 8 1433d 1444d 3/3 1431d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
assert failed: dev->dv_detaching == curlwp -1 C 236 1445d 1560d 3/3 1431d 61ea95712f31 audio(4): Fix bug in detaching audio16 and beyond.
assert failed: kpreempt_disabled() (2) -1 syz 4 1441d 1441d 3/3 1435d 1e8b246aa870 KERNEL_LOCK(9): Need kpreempt_disable to ipi_send, oops.
assert failed: curcpu() != ci -1 C 1 1440d 1440d 3/3 1440d e94ab9ad30fc KERNEL_LOCK(9): Record kernel lock holder in fast path too.
assert failed: lktype != LK_NONE -1 C 8 1563d 1563d 3/3 1442d 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.
MSan: Uninitialized Memory in rum_attach -1 syz 2 1445d 1445d 3/3 1444d 940a6b14a9f7 rum(4): Avoid uninitialized garbage in failed register read.
assert failed: sd->sd_closing -1 C 20 1476d 1564d 3/3 1444d 5f6126977284 specfs: Refuse to open a closing-in-progress block device.
assert failed: !fmi->fmi_gone -1 C 3 1467d 1467d 3/3 1446d 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 1451d 1451d 3/3 1446d b683789d109b raidframe: reject invalid values for numCol and numSpares
MSan: Uninitialized Memory in rf_UnconfigureVnodes -1 syz 5 1450d 1452d 3/3 1446d b683789d109b raidframe: reject invalid values for numCol and numSpares
ASan: Unauthorized Access in rf_UnconfigureVnodes -1 syz 8 1450d 1452d 3/3 1446d b683789d109b raidframe: reject invalid values for numCol and numSpares
panic: kmem_free(ADDR, NUM) != allocated size NUM; overwrote? 2 C 3 1455d 1455d 3/3 1446d d8c1cd5fc0b1 ptyfs: Don't copy out cookies past end of buffer.
UBSan: Undefined Behavior in vrefcnt -1 syz 5 1450d 1452d 3/3 1447d b683789d109b raidframe: reject invalid values for numCol and numSpares
UBSan: Undefined Behavior in sys_rasctl (2) -1 C 4 1449d 1450d 3/3 1449d 21780199e5b9 rasctl(2): Avoid arithmetic overflow.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) (4) 2 C 4 1451d 1451d 3/3 1450d 84b1e299c3e2 uirda(4): Unconditionally initializes mutexes and selq on attach.
UBSan: Undefined Behavior in sys_rasctl -1 C 10 1451d 1455d 3/3 1451d d0d3275611d2 rasctl(2): Avoid overflow in address range arithmetic.
ASan: Unauthorized Access in _prop_object_internalize_context_alloc -1 C 6 1454d 1454d 3/3 1451d c9637813f932 proplib: Don't run off end of buffer with memcmp.
panic: ASan: Unauthorized Access In ADDR: Addr ADDR [NUM bytes, write, MallocRedZone] 2 C 1 1455d 1455d 3/3 1451d d8c1cd5fc0b1 ptyfs: Don't copy out cookies past end of buffer.
UBSan: Undefined Behavior in lf_advlock (2) -1 C 2 1455d 1455d 3/3 1451d 10f34aa31546 kern/vfs_lockf.c: Fix overflow in overflow detection.
UBSan: Undefined Behavior in physio.cold -1 C 2 1969d 1969d 3/3 1478d c0577626b1c5 physio(9): Avoid left shift of negative in alignment check.
assert failed: l->l_lid == pls->pl_lwpid -1 C 133 1478d 2258d 3/3 1478d 3f5ac2f440aa ptrace(PT_LWPSTATUS): Fix lid=0 case.
UBSan: Undefined Behavior in compat_43_ttioctl.cold (2) -1 C 119 1480d 2069d 3/3 1478d 7a20d166be3d tty_43: Do unsigned arithmetic to avoid shift into sign bits.
UBSan: Undefined Behavior in cpuctl_ioctl.cold -1 C 44 1481d 1950d 3/3 1478d 3b13b0053ea7 cpuio.h: Use uint8_t, not bool.
UBSan: Undefined Behavior in tty_get_qsize.cold.5 -1 C 63 2146d 2160d 3/3 1478d ad11505eeb84 tty: Avoid undefined behaviour (left shift of 1 by 31 places overflows int)
UBSan: Undefined Behavior in compat_43_ttioctl.cold.0 -1 C 122 2144d 2207d 3/3 1478d c32467e14928 tty_43: Check a bitset from userspace is valid before shifting it
assert failed: fli != NULL && !fli->fli_mountinfo->fmi_gone -1 C 4 1965d 1965d 3/3 1480d 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 C 109 1482d 2073d 3/3 1480d 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 C 2 1481d 1481d 3/3 1480d 72412fe0bfca ifioctl(9): Don't touch ifconf or ifreq until command is validated.
page fault in compat_ifconf -1 C 1 1481d 1481d 3/3 1480d 72412fe0bfca ifioctl(9): Don't touch ifconf or ifreq until command is validated.
UBSan: Undefined Behavior in compat_ifconf -1 C 37 1481d 1686d 3/3 1480d 72412fe0bfca ifioctl(9): Don't touch ifconf or ifreq until command is validated.
UBSan: Undefined Behavior in udv_attach -1 C 2 1483d 1483d 3/3 1482d a881a55ee8ab mmap(2): Prohibit overflowing offsets for non-D_NEGOFFSAFE devices.
MSan: Uninitialized Memory in pppioctl -1 C 3 1523d 1545d 3/3 1482d 4bf2966bec75 net/if_ppp.c: Avoid user-controlled overrun in PPPIOCSCOMPRESS.
MSan: Uninitialized Memory in ifq_enqueue (2) -1 C 6 1514d 1685d 3/3 1486d 8349f7b2392f sendto(2), recvfrom(2): Scrub internal struct msghdr on stack.
UBSan: Undefined Behavior in settime1.constprop.5 -1 C 6 2144d 2245d 3/3 1487d d5c20c2f7d03 kern_time: prevent the system clock from being set too low or high
page fault in __asan_store1 -1 C 23 1853d 1853d 3/3 1487d 6cfadad833d3 Improve Christos's vn_open fix.
UBSan: Undefined Behavior in route_filter -1 C 3 1488d 1488d 3/3 1487d 9140f660c6fc route(4): Use m_copydata, not misaligned mtod struct access.
UBSan: Undefined Behavior in lf_advlock -1 C 138 1489d 2250d 3/3 1487d b4a75906960e vfs(9): Avoid arithmetic overflow in lf_advlock.
assert failed: p != NULL (2) -1 C 5 1507d 1507d 3/3 1487d fad5a7fdd1ff uvideo(4): Make alloc logic match free logic.
MSan: Uninitialized Memory in comintr (2) -1 syz 3 1527d 1529d 3/3 1487d 18a0da752d44 ktrace(9): Zero-initialize padding for ktr_psig records.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) (3) 2 C 4 1489d 1489d 3/3 1487d 8a733328a1e6 upgt(4): Make upgt_free_cmd match upgt_alloc_cmd.
panic: LOCKDEBUG: Mutex error: mi_userret,116: sleep lock held 2 C 704 1488d 2127d 3/3 1487d 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 C 5398 1488d 1737d 3/3 1488d 663332e33fad ktrace(9): Fix mutex detection in ktrcsw. 16f1641497a4 sleepq(9): Pass syncobj through to sleepq_block.
UBSan: Undefined Behavior in compat_50_route_output (2) -1 C 3 1488d 1489d 3/3 1488d fea551d11726 route(4): Avoid unaligned access to struct rt_msghdr, take two.
assert failed: usp->tv_nsec >= NUM -1 C 31 1488d 1489d 3/3 1488d aedc6df2fcba recvmmsg(2): More timespec validation.
assert failed: usp->tv_nsec < ADDRL -1 C 79 1488d 1489d 3/3 1488d aedc6df2fcba recvmmsg(2): More timespec validation.
page fault in rf_fail_disk -1 C 1 1491d 1491d 3/3 1489d c3db04994218 RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.
page fault in uaudio_attach -1 C 3 1677d 1679d 3/3 1489d 217df124906d Fix a null-deref
assert failed: pipe != NULL -1 C 5 1682d 2043d 3/3 1489d 4f71c0ceaaeb umidi(4): Fix fencepost in error branch.
panic: tcp_output: no template 2 C 5612 1491d 2708d 3/3 1489d abfa6438367c tcp(4): Bail early on sendoob if not connected.
assert failed: tp->t_oproc != NULL -1 C 3 1505d 1505d 3/3 1489d 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 C 2 1491d 1491d 3/3 1489d c3db04994218 RAIDframe must be initialized for the RAIDFRAME_FAIL_DISK80 ioctl.
UBSan: Undefined Behavior in gettimeleft -1 C 20 1497d 1960d 3/3 1489d bb260a3b0b8b kern: Avoid arithmetic overflow in gettimeleft.
UBSan: Undefined Behavior in sys_recvmmsg -1 C 491 1491d 2179d 3/3 1489d 8e66f4be029b recvmmsg(2): Avoid arithmetic overflow in timeout calculations.
ASan: Unauthorized Access in ktr_kuser -1 C 23 1499d 1735d 3/3 1491d 37e3b6d69aff sendmsg(2): Avoid buffer overrun in ktrace of invalid cmsghdr.
UBSan: Undefined Behavior in ts2timo (3) -1 C 16 1492d 1593d 3/3 1491d f283286a7e41 kern: Use timespecsubok in ts2timo.
assert failed: requested_size > NUM -1 C 7 1493d 1517d 3/3 1491d 503bc9b44ec6 umcs(4): Reject invalid interrupt endpoints.
UBSan: Undefined Behavior in dosetitimer.part.NUM -1 C 147 1492d 1614d 3/3 1491d 5d334e4f13e3 setitimer(2): Guard against overflow in arithmetic.
assert failed: ci != NULL -1 C 4 1521d 1521d 3/3 1491d bfb356306710 opencrypto(9): Fix missing initialization in error branch.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) (2) 2 C 8 1492d 1527d 3/3 1491d 69ae1015704b emdtv(4): More attach/detach bugs.
UBSan: Undefined Behavior in itimer_callout -1 C 6 1500d 1554d 3/3 1491d 7152269db67f setitimer(2): Avoid arithmetic overflow in periodic bookkeeping.
ASan: Unauthorized Access in uvm_unmap_detach -1 C 7 1560d 1560d 3/3 1560d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
panic: vrelel: bad ref count 2 C 2 1560d 1560d 3/3 1560d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
assert failed: (use & VUSECOUNT_MASK) > NUM -1 C 22 1560d 1560d 3/3 1560d 96ce6406fe3c Revert "mmap(2): If we fail with a hint, try again without it."
assert failed: VOP_ISLOCKED(vp) == LK_EXCLUSIVE -1 C 73 1563d 1564d 3/3 1560d f5e648f9554a sequencer(4): VOP_CLOSE requires vnode lock.
UBSan: Undefined Behavior in rnd_detach_source -1 C 9 1660d 1661d 3/3 1560d dafad59dab33 ucom(4): Make sure rndsource is attached before use and detach.
MSan: Uninitialized Memory in umcs7840_attach -1 C 5 1560d 1563d 3/3 1560d 36d5987e481d umcs(4): Avoid using uninitialized data if register read fails.
ASan: Unauthorized Access in umidi_attach -1 C 69 1593d 2220d 3/3 1590d 9f7e8016feb4 umidi(4): Parse descriptors a little more robustly.
ASan: Unauthorized Access in usbd_get_no_alts -1 C 4 1677d 1953d 3/3 1591d 4fc17b686835 usbdi(9): Fix usbd_get_no_alts.
assert failed: filter->bf_insn != NULL -1 C 114 1597d 2174d 3/3 1595d f9a07bf7167b bpf(4): Handle null bf_insn on free.
assert failed: fvp != tvp -1 C 11 1741d 1741d 3/3 1595d 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 C 4 1745d 1745d 3/3 1595d - microtime -> microuptime - avoid kpause with timeo=0
assert failed: kpreempt_disabled() -1 C 12 1596d 1596d 3/3 1595d ae4ad17c1747 tun(4): Fix bug introduced in previous locking change.
assert failed: requested_size > 0 (2) -1 C 20 1677d 2041d 3/3 1595d d56fa848ee30 umidi(4): Bail early if no endpoints.
assert failed: pb->pb_pathcopyuses == NUM -1 C 3 1666d 1666d 3/3 1596d 848da1ee2abf ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.
assert failed: maxblksize > NUM -1 C 4 1646d 1662d 3/3 1596d 6103caa238dd pad(4): Do harmless, not harmful, integer truncation.
panic: pad3: outputs: 44100Hz, NUM-bit, stereo 2 C 1 1662d 1662d 3/3 1596d 6103caa238dd pad(4): Do harmless, not harmful, integer truncation.
UBSan: Undefined Behavior in vn_open -1 C 34 1853d 1853d 3/3 1596d 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 C 2 2134d 2134d 3/3 1596d d1730a577782 vfs(9): Avoid arithmetic overflow in vn_seek.
assert failed: pb->pb_pathcopy == NULL -1 C 2 1666d 1666d 3/3 1596d 848da1ee2abf ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.
panic: cdce0: could not find data bulk in 2 syz 2 1681d 1681d 3/3 1596d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: KERNEL_LOCKED_P() -1 C 32 1871d 1871d 3/3 1596d ea2ec439285b autoconf(9): Take kernel lock in a few entry points.
panic: uhidev0: no report descriptor 2 syz 18 1607d 2206d 3/3 1596d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: ret == 0 -1 C 6950 1597d 2216d 3/3 1596d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
assert failed: un->un_ops->uno_init -1 C 72 1605d 1607d 3/3 1596d ee8fc1216476 usbnet(9): uno_init is now optional.
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,517: spin lock held 2 C 3 1841d 1841d 3/3 1596d a977a2e5ca55 tun(4): Reduce lock from IPL_NET to IPL_SOFTNET.
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,516: spin lock held (2) 2 C 1221 1597d 2224d 3/3 1596d a977a2e5ca55 tun(4): Reduce lock from IPL_NET to IPL_SOFTNET.
UBSan: Undefined Behavior in ntp_adjtime1.cold -1 syz 17 1612d 1647d 3/3 1596d deeafa20c413 ntp(9): Avoid left shift of negative.
panic: mutex_destroy,NUM: uninitialized lock (lock=ADDR, from=ADDR) 2 C 16 1633d 1684d 3/3 1596d c541dc45f013 auvitek(4): Fix i2c detach if attach failed.
ASan: Unauthorized Access in usbd_fill_iface_data (2) -1 C 44 1599d 2052d 3/3 1596d 76003ab85971 usb: Parse descriptors a little more robustly.
UBSan: Undefined Behavior in nanosleep1 -1 C 2 1599d 1599d 3/3 1596d 9b26ef97d982 kern: Handle clock winding back in nanosleep1 without overflow.
UBSan: Undefined Behavior in ts2timo (2) -1 C 9 1600d 1692d 3/3 1596d 4a85d208135c kern: Fix fencepost error in ts2timo overflow checks.
panic: todo(ADDR) > MAXPHYS; minphys broken 2 C 98 1601d 2212d 3/3 1596d e8535b94fbff kern: Use harmless, not harmful, integer truncation in physio.
UBSan: Undefined Behavior in ntp_adjtime1 (2) -1 syz 4 1606d 1616d 3/3 1596d 1037494fc94a ntp(9): Clamp ntv->offset to avoid arithmetic overflow on adjtime.
UBSan: Undefined Behavior in vn_seek -1 C 3 1599d 1657d 3/3 1596d d1730a577782 vfs(9): Avoid arithmetic overflow in vn_seek.
UBSan: Undefined Behavior in ktrace_thread -1 C 74 1598d 1735d 3/3 1597d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
UBSan: Undefined Behavior in config_devalloc -1 C 149 2072d 2189d 3/3 1597d 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 C 5 1654d 1688d 3/3 1597d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
panic: TAILQ_* forw ADDR /syzkaller/managers/ci2-netbsd/kernel/sys/kern/kern_ktrace.c:LINE 2 C 22 1600d 1686d 3/3 1597d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
MSan: Uninitialized Memory in pathbuf_destroy -1 C 3 1666d 1666d 3/3 1597d 848da1ee2abf ccd(4): Only pathbuf_destroy if pathbuf_copyin succeeded.
panic: genfs: bad op (2) 2 C 6 1598d 1671d 3/3 1597d 292edadd0bae kernfs: Just fail with EOPNOTSUPP, don't panic, on VOP_BMAP.
page fault in ktrace_thread -1 syz 82 1598d 1693d 3/3 1597d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
panic: : playback 2 C 1 1646d 1646d 3/3 1597d 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 C 56 1598d 1735d 3/3 1597d 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 1598d 1729d 3/3 1597d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
UBSan: Undefined Behavior in adjtime1 -1 C 16 1599d 1642d 3/3 1597d c7190692f73e kern: Clamp time_adjtime to avoid overflow.
MSan: Uninitialized Memory in emdtv_i2c_exec -1 C 5 2048d 2049d 3/3 1597d 7c75d5789d19 emdtv(4): If register read fails, read as all zero.
MSan: Uninitialized Memory in ktrace_thread -1 C 450 1598d 1736d 3/3 1597d e44acb383603 ktrace(9): Avoid stomping over colliding KTROP_SET.
UBSan: Undefined Behavior in compat_30_sys_getdents -1 C 3 1601d 1601d 3/3 1597d 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 1661d 1661d 3/3 1597d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
panic: uhidev0: no input interrupt endpoint 2 C 6 1654d 1686d 3/3 1597d b633b22cc948 vhci(4): Don't fail with ENOBUFS if no intrxfer is set up.
UBSan: Undefined Behavior in bpf_ioctl -1 C 2 1631d 1631d 3/3 1597d 0c325362987e bpf(4): Clamp read timeout to INT_MAX ticks to avoid overflow.
UBSan: Undefined Behavior in ffs_init_vnode.cold -1 C 2 1601d 1601d 3/3 1597d 8fa88ee7afc4 ffs: Fix 64-bit inode integer truncation.
ASan: Unauthorized Access in psignal (2) -1 C 7 1641d 2001d 3/3 1604d 156c65eb54de usb(4): Use atomics for usb_async_proc.
assert failed: searchdir != foundobj -1 C 2326 1628d 2185d 3/3 1628d feba92b89b21 Remove the assertion "searchdir != foundobj" from lookup_crossmount().
UBSan: Undefined Behavior in usb_free_device -1 syz 1 1750d 1750d 3/3 1746d d021b7463a20 Revert "usb: uhub: remove unnecessary delays when powering on ports"
panic: _uvm_mapent_check: bad entry ADDR, line 2299 2 C 2 1858d 1858d 3/3 1852d 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 C 2 1858d 1858d 3/3 1852d 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 C 37 1925d 2199d 3/3 1852d 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 C 31 1929d 2145d 3/3 1855d 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.
UBSan: Undefined Behavior in ts2timo -1 C 40 1893d 2251d 3/3 1884d 6f5e84c07140 ts2timo(9): refactor TIMER_ABSTIME handling
assert failed: (cnp->cn_flags & LOCKPARENT) == 0 || searchdir == NULL || VOP_ISLOCKED(searchdir) == LK_EXCLUSIVE (2) -1 C 1614 1896d 2224d 3/3 1884d 4af96c872b34 Honor LOCKPARENT for ".." of the root directory.
UBSan: Undefined Behavior in free_pipe -1 C 6 1972d 2042d 3/3 1884d 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 C 2 2042d 2042d 3/3 1884d 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 C 3 2092d 2102d 3/3 2039d e5ad6630f80f Check the return value of device_lookup_private against NULL.
UBSan: Undefined Behavior in quota1_handle_cmd_quotaoff -1 C 22 2050d 2182d 3/3 2040d 479d6bd7aed1 Avoid potentially accessing an array with an index out of range.
UBSan: Undefined Behavior in quota1_handle_cmd_quotaon -1 C 310 2042d 2187d 3/3 2040d 479d6bd7aed1 Avoid potentially accessing an array with an index out of range.
UBSan: Undefined Behavior in fsetown -1 C 643 2041d 2225d 3/3 2041d fe22bed11b62 Avoid negating the minimum size of pid_t (this overflows).
assert failed: semcnt >= 0 -1 C 1460 2051d 2192d 3/3 2050d 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 C 62 2059d 2059d 3/3 2059d 46944f1c4d5d Fix an uninitialized pointer deref introduced in rev 1.207.
assert failed: ! (2) -1 C 4 2083d 2083d 3/3 2075d 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 2076d 2111d 3/3 2076d 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 C 789 2077d 2185d 3/3 2077d d8a571076ba6 Suspend file system before unmounting in mount_domount() error path to prevent diagnostic assertions from unmount/flush.
assert failed: (length != 0 || extblocks || LIST_EMPTY(&ovp->v_cleanblkhd)) -1 C 6 2105d 2201d 3/3 2077d 9235b59ee381 Lock the vnode while calling VOP_BMAP() for FIOGETBMAP.
UBSan: Undefined Behavior in compat_43_ttioctl.cold -1 C 116 2079d 2135d 3/3 2077d c32467e14928 tty_43: Check a bitset from userspace is valid before shifting it
UBSan: Undefined Behavior in tty_get_qsize -1 C 19 2160d 2207d 3/3 2159d 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 C 8 2170d 2170d 3/3 2169d 257aaf9afb72 Fix ugen detach after partial attach.
ASan: Unauthorized Access in nvlist_copyin -1 C 2 2195d 2195d 3/3 2169d 17ffbcbdab9a Add missing cases, to prevent memory corruption.
assert failed: 0 <= space && space <= ifc->ifc_len -1 C 4 2204d 2204d 3/3 2202d 0be10c48cf6f Don't accept negative value.
page fault in statvfs_to_statfs12_copy -1 C 5 2221d 2222d 3/3 2221d 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 C 2 2222d 2222d 3/3 2221d 6cac1dde29fb Fix NULL deref on attach failure. Found via vHCI fuzzing.
UBSan: Undefined Behavior in pipe_ioctl -1 C 1 2223d 2223d 3/3 2221d 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 C 1 2224d 2224d 3/3 2223d 305ae8585db2 Ensure sockaddrs have valid lengths for RO_MISSFILTER.
assert failed: (cnp->cn_flags & LOCKPARENT) == 0 || searchdir == NULL || VOP_ISLOCKED(searchdir) == LK_EXCLUSIVE -1 C 2815 2224d 2272d 3/3 2224d 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 C 5 2225d 2225d 3/3 2225d 521e747162a6 Hum. Fix NULL deref triggerable with just write(0).
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,516: spin lock held 2 C 95 2247d 2266d 3/3 2247d 134b16ca64ab Reported-by: syzbot+c1770938bb3fa7c085f2@syzkaller.appspotmail.com Reported-by: syzbot+ae26209c7d7f06e0b29f@syzkaller.appspotmail.com
ASan: Unauthorized Access in usbd_fill_iface_data -1 C 5 2248d 2248d 3/3 2247d 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 C 1 2248d 2248d 3/3 2247d 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 C 2 2255d 2255d 3/3 2247d 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 C 3 2248d 2248d 3/3 2247d 869e8f7b28b0 Reset ud_ifaces and ud_cdesc to NULL, to prevent use-after-free in usb_free_device().
assert failed: !pmap_extract(pmap, va, NULL) -1 syz 1 2324d 2324d 3/3 2261d 4cd60295b346 Reported-by: syzbot+3e3c7cfa8093f8de047e@syzkaller.appspotmail.com
panic: LOCKDEBUG: Mutex error: mutex_vector_enter,512: locking against myself 2 C 52 2261d 2266d 3/3 2261d 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 nanosleep1 -1 C 8 2280d 2314d 3/3 2265d d9377f809390 Fix uninitialized memory access. Found by KMSAN.
assert failed: pmap->pm_stats.resident_count == PDP_SIZE -1 syz 22 2321d 2322d 3/3 2321d 398f36d55ce0 PR port-amd64/55083 (assertion "pmap->pm_stats.resident_count == PDP_SIZE" failed)
assert failed: ptp->wire_count == 1 -1 C 16 2322d 2322d 3/3 2322d 4538c4a0a4c9 Pacify assertion in a failure path.
assert failed: (opte & (PTE_A | PTE_P)) != PTE_A -1 C 15 2323d 2325d 3/3 2322d 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 2322d 2323d 3/3 2322d 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.
ASan: Unauthorized Access in ifreq_setaddr -1 C 6 2398d 2398d 3/3 2333d 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 C 37 2347d 2348d 3/3 2333d 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 C 645 2344d 2358d 3/3 2333d 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 C 24521 2333d 2394d 3/3 2333d e78f9b4fde02 A final set of scheduler tweaks:
MSan: Uninitialized Memory in bus_dmamap_sync -1 C 16 2343d 2348d 3/3 2333d 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 C 123 2416d 2417d 3/3 2349d 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 C 30 2416d 2417d 3/3 2349d 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: pg->offset >= nextoff -1 C 10 2414d 2415d 3/3 2349d 3f49a1ff579b genfs_do_putpages(): add a missing call to uvm_page_array_advance().
assert failed: lwp_locked(l, l->l_cpu->ci_schedstate.spc_lwplock) -1 C 2676 2436d 2437d 2/3 2433d 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 2443d 2454d 2/3 2442d 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 2447d 2566d 2/3 2444d 9ea67c54e50f in uvm_fault_lower_io(), fetch all the map entry values that we need before we unlock everything.
panic: m_copydata(ADDR,2,48,ADDR): m=NULL, off=0 (48), len=2 (0) 2 C 3 2450d 2450d 2/3 2444d 624f3f7406ee Add more checks in ip6_pullexthdr, to prevent a panic in m_copydata. The Rip6 entry point could see a garbage Hop6 option.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/kern/uipc_socket.c:LINE, null pointer p 2 C 3 2483d 2490d 2/3 2478d 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 C 91 2478d 2483d 2/3 2478d 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 C 2 2482d 2482d 2/3 2480d 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 C 3 2487d 2487d 2/3 2487d 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 C 2 2488d 2488d 2/3 2488d 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 C 2 2488d 2488d 2/3 2488d 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 C 2 2488d 2488d 2/3 2488d fa6363e63652 Avoid -LONG_MIN msgtyp in msgrcv(2) and treat it as LONG_MAX
page fault in __asan_load8 -1 C 4 2493d 2524d 2/3 2491d db38f3713d52 in shmdt(), wait until shmat() completes before detaching.
page fault in shm_delete_mapping -1 syz 17 2625d 2638d 2/3 2491d db38f3713d52 in shmdt(), wait until shmat() completes before detaching.
panic: UBSan: Undefined Behavior in /syzkaller/managers/netbsd-kubsan/kernel/sys/netinet6/scope6.c:LINE, member access w (2) 2 syz 91 2499d 2502d 2/3 2499d 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 C 2 2502d 2502d 2/3 2502d 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 2502d 2503d 2/3 2502d 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 C 11 2502d 2502d 2/3 2502d 43bc9355ea3c Validate usec ranges in do_sys_utimes()
assert failed: buflen != 0 -1 syz 18 2509d 2510d 1/3 2509d 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 C 2918 2573d 2711d 1/3 2510d 80a06cecc711 Fix race in timer destruction.
assert failed: c->c_cpu->cc_lwp == curlwp || c->c_cpu->cc_active != c -1 C 247 2571d 2711d 1/3 2529d 80a06cecc711 Fix race in timer destruction.
assert failed: to_ticks >= 0 (2) -1 C 70 2584d 2642d 1/3 2529d 4952945bc9cb Clamp tcp timer quantities to reasonable ranges.
assert failed: pg->wire_count != 0 (2) -1 C 174 2573d 2595d 1/3 2529d 95ce9a69b407 fix two bugs reported in https://syzkaller.appspot.com/bug?id=8840dce484094a926e1ec388ffb83acb2fa291c9
assert failed: pg->wire_count > 0 -1 C 6 2696d 2709d 1/3 2529d 6eb7fd2b53ce Acquire shmseg uobj reference while we hold shm_lock.
assert failed: uvm_page_locked_p(pg) -1 C 44 2572d 2583d 1/3 2572d 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 C 3 2587d 2588d 1/3 2585d 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 2593d 2593d 1/3 2589d 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 C 2 2595d 2595d 1/3 2595d 00dad9ea5158 Correct wrong type of uio_seg passed to do_sys_mknodat()
assert failed: pmap->pm_obj[i].uo_npages == 0 -1 C 58 2625d 2705d 1/3 2596d 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 C 45 2627d 2691d 1/3 2596d 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: to_ticks >= 0 -1 C 2547 2661d 2710d 1/3 2661d 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 2662d 2698d 1/3 2662d 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 C 5 2703d 2711d 1/3 2674d 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 C 108 2694d 2710d 1/3 2694d 713042b84b5e Take a reference on ndp->ni_rootdir and ndp->ni_erootdir.
assert failed: vp->v_type == VREG -1 C 139 2699d 2710d 1/3 2699d 21e56f354bb4 Change vn_openchk() to fail VNON and VBAD with error ENXIO.
assert failed: vp->v_type == VREG || vp->v_type == VDIR -1 C 1085 2699d 2710d 1/3 2699d 21e56f354bb4 Change vn_openchk() to fail VNON and VBAD with error ENXIO.
assert failed: c->c_magic == CALLOUT_MAGIC -1 C 1645 2710d 2711d 1/3 2703d The callout is used by any nonvirtual timer including CLOCK_MONOTONIC and needs to be initialized.
assert failed: so->so_lock == NULL -1 C 5 2708d 2709d 1/3 2708d 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 C 6 2709d 2710d 1/3 2709d 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 C 19 2709d 2711d 1/3 2709d 09915c34c237 Reading a directory may trigger a panic when the buffer is too small. Adjust necessary checks.
ASan bug (2) -1 C 347 2709d 2710d 1/3 2709d 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 C 302 2710d 2711d 1/3 2710d 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.