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)
Oct 7 2024, 9:42 PM
Unknown Object (File)
Oct 7 2024, 9:42 PM
Unknown Object (File)
Oct 7 2024, 9:40 PM
Unknown Object (File)
Oct 7 2024, 9:16 PM
Unknown Object (File)
Oct 2 2024, 7:55 AM
Unknown Object (File)
Sep 29 2024, 8:46 PM
Unknown Object (File)
Sep 8 2024, 7:33 PM
Unknown Object (File)
Sep 4 2024, 12:50 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