Page MenuHomeFreeBSD

libpfctl: be more tolerant of kernel extensions
ClosedPublic

Authored by kp on Oct 28 2023, 10:38 PM.
Tags
None
Referenced Files
F108052325: D42392.diff
Mon, Jan 20, 10:47 PM
Unknown Object (File)
Sat, Jan 11, 4:46 PM
Unknown Object (File)
Thu, Jan 9, 6:58 AM
Unknown Object (File)
Fri, Dec 27, 2:40 AM
Unknown Object (File)
Dec 15 2024, 6:04 PM
Unknown Object (File)
Nov 18 2024, 5:14 PM
Unknown Object (File)
Nov 14 2024, 10:59 PM
Unknown Object (File)
Oct 2 2024, 5:36 PM
Subscribers

Details

Summary

Allow the kernel to supply more array elements than expected, but cut
off when we hit what we think the maximum is. This will improve forward
compatibility (i.e. old userspace with newer kernel).

MFC after: 1 week
Sponsored by: Orange Business Services

Diff Detail

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

Event Timeline

zlei added a subscriber: zlei.

Looks good to me.

lib/libpfctl/libpfctl.c
156

In case elems < maxelems then numbers[] may have uninitialized value. But that is out of the scope of this change.

This revision is now accepted and ready to land.Oct 30 2023, 1:57 PM
This revision was automatically updated to reflect the committed changes.