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)
Fri, Jun 21, 12:17 AM
Unknown Object (File)
May 24 2024, 8:43 PM
Unknown Object (File)
May 11 2024, 11:55 AM
Unknown Object (File)
May 10 2024, 10:53 PM
Unknown Object (File)
May 10 2024, 8:24 AM
Unknown Object (File)
May 10 2024, 8:15 AM
Unknown Object (File)
Apr 27 2024, 2:53 PM
Unknown Object (File)
Apr 22 2024, 9:55 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