Message ID | 20220921005915.2697-1-yepeilin.cs@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | db39dfdc1c3bd9da273902da12f01973792ff911 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] udp: Use WARN_ON_ONCE() in udp_read_skb() | expand |
Hello: This patch was applied to netdev/net.git (master) by Jakub Kicinski <kuba@kernel.org>: On Tue, 20 Sep 2022 17:59:15 -0700 you wrote: > From: Peilin Ye <peilin.ye@bytedance.com> > > Prevent udp_read_skb() from flooding the syslog. > > Suggested-by: Jakub Sitnicki <jakub@cloudflare.com> > Signed-off-by: Peilin Ye <peilin.ye@bytedance.com> > > [...] Here is the summary with links: - [net] udp: Use WARN_ON_ONCE() in udp_read_skb() https://git.kernel.org/netdev/net/c/db39dfdc1c3b You are awesome, thank you!
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index cd72158e953a..560d9eadeaa5 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1821,7 +1821,7 @@ int udp_read_skb(struct sock *sk, skb_read_actor_t recv_actor) continue; } - WARN_ON(!skb_set_owner_sk_safe(skb, sk)); + WARN_ON_ONCE(!skb_set_owner_sk_safe(skb, sk)); used = recv_actor(sk, skb); if (used <= 0) { if (!copied)