mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
mptcp: drop unconditional pr_warn on bad opt
commit3812ce8950upstream. This is a left-over of early day. A malicious peer can flood the kernel logs with useless messages, just drop it. Fixes:f296234c98("mptcp: Add handling of incoming MP_JOIN requests") Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
71227b6214
commit
deeb7d84f2
|
|
@ -127,7 +127,6 @@ static void mptcp_parse_option(const struct sk_buff *skb,
|
||||||
memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN);
|
memcpy(mp_opt->hmac, ptr, MPTCPOPT_HMAC_LEN);
|
||||||
pr_debug("MP_JOIN hmac");
|
pr_debug("MP_JOIN hmac");
|
||||||
} else {
|
} else {
|
||||||
pr_warn("MP_JOIN bad option size");
|
|
||||||
mp_opt->mp_join = 0;
|
mp_opt->mp_join = 0;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user