netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] udp: drop secpath before storing an skb in a receive queue
@ 2025-10-14  6:04 Eric Dumazet
  2025-10-14  6:37 ` Sabrina Dubroca
  0 siblings, 1 reply; 17+ messages in thread
From: Eric Dumazet @ 2025-10-14  6:04 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Willem de Bruijn, netdev, eric.dumazet,
	Eric Dumazet, Michal Kubecek, Sabrina Dubroca

Michal reported and bisected an issue after recent adoption
of skb_attempt_defer_free() in UDP.

We had the same issue for TCP, that Sabrina fixed in commit 9b6412e6979f
("tcp: drop secpath at the same time as we currently drop dst")

Many thanks to Michal and Sabrina.

Fixes: 6471658dc66c ("udp: use skb_attempt_defer_free()")
Reported-and-bisected-by: Michal Kubecek <mkubecek@suse.cz>
Closes: https://lore.kernel.org/netdev/gpjh4lrotyephiqpuldtxxizrsg6job7cvhiqrw72saz2ubs3h@g6fgbvexgl3r/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Sabrina Dubroca <sd@queasysnail.net>
---
 net/ipv4/udp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 95241093b7f0..3f05ee70029c 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1709,6 +1709,8 @@ int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb)
 	int dropcount;
 	int nb = 0;
 
+	secpath_reset(skb);
+
 	rmem = atomic_read(&sk->sk_rmem_alloc);
 	rcvbuf = READ_ONCE(sk->sk_rcvbuf);
 	size = skb->truesize;
-- 
2.51.0.788.g6d19910ace-goog


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

end of thread, other threads:[~2025-10-14 13:58 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14  6:04 [PATCH net] udp: drop secpath before storing an skb in a receive queue Eric Dumazet
2025-10-14  6:37 ` Sabrina Dubroca
2025-10-14  6:54   ` Eric Dumazet
2025-10-14  7:32   ` Paolo Abeni
2025-10-14  7:43     ` Eric Dumazet
2025-10-14  8:01       ` Eric Dumazet
2025-10-14  8:06         ` Eric Dumazet
2025-10-14  8:27           ` Eric Dumazet
2025-10-14  8:55             ` Paolo Abeni
2025-10-14 11:20             ` Michal Kubecek
2025-10-14 11:34               ` Eric Dumazet
2025-10-14 13:18                 ` Michal Kubecek
2025-10-14 13:40                 ` Florian Westphal
2025-10-14 13:58                   ` Eric Dumazet
2025-10-14  8:28           ` Sabrina Dubroca
2025-10-14  8:33             ` Eric Dumazet
2025-10-14  7:45     ` Sabrina Dubroca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).