mptcp: do not warn on bad input from the network
authorPaolo Abeni <pabeni@redhat.com>
Thu, 10 Jun 2021 22:59:42 +0000 (15:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jun 2021 23:47:45 +0000 (16:47 -0700)
commit61e710227e97172355d5f150d5c78c64175d9fb2
treea042fe4f080d063ab90b9de0bad677a2dc757307
parent99d1055ce2469dca3dd14be0991ff8133e25e3d0
mptcp: do not warn on bad input from the network

warn_bad_map() produces a kernel WARN on bad input coming
from the network. Use pr_debug() to avoid spamming the system
log.

Additionally, when the right bound check fails, warn_bad_map() reports
the wrong ssn value, let's fix it.

Fixes: 648ef4b88673 ("mptcp: Implement MPTCP receive path")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/107
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>
net/mptcp/subflow.c