From: Martin Schitter <ms+git@mur.at>
To: Jon Maloy <jmaloy@redhat.com>, sbrivio@redhat.com, passt-dev@passt.top
Subject: Re: [PATCH v2] netlink: Copy all routes in nl_route_dup(), not just the first batch
Date: Fri, 27 Nov 2026 17:05:08 +0100 [thread overview]
Message-ID: <0e651334-b605-42f7-87a4-808d02c4a36e@mur.at> (raw)
In-Reply-To: <20261127143104.589149-1-jmaloy@redhat.com>
On 11/27/26 15:31, Jon Maloy wrote:
> v2 (Jon Maloy): Martin hasn't been available lately, so I picked this
> up, with Stefano's consent:
> - RTA_OIF, RTA_MULTIPATH, RTA_PREFSRC and RTA_NH_ID were handled in a
> single if/else chain, but they're not mutually exclusive: as almost
> every route has RTA_OIF, RTA_PREFSRC and RTA_NH_ID were no longer
> stripped, which caused the EINVAL Stefano reported with a /31
> template address and -a. Strip them independently again, as the
> original code did
Thanks for this finding!
It looks like plausible solution to me, but I don't have an adequate
test environment to check it more carefully in practice.
> - Ignore attribute types above RTA_MAX instead of writing past tb[]
That's a really important additional improvement -- thanks!
> - Tested with Stefano's reproducer, with 300 routes on the template
> interface, and with routes copied together with the device route
> for the gateway.
IMHO it's really important to collect this kind of test scenarios,
because nobody can fully grasp the complexity of these issues and future
kernel changes.
Thanks for your work -- It looks good to me!
Martin
next prev parent reply other threads:[~2026-11-27 16:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-07 11:46 [PATCH] netlink: Fix nl_route_dup by 3-step processing Martin Schitter
2026-11-11 1:47 ` Stefano Brivio
2026-11-27 14:31 ` [PATCH v2] netlink: Copy all routes in nl_route_dup(), not just the first batch Jon Maloy
2026-11-27 15:26 ` Stefano Brivio
2026-11-27 16:26 ` Martin Schitter
2026-11-27 16:05 ` Martin Schitter [this message]
2026-11-26 21:52 Jon Maloy
2026-11-26 23:57 ` Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e651334-b605-42f7-87a4-808d02c4a36e@mur.at \
--to=ms+git@mur.at \
--cc=jmaloy@redhat.com \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).