public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/2] icmp: Fix icmp error source address over xfrm tunnel
@ 2026-02-26 10:29 Antony Antony
  2026-02-26 10:27 ` [PATCH net-next v5 1/2] icmp: fix ICMP error source address when xfrm policy matches Antony Antony
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Antony Antony @ 2026-02-26 10:29 UTC (permalink / raw)
  To: Antony Antony, Jakub Kicinski, Steffen Klassert, netdev
  Cc: David S . Miller, David Ahern, Eric Dumazet, Paolo Abeni,
	Herbert Xu, Shuah Khan, devel, Tobias Brunner, Simon Horman,
	Sabrina Dubroca


icmp: Fix icmp error source address over xfrm tunnel

This fix, originally sent to XFRM/IPsec, has been recommended by
Steffen Klassert to submit to the net tree, since it changes ICMP
behavior.

The patch addresses a minor issue related to the IPv4 source address
of ICMP error messages. The bug only occurs when xfrm policies are
configured. It originated from an old 2011 commit:

commit 415b3334a21a ("icmp: Fix regression in nexthop resolution during
replies.")

Submitting to net-next with a selftest.

v1->v2 : add kernel selftest script
v2->v3 : fix test script.
v3->v4 : fix test script based on reviews
     - clarify commit message
     - Changed subsystem prefix to icmp: since fix is in net/ipv4/icmp.c
v4->v5 : fix shellcheck warnings

Antony Antony (2):
  icmp: fix ICMP error source address when xfrm policy matches
  selftests: net: add ICMP error source address test over xfrm tunnel

 net/ipv4/icmp.c                           |   1 -
 tools/testing/selftests/net/Makefile      |   1 +
 tools/testing/selftests/net/xfrm_state.sh | 613 ++++++++++++++++++++++
 3 files changed, 614 insertions(+), 1 deletion(-)
 create mode 100755 tools/testing/selftests/net/xfrm_state.sh

--
2.39.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-28 23:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-26 10:29 [PATCH net-next v5 0/2] icmp: Fix icmp error source address over xfrm tunnel Antony Antony
2026-02-26 10:27 ` [PATCH net-next v5 1/2] icmp: fix ICMP error source address when xfrm policy matches Antony Antony
2026-02-26 16:18   ` David Ahern
2026-02-26 10:28 ` [PATCH net-next v5 2/2] selftests: net: add ICMP error source address test over xfrm tunnel Antony Antony
2026-02-26 13:51 ` [devel-ipsec] [PATCH net-next v5 0/2] icmp: Fix icmp error source address " Paul Wouters
2026-02-28 23:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox