mbox series

[net,v3,0/2] fixes for seg6 and rpl lwtunnels on input

Message ID 20250225175139.25239-1-justin.iurman@uliege.be (mailing list archive)
Headers show
Series fixes for seg6 and rpl lwtunnels on input | expand

Message

Justin Iurman Feb. 25, 2025, 5:51 p.m. UTC
v3:
- split patch #1 from -v2 into two separate patches
- drop patches #2 and #3 from -v2: they will be addressed later with
  another series, so that we don't block this one
v2:
- https://lore.kernel.org/netdev/20250211221624.18435-1-justin.iurman@uliege.be/
v1:
- https://lore.kernel.org/netdev/20250209193840.20509-1-justin.iurman@uliege.be/

As a follow up to commit 92191dd10730 ("net: ipv6: fix dst ref loops in
rpl, seg6 and ioam6 lwtunnels"), we also need a conditional dst cache on
input for seg6_iptunnel and rpl_iptunnel to prevent dst ref loops (i.e.,
if the packet destination did not change, we may end up recording a
reference to the lwtunnel in its own cache, and the lwtunnel state will
never be freed). This series provides a fix to respectively prevent a
dst ref loop on input in seg6_iptunnel and rpl_iptunnel.

Justin Iurman (2):
  net: ipv6: fix dst ref loop on input in seg6 lwt
  net: ipv6: fix dst ref loop on input in rpl lwt

 net/ipv6/rpl_iptunnel.c  | 14 ++++++++++++--
 net/ipv6/seg6_iptunnel.c | 14 ++++++++++++--
 2 files changed, 24 insertions(+), 4 deletions(-)