Skip to content

ipv4: icmp: Fix source IP derivation in presence of VRFs

Ido Schimmel linux-security-module netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 2 repliesApplied 8/8
  2. v18 patches 10 repliesSuperseded

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8ipv4: cipso: Simplify IP options handling in cipso_v4_error()net/ipv4/cipso_ipv4.c+6 -71 replyApplied
2/8ipv4: icmp: Pass IPv4 control block structure as an argument to __icmp_send()include/net/icmp.h net/ipv4/cipso_ipv4.c net/ipv4/icmp.c +1 more+24 -201 replyApplied
3/8ipv4: icmp: Fix source IP derivation in presence of VRFsnet/ipv4/icmp.c+2 -10 repliesApplied
4/8selftests: traceroute: Return correct value on failuretools/testing/selftests/net/traceroute.sh+9 -290 repliesApplied
5/8selftests: traceroute: Use require_command()tools/testing/selftests/net/traceroute.sh+3 -100 repliesApplied
6/8selftests: traceroute: Reword commenttools/testing/selftests/net/traceroute.sh+4 -40 repliesApplied
7/8selftests: traceroute: Test traceroute with different source IPstools/testing/selftests/net/traceroute.sh+9 -40 repliesApplied
8/8selftests: traceroute: Add VRF teststools/testing/selftests/net/traceroute.sh+178 -00 repliesApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchPetr MachataDavid AhernPaul MooreEric Dumazet
1/8R-b R-b A-b R-b
2/8R-b R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b
7/8R-b R-b
8/8R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/8] ipv4: icmp: Fix source IP derivation in presence of VRFs

Align IPv4 with IPv6 and in the presence of VRFs generate ICMP error messages with a source IP that is derived from the receiving interface and not from its VRF master. This is especially important when the error messages are "Time Exceeded" messages as it means that utilities like traceroute will show an incorrect packet path.

Patches #1-#2 are preparations.

Patch #3 is the actual change.

Patches #4-#7 make small improvements in the existing traceroute test.

Patch #8 extends the traceroute test with VRF test cases for both IPv4 and IPv6.

Changes since v1 [1]:
* Rebase.

[1] https://lore.kernel.org/netdev/[email protected]/

Ido Schimmel (8):
ipv4: cipso: Simplify IP options handling in cipso_v4_error()
ipv4: icmp: Pass IPv4 control block structure as an argument to

    __icmp_send()

ipv4: icmp: Fix source IP derivation in presence of VRFs
selftests: traceroute: Return correct value on failure
selftests: traceroute: Use require_command()
selftests: traceroute: Reword comment
selftests: traceroute: Test traceroute with different source IPs
selftests: traceroute: Add VRF tests

 include/net/icmp.h                        |  10 +-
 net/ipv4/cipso_ipv4.c                     |  13 +-
 net/ipv4/icmp.c                           |  15 +-
 net/ipv4/route.c                          |  10 +-
 tools/testing/selftests/net/traceroute.sh | 250 ++++++++++++++++++----
 5 files changed, 229 insertions(+), 69 deletions(-)
Signature · 1 line
2.51.0