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

(cherry picked from commit d35c4cfad5800b15ab730af5246df0366f2be558)

Details

Provenance
markjAuthored on Apr 5 2025, 4:22 PM
Reviewer
brooks
Differential Revision
D49351: sysctl: Panic on OID reuse
Parents
rG773ef40696c6: exec: Remove parameter 'segflg' from exec_copyin_args()
Branches
Unknown
Tags
Unknown