the user anyway and close(2) may crash after setuid(2).
Reported-by: syzbot+90e094f33d329fb2c3ab@syzkaller.appspotmail.com
OK deraadt@
-/* $OpenBSD: dt_dev.c,v 1.16 2021/10/25 19:51:12 millert Exp $ */
+/* $OpenBSD: dt_dev.c,v 1.17 2021/12/20 22:28:48 bluhm Exp $ */
/*
* Copyright (c) 2019 Martin Pieuchot <mpi@openbsd.org>
{
struct dt_pcb *dp;
- KASSERT(suser(curproc) == 0);
-
if (!sc->ds_recording)
return;
struct dt_probe *dtp;
int error;
- KASSERT(suser(curproc) == 0);
-
if (!dtioc_req_isvalid(dtrq))
return EINVAL;
struct dt_probe *dtp;
int error;
- KASSERT(suser(curproc) == 0);
if (!dtioc_req_isvalid(dtrq))
return EINVAL;