Re: [PATCH net v2 2/3] ipv6: return EMSGSIZE when first route in dump does not fit
From: Stephen Hemminger
Date: Thu Nov 12 2026 - 11:31:37 EST
On Thu, 12 Nov 2026 17:31:15 +0200
Ido Schimmel <idosch@xxxxxxxxxx> wrote:
> >
> > Return -EMSGSIZE in this case, as IPv4 does. This depends on the
> > rtnl_dumpit() fix in the previous patch.
> >
> > Fixes: beb1afac518d ("net: ipv6: Add support to dump multipath routes via RTA_MULTIPATH attribute")
> > Signed-off-by: Stephen Hemminger <stephen@xxxxxxxxxxxxxxxxxx>
>
> Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>
>
> FWIW, given that "It takes some non real world stuff to do this", I
> think these patches can be routed via net-next.
The exaggerated security argument is that malicious root in network namespace
can do this and hide/crash ip commands and/or routing daemons in other namespace.
Once again the analyzer is stretching pretty far to argue that.
But then again with the current "lets chain $.01 vulnerabilities" world maybe not.