From: Paolo Abeni Date: Tue, 25 May 2021 21:23:11 +0000 (-0700) Subject: mptcp: drop unconditional pr_warn on bad opt X-Git-Tag: v5.13-rc4~29^2~2^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3812ce895047afdb78dc750a236515416e0ccded;p=linux-platform-drivers-x86.git mptcp: drop unconditional pr_warn on bad opt This is a left-over of early day. A malicious peer can flood the kernel logs with useless messages, just drop it. Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests") Signed-off-by: Paolo Abeni Signed-off-by: Mat Martineau Signed-off-by: David S. Miller --- diff --git a/net/mptcp/options.c b/net/mptcp/options.c index 99fc21406168..71c535f4e1ef 100644 --- a/net/mptcp/options.c +++ b/net/mptcp/options.c @@ -130,7 +130,6 @@ static void mptcp_parse_option(const struct sk_buff *skb, memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN); pr_debug("MP_JOIN hmac"); } else { - pr_warn("MP_JOIN bad option size"); mp_opt->mp_join = 0; } break;