Re: [PATCH iproute2 v2] libnetlink: zero padding in rta_addattr_l()

From
patchwork-bot+netdevbpf@kernel.org
Date
2026-11-09 17:50:10
Reply to
Dave Seddon, 2026-11-09
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

Thread (2 messages) 2 messages, 2 authors, last reply 12d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help