Drop in a WITNESS_WARN into SYSCTL_IN to make sure that we are
not holding any non-sleep-able-locks locks when copyin is called. This gets executed un-conditionally since we have no function to wire the buffer in this direction. Pointed out by: truckman MFC after: 1 week
This commit is contained in:
parent
3212724cc0
commit
d8339a2616
@ -1099,6 +1099,8 @@ sysctl_new_user(struct sysctl_req *req, void *p, size_t l)
|
||||
return (0);
|
||||
if (req->newlen - req->newidx < l)
|
||||
return (EINVAL);
|
||||
WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL,
|
||||
"sysctl_new_user()");
|
||||
error = copyin((char *)req->newptr + req->newidx, p, l);
|
||||
req->newidx += l;
|
||||
return (error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user