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
Unknown Object (File)
Sat, Apr 11, 10:59 PM
Unknown Object (File)
Sat, Apr 11, 8:20 PM
Unknown Object (File)
Tue, Apr 7, 5:43 AM
Unknown Object (File)
Mon, Apr 6, 4:06 PM
Unknown Object (File)
Sun, Mar 22, 9:05 PM
Unknown Object (File)
Wed, Mar 18, 3:35 PM
Unknown Object (File)
Tue, Mar 17, 2:09 PM
Unknown Object (File)
Tue, Mar 17, 9:16 AM
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