Page MenuHomeFreeBSD

netlink: cope with growing requests
ClosedPublic

Authored by kp on Oct 16 2023, 12:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 26, 2:17 PM
Unknown Object (File)
Sun, Dec 8, 11:05 PM
Unknown Object (File)
Nov 23 2024, 11:38 AM
Unknown Object (File)
Nov 19 2024, 5:03 PM
Unknown Object (File)
Nov 15 2024, 1:07 AM
Unknown Object (File)
Oct 7 2024, 9:42 PM
Unknown Object (File)
Oct 7 2024, 9:42 PM
Unknown Object (File)
Oct 7 2024, 9:40 PM
Subscribers

Details

Summary

If a request ends up growing beyong the initially allocated space the
netlink functions (such as snl_add_msg_attr_u32()) will allocate a
new buffer. This invalidates the header pointer we can have received
from snl_create_msg_request(). Always use the hdr returned by
snl_finalize_msg().

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable