mptcp: avoid a WARN on bad input.
authorPaolo Abeni <pabeni@redhat.com>
Thu, 30 Apr 2020 13:01:53 +0000 (15:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2020 19:23:22 +0000 (12:23 -0700)
commitd6085fe19b8ec53d8ea2d8a10390b7ab6978ac44
tree8d86b32993478227f5a62f98d2f232f53afa6314
parentcfde141ea3faa30e362bbdb5c28001bbbdb0b8e0
mptcp: avoid a WARN on bad input.

Syzcaller has found a way to trigger the WARN_ON_ONCE condition
in check_fully_established().

The root cause is a legit fallback to TCP scenario, so replace
the WARN with a plain message on a more strict condition.

Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c