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)
Sat, Jan 10, 7:02 PM
Unknown Object (File)
Sat, Jan 10, 5:36 PM
Unknown Object (File)
Sat, Jan 10, 5:06 PM
Unknown Object (File)
Sat, Jan 10, 7:01 AM
Unknown Object (File)
Fri, Jan 9, 7:30 AM
Unknown Object (File)
Dec 14 2025, 11:36 AM
Unknown Object (File)
Nov 13 2025, 8:05 PM
Unknown Object (File)
Nov 6 2025, 12:51 AM
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