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)
Wed, Aug 12, 9:43 AM
Unknown Object (File)
Wed, Aug 12, 7:25 AM
Unknown Object (File)
Wed, Aug 12, 6:05 AM
Unknown Object (File)
Tue, Aug 11, 9:34 PM
Unknown Object (File)
Mon, Aug 10, 7:49 PM
Unknown Object (File)
Mon, Aug 10, 6:59 PM
Unknown Object (File)
Sun, Aug 9, 8:36 PM
Unknown Object (File)
Sun, Aug 9, 4:54 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