[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250410152432.30246-1-justin.iurman@uliege.be>
Date: Thu, 10 Apr 2025 17:24:30 +0200
From: Justin Iurman <justin.iurman@...ege.be>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
horms@...nel.org,
justin.iurman@...ege.be
Subject: [PATCH net-next 0/2] Mitigate double allocations in ioam6_iptunnel
Commit dce525185bc9 ("net: ipv6: ioam6_iptunnel: mitigate 2-realloc
issue") fixed the double allocation issue in ioam6_iptunnel. However,
since commit 92191dd10730 ("net: ipv6: fix dst ref loops in rpl, seg6
and ioam6 lwtunnels"), the fix was left incomplete. Because the cache is
now empty when the dst_entry is the same post transformation in order to
avoid a reference loop, the double reallocation is back for such cases
(e.g., inline mode) which are valid for IOAM. This patch provides a way
to detect such cases without having a reference loop in the cache, and
so to avoid the double reallocation issue for all cases again.
Justin Iurman (2):
net: ipv6: ioam6: use consistent dst names
net: ipv6: ioam6: fix double reallocation
net/ipv6/ioam6_iptunnel.c | 73 +++++++++++++++++++++++++++++----------
1 file changed, 55 insertions(+), 18 deletions(-)
--
2.34.1
Powered by blists - more mailing lists