Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mptcp: prevent tcp diag from closing listener subflows
The MPTCP protocol does not expect that any other entity could change the first subflow status when such socket is listening. Unfortunately the TCP diag interface allows aborting any TCP socket, including MPTCP listeners subflows. As reported by syzbot, that trigger a WARN() and could lead to later bigger trouble. The MPTCP protocol needs to do some MPTCP-level cleanup actions to properly shutdown the listener. To keep the fix simple, prevent entirely the diag interface from stopping such listeners. We could refine the diag callback in a later, larger patch targeting net-next. Fixes: 57fc0f1 ("mptcp: ensure listener is unhashed before updating the sk status") Closes: https://lore.kernel.org/netdev/[email protected]/ Reported-by: [email protected] Signed-off-by: Paolo Abeni <[email protected]>
- Loading branch information