Page MenuHomeFreeBSD

libpfctl: be more tolerant of kernel extensions
ClosedPublic

Authored by kp on Oct 28 2023, 10:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 27, 11:26 PM
Unknown Object (File)
Thu, Jul 23, 3:50 AM
Unknown Object (File)
Wed, Jul 22, 11:59 AM
Unknown Object (File)
Tue, Jul 21, 8:24 AM
Unknown Object (File)
Tue, Jul 21, 12:38 AM
Unknown Object (File)
Sun, Jul 19, 6:57 AM
Unknown Object (File)
Sun, Jul 5, 1:13 AM
Unknown Object (File)
Sat, Jul 4, 9:29 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 Not Applicable
Unit
Tests Not Applicable

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.