net: ipv6: ioam6: fix lwtunnel_output() loop
authorJustin Iurman <justin.iurman@uliege.be>
Fri, 14 Mar 2025 12:00:47 +0000 (13:00 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 20 Mar 2025 10:25:52 +0000 (11:25 +0100)
commit3e7a60b368eadf6c30a4a79dea1eb8f88b6d620d
tree79bb670fe75071a04e97f2bbd828cfb541b56cba
parent986ffb3a57c5650fb8bf6d59a8f0f07046abfeb6
net: ipv6: ioam6: fix lwtunnel_output() loop

Fix the lwtunnel_output() reentry loop in ioam6_iptunnel when the
destination is the same after transformation. Note that a check on the
destination address was already performed, but it was not enough. This
is the example of a lwtunnel user taking care of loops without relying
only on the last resort detection offered by lwtunnel.

Fixes: 8cb3bf8bff3c ("ipv6: ioam: Add support for the ip6ip6 encapsulation")
Signed-off-by: Justin Iurman <justin.iurman@uliege.be>
Link: https://patch.msgid.link/20250314120048.12569-3-justin.iurman@uliege.be
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv6/ioam6_iptunnel.c