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, Oct 7, 2:30 AM
Unknown Object (File)
Mon, Sep 28, 2:11 PM
Unknown Object (File)
Fri, Sep 25, 10:40 PM
Unknown Object (File)
Thu, Sep 17, 6:27 AM
Unknown Object (File)
Thu, Sep 10, 5:42 AM
Unknown Object (File)
Wed, Sep 9, 12:39 PM
Unknown Object (File)
Sep 8 2026, 4:55 PM
Unknown Object (File)
Sep 8 2026, 3:08 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