Page MenuHomeFreeBSD

Skip the vm.pmap.kernel_maps sysctl by default.
ClosedPublic

Authored by jhb on Dec 7 2020, 11:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 18, 5:19 AM
Unknown Object (File)
Wed, Jan 15, 1:10 AM
Unknown Object (File)
Dec 30 2024, 4:44 AM
Unknown Object (File)
Dec 15 2024, 7:04 PM
Unknown Object (File)
Nov 21 2024, 1:21 AM
Unknown Object (File)
Nov 16 2024, 8:29 AM
Unknown Object (File)
Oct 29 2024, 11:36 AM
Unknown Object (File)
Oct 2 2024, 2:40 PM

Details

Summary

This sysctl node generates very verbose output, so don't trigger it
for sysctl -a or sysctl vm.pmap.

Test Plan
  • I tried to use 'sysctl vm.pmap' on my laptop to see the status of PTI and was flooded with many, many lines of output

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Dec 7 2020, 11:09 PM
This revision is now accepted and ready to land.Dec 7 2020, 11:11 PM

Hmm, @freqlabs, I was testing this, and I found that while 'sysctl vm' skipped this sysctl, 'sysctl vm.pmap' did not, so it seems like something is broken with the CTLFLAG_SKIP handling.

To be clear, vm.pmap.kernel_maps is the node in question, so I would expect sysctl vm.pmap to skip it.

@jhb Thanks for the heads up. It's working as intended in other cases but clearly not in this case. I'm looking into it.

This revision was automatically updated to reflect the committed changes.