]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit01d84a5241ead6666acaca64f144e6f734c212b6
tree8d86b32993478227f5a62f98d2f232f53afa6314
parenta5a8cb5c6a8b65c353a9b5ff95655a9a17ffbe33
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: 2c14519745b2 ("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