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)
Mon, Dec 8, 2:47 PM
Unknown Object (File)
Sun, Nov 30, 10:07 AM
Unknown Object (File)
Wed, Nov 26, 7:17 PM
Unknown Object (File)
Tue, Nov 25, 10:45 PM
Unknown Object (File)
Mon, Nov 24, 6:24 PM
Unknown Object (File)
Thu, Nov 20, 9:48 PM
Unknown Object (File)
Thu, Nov 20, 9:46 PM
Unknown Object (File)
Thu, Nov 20, 9:45 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 27733
Build 25931: arc lint + arc unit