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)
Tue, Jun 23, 9:19 PM
Unknown Object (File)
Tue, Jun 23, 12:23 AM
Unknown Object (File)
Mon, Jun 22, 10:05 PM
Unknown Object (File)
Thu, Jun 4, 5:57 PM
Unknown Object (File)
May 29 2026, 3:02 AM
Unknown Object (File)
May 26 2026, 2:28 PM
Unknown Object (File)
May 26 2026, 2:25 PM
Unknown Object (File)
May 24 2026, 4:09 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66281
Build 63164: arc lint + arc unit