HomeFreeBSD

Fix edge cases in several KASSERTs: use <= rather than < when testing that
rS204303Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

Fix edge cases in several KASSERTs: use <= rather than < when testing that
counters have not gone about MAXCPU or NETISR_MAXPROT. These problems
caused panics on UP kernels with INVARIANTS when using sysctl -a, but
would also have caused problems for 32-core boxes or if the netisr
protocol vector was fully populated.

Reported by: nwhitehorn, Neel Natu <neelnatu@gmail.com>
MFC after: 4 days

Details

Provenance
rwatsonAuthored on
Parents
rS204302: Copy usr.sbin/zic to contrib/tzcode/zic for the proper split of
Branches
Unknown
Tags
Unknown

Event Timeline