Page MenuHomeFreeBSD

netlink: cope with growing requests
ClosedPublic

Authored by kp on Oct 16 2023, 12:07 PM.
Tags
None
Referenced Files
F167894083: D42223.diff
Tue, Aug 25, 7:34 AM
Unknown Object (File)
Thu, Aug 20, 10:02 AM
Unknown Object (File)
Sun, Aug 9, 11:13 AM
Unknown Object (File)
Sat, Aug 8, 7:06 PM
Unknown Object (File)
Mon, Aug 3, 7:44 AM
Unknown Object (File)
Mon, Aug 3, 1:02 AM
Unknown Object (File)
Sun, Aug 2, 4:47 AM
Unknown Object (File)
Jul 25 2026, 4:52 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54002
Build 50892: arc lint + arc unit