Skip to content

ipv6: drop encapsulated packets when no source address is available

Justin Iurman netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ioam6: drop the packet if no outer source address is availablenet/ipv6/ioam6_iptunnel.c+7 -41 reply
2/2seg6: drop the packet if no outer source address is availablenet/ipv6/seg6_iptunnel.c+18 -82 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchHangbin Liu
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] ipv6: drop encapsulated packets when no source address is available

Both ioam6 and seg6 (encap modes) lwtunnels select the source address of the outer IPv6 header with ipv6_dev_get_saddr() when no tunnel source is configured, but ignore its return value. When no usable address is available (e.g. none configured yet in the L3 domain, or only tentative ones), the outer source address is left untouched:
- ioam6: it keeps the source address copied from the inner header, which may belong to another node for in-transit traffic;
- seg6: the outer header has just been pushed, so it holds whatever stale bytes were in the skb headroom.

Both patches drop the packet in that case, like other encapsulation failures.

Justin Iurman (2):
ioam6: drop the packet if no outer source address is available
seg6: drop the packet if no outer source address is available

 net/ipv6/ioam6_iptunnel.c | 11 +++++++----
 net/ipv6/seg6_iptunnel.c  | 26 ++++++++++++++++++--------
 2 files changed, 25 insertions(+), 12 deletions(-)
Signature · 1 line
2.34.1