Skip to content

ipv6: Return an error when adding an already existing tunnel

Steffen Klassert netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ip6_tunnel: Return an error when adding an existing tunnel.net/ipv6/ip6_tunnel.c+5 -10 replies
2/3ip6_vti: Return an error when adding an existing tunnel.net/ipv6/ip6_vti.c+5 -10 replies
3/3ip6_gre: Return an error when adding an existing tunnel.net/ipv6/ip6_gre.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] ipv6: Return an error when adding an already existing tunnel

The ipv6 tunnel locate functions should not return an existing tunnel if create is true. Otherwise it is possible to add the same tunnel multiple times without getting an error.

All our ipv6 tunnels have this bug from the very beginning. Only the sit tunnel was fixed some years ago with:

commit 8db99e57175 ("sit: Fail to create tunnel, if it already exists").

This patchset fixes the remaining ipv6 tunnels.