diff options
| author | Paolo Abeni <[email protected]> | 2024-02-08 18:03:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-02-12 10:08:13 +0000 |
| commit | 337cebbd850f94147cee05252778f8f78b8c337f (patch) | |
| tree | b8285f6b5af2c0764e628f51630842e52aaf477e /net/unix/garbage.c | |
| parent | mptcp: check addrs list in userspace_pm_get_local_id (diff) | |
| download | kernel-337cebbd850f94147cee05252778f8f78b8c337f.tar.gz kernel-337cebbd850f94147cee05252778f8f78b8c337f.zip | |
mptcp: really cope with fastopen race
Fastopen and PM-trigger subflow shutdown can race, as reported by
syzkaller.
In my first attempt to close such race, I missed the fact that
the subflow status can change again before the subflow_state_change
callback is invoked.
Address the issue additionally copying with all the states directly
reachable from TCP_FIN_WAIT1.
Fixes: 1e777f39b4d7 ("mptcp: add MSG_FASTOPEN sendmsg flag support")
Fixes: 4fd19a307016 ("mptcp: fix inconsistent state on fastopen race")
Cc: [email protected]
Reported-by: [email protected]
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/458
Signed-off-by: Paolo Abeni <[email protected]>
Reviewed-by: Mat Martineau <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
