]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ipv6: ioam6: fix lwtunnel_output() loop
authorJustin Iurman <justin.iurman@uliege.be>
Fri, 14 Mar 2025 12:00:47 +0000 (13:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 21:03:28 +0000 (22:03 +0100)
commit0d8a8179fa52c66ca04395fb3b87c298dee20f6e
tree7bbcae2895f66342d6d2c27c3725e96c36ae94b9
parent49a009135042d2e16fc1cb01acde1ad441f92be4
net: ipv6: ioam6: fix lwtunnel_output() loop

[ Upstream commit 3e7a60b368eadf6c30a4a79dea1eb8f88b6d620d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/ioam6_iptunnel.c