ipv6: Return an error when adding an already existing tunnel
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ip6_tunnel: Return an error when adding an existing tunnel.net/ | +5 | 0 replies | |
| 2/3 | ip6_vti: Return an error when adding an existing tunnel.net/ | +5 | 0 replies | |
| 3/3 | ip6_gre: Return an error when adding an existing tunnel.net/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.