Commit 6787b7e
mptcp: avoid processing packet if a subflow reset
If check_fully_established() causes a subflow reset, it should not
continue to process the packet in tcp_data_queue().
Add a return value to mptcp_incoming_options(), and return false if a
subflow has been reset, else return true. Then drop the packet in
tcp_data_queue()/tcp_rcv_state_process() if mptcp_incoming_options()
return false.
Fixes: d582484 ("mptcp: fix fallback for MP_JOIN subflows")
Signed-off-by: Jianguo Wu <wujianguo@chinatelecom.cn>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 8547ea5 commit 6787b7e
3 files changed
+31
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4247 | 4247 | | |
4248 | 4248 | | |
4249 | 4249 | | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
4250 | 4253 | | |
4251 | 4254 | | |
4252 | 4255 | | |
| |||
4941 | 4944 | | |
4942 | 4945 | | |
4943 | 4946 | | |
4944 | | - | |
4945 | | - | |
| 4947 | + | |
| 4948 | + | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
| 4953 | + | |
4946 | 4954 | | |
4947 | 4955 | | |
4948 | 4956 | | |
| |||
6523 | 6531 | | |
6524 | 6532 | | |
6525 | 6533 | | |
6526 | | - | |
6527 | | - | |
| 6534 | + | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
| 6538 | + | |
6528 | 6539 | | |
6529 | 6540 | | |
6530 | 6541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
| 1038 | + | |
| 1039 | + | |
1039 | 1040 | | |
1040 | 1041 | | |
1041 | 1042 | | |
| |||
1053 | 1054 | | |
1054 | 1055 | | |
1055 | 1056 | | |
1056 | | - | |
| 1057 | + | |
1057 | 1058 | | |
1058 | 1059 | | |
1059 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1060 | 1065 | | |
1061 | | - | |
| 1066 | + | |
1062 | 1067 | | |
1063 | 1068 | | |
1064 | 1069 | | |
| |||
1100 | 1105 | | |
1101 | 1106 | | |
1102 | 1107 | | |
1103 | | - | |
| 1108 | + | |
1104 | 1109 | | |
1105 | 1110 | | |
1106 | 1111 | | |
| |||
1119 | 1124 | | |
1120 | 1125 | | |
1121 | 1126 | | |
1122 | | - | |
| 1127 | + | |
1123 | 1128 | | |
1124 | 1129 | | |
1125 | 1130 | | |
1126 | 1131 | | |
1127 | | - | |
| 1132 | + | |
1128 | 1133 | | |
1129 | 1134 | | |
1130 | 1135 | | |
| |||
1153 | 1158 | | |
1154 | 1159 | | |
1155 | 1160 | | |
| 1161 | + | |
| 1162 | + | |
1156 | 1163 | | |
1157 | 1164 | | |
1158 | 1165 | | |
| |||
0 commit comments