cvs commit: src/sys/kern kern_sysctl.c

Don Lewis truckman at
Mon Aug 8 19:56:55 GMT 2005

On  8 Aug, Christian S.J. Peron wrote:
> csjp        2005-08-08 18:54:35 UTC
>   FreeBSD src repository
>   Modified files:
>     sys/kern             kern_sysctl.c 
>   Log:
>   Check to see if we wired the user-supplied buffers in SYSCTL_OUT, if
>   the buffer has not been wired and we are holding any non-sleep-able locks,
>   drop a witness warning. If the buffer has not been wired, it is possible
>   that the writing of the data can sleep, especially if the page is not in
>   memory. This can result in a number of different locking issues, including
>   dead locks.


I think SYSCTL_IN() should also check for locks.  We don't have a
function to wire the buffer in this direction.

More information about the cvs-src mailing list