Commit 1516ddb
mptcp: refactor passive socket initialization
[ Upstream commit 3a236ae ]
After commit 30e51b9 ("mptcp: fix unreleased socket in accept queue")
unaccepted msk sockets go throu complete shutdown, we don't need anymore
to delay inserting the first subflow into the subflow lists.
The reference counting deserve some extra care, as __mptcp_close() is
unaware of the request socket linkage to the first subflow.
Please note that this is more a refactoring than a fix but because this
modification is needed to include other corrections, see the following
commits. Then a Fixes tag has been added here to help the stable team.
Fixes: 30e51b9 ("mptcp: fix unreleased socket in accept queue")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Tested-by: Christoph Paasch <cpaasch@apple.com>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 75eb690 commit 1516ddb
2 files changed
Lines changed: 21 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
834 | 834 | | |
835 | 835 | | |
836 | 836 | | |
837 | | - | |
838 | 837 | | |
839 | 838 | | |
840 | 839 | | |
| |||
3729 | 3728 | | |
3730 | 3729 | | |
3731 | 3730 | | |
3732 | | - | |
3733 | | - | |
3734 | | - | |
3735 | | - | |
3736 | | - | |
3737 | | - | |
3738 | | - | |
3739 | | - | |
3740 | | - | |
3741 | | - | |
3742 | | - | |
3743 | | - | |
3744 | | - | |
3745 | | - | |
3746 | | - | |
3747 | | - | |
3748 | 3731 | | |
3749 | 3732 | | |
3750 | 3733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
358 | 364 | | |
359 | 365 | | |
360 | 366 | | |
| |||
685 | 691 | | |
686 | 692 | | |
687 | 693 | | |
| 694 | + | |
688 | 695 | | |
689 | 696 | | |
690 | 697 | | |
| |||
759 | 766 | | |
760 | 767 | | |
761 | 768 | | |
| 769 | + | |
| 770 | + | |
762 | 771 | | |
763 | 772 | | |
764 | 773 | | |
| |||
767 | 776 | | |
768 | 777 | | |
769 | 778 | | |
770 | | - | |
| 779 | + | |
771 | 780 | | |
772 | 781 | | |
773 | 782 | | |
774 | 783 | | |
775 | 784 | | |
776 | | - | |
777 | | - | |
| 785 | + | |
| 786 | + | |
778 | 787 | | |
779 | 788 | | |
780 | 789 | | |
781 | 790 | | |
782 | 791 | | |
783 | 792 | | |
784 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
785 | 799 | | |
786 | 800 | | |
787 | 801 | | |
788 | 802 | | |
789 | | - | |
| 803 | + | |
790 | 804 | | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
791 | 808 | | |
792 | | - | |
793 | | - | |
794 | 809 | | |
795 | 810 | | |
796 | 811 | | |
| |||
0 commit comments