From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=none dis=none) header.from=mur.at Received: from efeu.mur.at (efeu.mur.at [89.106.208.42]) by passt.top (Postfix) with ESMTPS id 65C495A0272 for ; Fri, 27 Nov 2026 17:05:10 +0100 (CET) Received: from [192.168.4.117] (lan1.raspi.ma39.ffgraz.net [10.12.1.243]) by efeu.mur.at (Postfix) with ESMTPSA id 546CC47274; Fri, 27 Nov 2026 17:05:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mur.at; s=dkim2; t=1795795509; bh=vAaymIf46iq9F9fW4EOnkmJ3ghkZAxQbzvUO+xot5Hk=; h=Date:From:Subject:To:References:In-Reply-To:From; b=B5rIYFH/jgF0C6nb19bbqZv55VdHmFJk6Q1PAJu8nL17tsl+QwSzca7phKrOi4wJn e5ge5xu/wsMd0EAwJRZr11tLZnx1J9YkiH5Ck4zCuwatJvTavRur9+LK8ZZUBz61dK P/eRUfPoA+hx0pY6uMPXV9RPQjYYzfVzX8R3CIqCLRmDcAJ60pUxbqOG1sFVYFe/9S 73tTWLrwjwvygI4mpKibcudMgWytQgSx1EeE5K/jUDSCVCwwjCqLcFWlPgeWwtMF6x 2jnHlQ1oyd2+BW+QZ2JM58utad3LEGP967EuWh6zmnzIN7UFBiVmc5wdAyI89YA+IS 9ai+YijLMD07B+Tov5BK3HgqYhhSzXSXvdC1qmD9wUpRQ4Donv1ziujQNn3VCFkQ+h 7y0y2fzXlIsoYbL/ceEGckTsyk4XtrWD0c6u9wymNZ5WH9lnqTuSvjlR1x6H5PgF6k vfqW1IBfi5lLWbijGDLIc3mRFkXp1oHDEmjHPJmTspqtN1mBWJ+ Message-ID: <0e651334-b605-42f7-87a4-808d02c4a36e@mur.at> Date: Fri, 27 Nov 2026 17:05:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Martin Schitter Subject: Re: [PATCH v2] netlink: Copy all routes in nl_route_dup(), not just the first batch To: Jon Maloy , sbrivio@redhat.com, passt-dev@passt.top References: <20261107114621.804266-1-ms+git@mur.at> <20261127143104.589149-1-jmaloy@redhat.com> Content-Language: de-DE, en-US In-Reply-To: <20261127143104.589149-1-jmaloy@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MailFrom: ms+git@mur.at X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: T3RZSY43PHKKECYQAR6OPU3IOUNARKG4 X-Message-ID-Hash: T3RZSY43PHKKECYQAR6OPU3IOUNARKG4 X-Mailman-Approved-At: Fri, 27 Nov 2026 17:23:32 +0100 X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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