diff options
author | Paolo Abeni <[email protected]> | 2020-06-10 10:47:41 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2020-06-10 13:34:14 -0700 |
commit | 5969856ae8ce29c9d523a1a6145cbd9e87f7046c (patch) | |
tree | b90d784ed77ae10ea21a668c4a6eb0def76e8300 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 50cb8769f2c1c657a470bda192b79ff679d0ecfc (diff) |
mptcp: fix races between shutdown and recvmsg
The msk sk_shutdown flag is set by a workqueue, possibly
introducing some delay in user-space notification. If the last
subflow carries some data with the fin packet, the user space
can wake-up before RCV_SHUTDOWN is set. If it executes unblocking
recvmsg(), it may return with an error instead of eof.
Address the issue explicitly checking for eof in recvmsg(), when
no data is found.
Fixes: 59832e246515 ("mptcp: subflow: check parent mptcp socket on subflow state change")
Signed-off-by: Paolo Abeni <[email protected]>
Reviewed-by: Matthieu Baerts <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions