Commit c2b2ae3
mptcp: handle correctly disconnect() failures
Currently the mptcp code has assumes that disconnect() can fail only
at mptcp_sendmsg_fastopen() time - to avoid a deadlock scenario - and
don't even bother returning an error code.
Soon mptcp_disconnect() will handle more error conditions: let's track
them explicitly.
As a bonus, explicitly annotate TCP-level disconnect as not failing:
the mptcp code never blocks for event on the subflows.
Fixes: 7d80334 ("mptcp: fix deadlock in fastopen error path")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 59bb14b commit c2b2ae3
1 file changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1727 | 1727 | | |
1728 | 1728 | | |
1729 | 1729 | | |
1730 | | - | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
1731 | 1737 | | |
1732 | 1738 | | |
1733 | 1739 | | |
| |||
2389 | 2395 | | |
2390 | 2396 | | |
2391 | 2397 | | |
2392 | | - | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2393 | 2402 | | |
2394 | 2403 | | |
2395 | 2404 | | |
| |||
2812 | 2821 | | |
2813 | 2822 | | |
2814 | 2823 | | |
2815 | | - | |
| 2824 | + | |
2816 | 2825 | | |
2817 | 2826 | | |
2818 | 2827 | | |
| |||
3075 | 3084 | | |
3076 | 3085 | | |
3077 | 3086 | | |
3078 | | - | |
3079 | | - | |
| 3087 | + | |
3080 | 3088 | | |
3081 | 3089 | | |
3082 | | - | |
| 3090 | + | |
3083 | 3091 | | |
3084 | 3092 | | |
3085 | 3093 | | |
| |||
0 commit comments