aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorPaolo Abeni <[email protected]>2020-04-24 13:15:21 +0200
committerDavid S. Miller <[email protected]>2020-04-25 20:38:54 -0700
commit1200832c6e850a17f36631f6492f953a1b39e6b8 (patch)
treeac7289c7ae0723ae43b97911c830be0efcac2cab /lib/netdev-notifier-error-inject.c
parentb2768df24ec400dd4f7fa79542f797e904812053 (diff)
mptcp: fix race in msk status update
Currently subflow_finish_connect() changes unconditionally any msk socket status other than TCP_ESTABLISHED. If an unblocking connect() races with close(), we can end-up triggering: IPv4: Attempt to release TCP socket in state 1 00000000e32b8b7e when the msk socket is disposed. Be sure to enter the established status only from SYN_SENT. Fixes: c3c123d16c0e ("net: mptcp: don't hang in mptcp_sendmsg() after TCP fallback") Signed-off-by: Paolo Abeni <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions