HomeFreeBSD

sysctl: Panic on OID reuse

Description

sysctl: Panic on OID reuse

In CheriBSD we had a conflict in the KERN_PROC OID space and didn't
notice for some time. Let's panic instead to make such conflicts easier
to detect. Note that this doesn't affect conflicts arising from name
collisions in OID_AUTO sysctls, which happen sometimes due to driver
bugs.

Reviewed by: brooks, kib, jhb
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D49351

Details

Provenance
markjAuthored on Apr 5 2025, 4:22 PM
Reviewer
brooks
Differential Revision
D49351: sysctl: Panic on OID reuse
Parents
rGee9ce1078c59: libc: tests: add some tests for __cxa_atexit handling
Branches
Unknown
Tags
Unknown