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
F103581767: D22528.id64792.diff
Tue, Nov 26, 6:15 PM
Unknown Object (File)
Sep 23 2024, 1:02 PM
Unknown Object (File)
Sep 23 2024, 10:35 AM
Unknown Object (File)
Sep 22 2024, 8:07 PM
Unknown Object (File)
Sep 19 2024, 3:16 AM
Unknown Object (File)
Sep 19 2024, 2:29 AM
Unknown Object (File)
Sep 18 2024, 11:30 PM
Unknown Object (File)
Sep 17 2024, 4:25 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