Article View: linux.kernel.netdev
Article #13350Re: [PATCH iproute2 v2] libnetlink: zero padding in rta_addattr_l()
From: patchwork-bot+netdevbpf
Date: Mon, 09 Nov 2026 17:50
Date: Mon, 09 Nov 2026 17:50
25 lines
8639 bytes
8639 bytes
Hello:
This patch was applied to iproute2/iproute2.git (main)
by Stephen Hemminger <stephen@networkplumber.org>:
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
Technical Details
Message-ID:
<179424660867.3393623.8324863272464754349.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359488-linux-kernel-netdev=dewy.ruReferences:
<20261109164116.2637408-1-dave.seddon.ca@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359488-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH iproute2 v2] libnetlink: zero padding in rta_addattr_l() Date: Mon, 09 Nov 2026 17:50:08 +0000 Organization: Usenet Network Message-ID: <179424660867.3393623.8324863272464754349.git-patchwork-notify@kernel.org> References: <20261109164116.2637408-1-dave.seddon.ca@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="415903"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:sFbf5qL2JuKdxQrTcGxyydVKPY4= sha256:bNYjszH7jV/pq8H+yAI8ldaFdKa0xo4Js0N/bzaF/40= sha1:xfD73y253zVEEX2vDaML8K7Bt10= sha256:/i56kOsIY6GtBQNzi4HznClnshkUphkYprt0CeCO3pE= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 678C7113864; Mon, 9 Nov 2026 20:51:05 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eZI5Pg5CRLs3; Mon, 9 Nov 2026 20:51:01 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359488-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id C4C471138BA; Mon, 9 Nov 2026 20:50:53 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 3EBAC60D266; Mon, 9 Nov 2026 17:50:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794246611; b=YJlX3v0/7OvaIGNcoZ8ZYbSykiLVlgmgjLoNAb69F1KCf3nvTYsFyoGWMJxr+1yz+ph2 +sQHNouwYFxAT8HEOdy2MJVuauKKai142Dv2Kb5m4NAqmyrOIRpndDM5YaL3DNy/Gd03y 3oYo5A2mMBKHVBuFiW6e9amrQLBzCg+TtNGB6WHcWg0CAfW8e7CYj2d9k10bSnbvVSQNG r5olIm26H3ea/UQBUSLERdC0KGnZEd2Ze936m8iaBe0Q/1fTAzWCkyD9nc/TIOywjPOBA c9uaiMy5K9qI+qySukutUd32/vq/cTuiZnb7m6lus4x1MXa27lOCwLoMzo69+REtmow== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794246611; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=c3imtM1pjHxOPhVDojpdZOzaRP31i9BPx97saE9mOwc=; b=vQdq6g1lYavZgAhO8Hg+tko4JkG9J9fXkT/RI5mJCBp0Is5acJRZe0DSIvH/VfxN1Sro vcKSA98DqkhkcIYcg0lUUTFxXSRZv6WhER50y6wnPNcBG6D05PopZM3ekRKYWElaGLD0q znFNfA5CdVdldadg3Yg3gdfztpXGsKwg8PmPPrr1n0V8CSqnGP1qfnJHtInihVvX2dZa9 /6NLtPYwuD2TmhiDGiRxcb99GLRYdxThQch9cT1JZvh7otEFMNfqgEsrZP1GtPe4apL0l 08i8YOl/5xniLZnqDUG1XnEMmJu79rj0PVsBx1WFqpXmV1FoqMc2TAw67xTn7QoW7wg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EEZENXvT; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84673606A332; Mon, 9 Nov 2026 17:50:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EEZENXvT X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794246610; b=dlNVp1SQwXi5v1mSo26T4YqzPJOgmaSLv4WUJPEpktZVzS7WJ7Ju2W2xkTEXcNNs52T3 D2+Fpbud1W9iO6Uy5w3jtST2KD7vm8xu7AAGC/OdxExND82eJw1rRWwV/DplOuV//qCZn JHjRutiJLkpyWhLl8J/M1NHrHDWqtKOcpMoHR5cIss5Sx2xVjNZT6pUMX7tESqCqK5qN8 87CgiqssslB445PnxramCxwivVyesfSDRStX85lilZ6RB+/gpnk2xwxx5OcSRXs1/WBbi XuFh7ArUU8t9Bp+jcbwzSUSToFxpe9cHNZAUT6+eS+/fkYW1PNAWvO21OKPKZKuEATg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794246610; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=c3imtM1pjHxOPhVDojpdZOzaRP31i9BPx97saE9mOwc=; b=1FzaBsyQ7iSeauZUWq6Bl8ZHMaDDSrvuVUYgEhp/OUSSeogqU6WIHOK3f3M8CL254i88 eqSYriM0X8jlT6ju1VnSfK90OkwuFZVjiGGFIj767EgO614m/HUCQU3Ebax4RFBIJOjVG jmFXknZuraQdM+k+GMJylDFwCLV7Rlmqh0NYgLfYuRFI9Kg674jMIqkfVd9Mqf0pZRk+l Ai6J8z1a57eCP8/8dkHqQzCAgjedYfeFzEvRLMCtRw+at2KbFGSwux5N1LA3A7UbvZ0YH BfkQTmB+PAy5Q+bX0613Iind8PursBwqNOtX0W7u4ttOQAHDa+jTwNtb8Kup02ajP8A== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=EEZENXvT; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67AA4606A31C for <netdev@vger.kernel.org>; Mon, 9 Nov 2026 17:50:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E35BD1F008A1; Mon, 9 Nov 2026 17:50:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794246609; bh=c3imtM1pjHxOPhVDojpdZOzaRP31i9BPx97saE9mOwc=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=EEZENXvTSyKF8JZSbh8xBVBlHY8wLX7jxTs0T/l7q1viId3OVCgBnQuAHou/ekG2k mih+XwEZih1Jfj/Kl/anxAsy1zzutSP//A9uB4tlXHn+3H/1eMbPFiaKINWA9SbmNc bLTGN6jLdb9CgvTu+bSXwhC/M42RZzZ3D9P5Gp52FQQaL2RSXFb52h/5nsq3vx0yP2 QL3uYR2mGmyildnj3jOHPw3ldsAgTDhYxcVBQre3l4xT2wjwMLk5dyPka3W9qUDJ98 lrfK0eUifuiEgkUZh5+PzJS4y4WzqYPJZcJDcxP/1jxlNwmEEUuy+stGcu8j+gPaPw HC2/j/ZmnC5XQ== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id D84C03805CD6; Mon, 9 Nov 2026 17:50:09 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261109164116.2637408-1-dave.seddon.ca@gmail.com> X-Cc: netdev@vger.kernel.org, stephen@networkplumber.org, dsahern@kernel.org