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)
Mar 13 2024, 1:16 AM
Unknown Object (File)
Mar 13 2024, 1:08 AM
Unknown Object (File)
Mar 13 2024, 1:08 AM
Unknown Object (File)
Mar 12 2024, 5:13 PM
Unknown Object (File)
Mar 9 2024, 11:57 AM
Unknown Object (File)
Feb 19 2024, 11:31 AM
Unknown Object (File)
Jan 27 2024, 12:26 AM
Unknown Object (File)
Dec 25 2023, 4:10 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.