Page MenuHomeFreeBSD

netgraph: increase size of sockaddr_ng to match maximum node name
ClosedPublic

Authored by glebius on Nov 21 2023, 1:28 AM.
Tags
None
Referenced Files
F108898812: D42690.diff
Wed, Jan 29, 7:28 AM
Unknown Object (File)
Tue, Jan 28, 1:51 PM
Unknown Object (File)
Wed, Jan 22, 6:27 AM
Unknown Object (File)
Sun, Jan 19, 8:19 PM
Unknown Object (File)
Sat, Jan 18, 1:03 AM
Unknown Object (File)
Thu, Jan 2, 8:23 PM
Unknown Object (File)
Dec 25 2024, 10:10 AM
Unknown Object (File)
Dec 20 2024, 3:50 PM
Subscribers

Details

Summary

The ng_socket(4) node already writes more than declared size of the
struct at least in the in ng_getsockaddr(). Make size match size of
a node name. The value is pasted instead of including ng_message.h
into ng_socket.h. This is external API and we want to keep it stable
even if NG_NODESIZ is redefined in a kernel build.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 54532
Build 51421: arc lint + arc unit