Page MenuHomeFreeBSD

LinuxKPI: sysfs: use a sysctl_ctx_list
Needs ReviewPublic

Authored by bz on May 4 2025, 10:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 5, 9:28 PM
Unknown Object (File)
Nov 13 2025, 10:51 AM
Unknown Object (File)
Nov 13 2025, 5:08 AM
Unknown Object (File)
Nov 5 2025, 8:49 PM
Unknown Object (File)
Nov 3 2025, 12:13 PM
Unknown Object (File)
Oct 27 2025, 3:17 AM
Unknown Object (File)
Oct 25 2025, 10:36 AM
Unknown Object (File)
Oct 9 2025, 3:27 PM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

While sysctl_remove_oid() may recusrively try to delete all
sysctl nodes, if one is still referenced it may panic (bd3cdc3105aae).
Use a sysctl_ctx_list to nicely group them all together
and also to release them -- at beast -- with a leak.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Test Plan

Just putting this out. Still not sure it's the best idea and
fully correct. Done while debugging some other crashes.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 63879
Build 60763: arc lint + arc unit