Page MenuHomeFreeBSD

sysctl sysctls: wire old buf before output with sysctl lock
ClosedPublic

Authored by rlibby on Nov 24 2019, 6:53 AM.
Tags
None
Referenced Files
F114618484: D22528.diff
Mon, Apr 14, 11:59 AM
Unknown Object (File)
Mon, Apr 14, 6:59 AM
Unknown Object (File)
Mon, Apr 14, 12:07 AM
Unknown Object (File)
Sun, Apr 13, 11:25 PM
Unknown Object (File)
Sat, Apr 12, 9:38 PM
Unknown Object (File)
Fri, Apr 4, 1:09 PM
Unknown Object (File)
Fri, Mar 21, 1:04 AM
Unknown Object (File)
Dec 13 2024, 4:57 PM
Subscribers

Details

Summary

Several sysctl sysctls output to a user buffer while holding a
non-sleepable lock that protects the sysctl topology. They need to wire
the output buffer, or else they may try to sleep on a page fault.

Sponsored by: Dell EMC Isilon

Test Plan

With D22527, check for witness warnings after
sysctl -ao > /dev/null

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable