Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger [off-list ref]:
On Mon, 9 Nov 2026 08:41:16 -0800 you wrote:
rta_addattr_l() copies alen bytes but advances the parent by
RTA_ALIGN(len), so the 1-3 padding bytes are never written. This affects
every caller that passes an unaligned length. Nests built in stack
buffers (lwtunnel encap, RTA_MULTIPATH, RTA_METRICS) then send those
bytes to the kernel. For example, in
ip nexthop add id 53 encap mpls 101 ttl 10 via 192.0.2.1 dev d0
[...]
Here is the summary with links:
- [iproute2,v2] libnetlink: zero padding in rta_addattr_l()
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=c5b76cbbfefd
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html