Page MenuHomeFreeBSD

netlink: do not pass writer to the Linux translation layer
ClosedPublic

Authored by glebius on Aug 16 2025, 12:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 3:56 PM
Unknown Object (File)
Sat, Oct 11, 3:56 PM
Unknown Object (File)
Sat, Oct 11, 3:56 PM
Unknown Object (File)
Sat, Oct 11, 7:27 AM
Unknown Object (File)
Fri, Oct 3, 3:20 AM
Unknown Object (File)
Fri, Oct 3, 12:21 AM
Unknown Object (File)
Thu, Oct 2, 8:52 PM
Unknown Object (File)
Wed, Oct 1, 11:03 AM
Subscribers

Details

Summary

Another flaw in the KPI between Netlink and Linuxulator is that we pass
the on-stack writer structure. This structure belongs to someone, that we
can't even identify inside nl_send() and we shall not tamper it. The
Linux translation layer needs a writer, because it actually composes a new
message. Instead of reusing someone's writer and trying to repair it in
all possible cases where translation process tampers the writer, just let
Linuxulator use its own writer. See also b977dd1ea5fb.

PR: 288892

Diff Detail

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