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, Oct 25, 10:48 PM
Unknown Object (File)
Sep 25 2025, 12:31 AM
Unknown Object (File)
Aug 31 2025, 12:47 PM
Unknown Object (File)
Aug 31 2025, 4:39 AM
Unknown Object (File)
Aug 3 2025, 8:40 PM
Unknown Object (File)
Aug 3 2025, 2:30 AM
Unknown Object (File)
Jul 4 2025, 9:12 PM
Unknown Object (File)
Jul 4 2025, 1:11 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