Skip to content

Commit 58cd405

Browse files
Paolo Abenidavem330
authored andcommitted
mptcp: keep snd_una updated for fallback socket
After shutdown, for fallback MPTCP sockets, we always have write_seq == snd_una+1 The above will foul OUTQ ioctl(). Keep snd_una in sync with write_seq even after shutdown. Signed-off-by: Paolo Abeni <[email protected]> Signed-off-by: Mat Martineau <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 26abf15 commit 58cd405

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/mptcp/protocol.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2666,6 +2666,7 @@ static void __mptcp_check_send_data_fin(struct sock *sk)
26662666
* state now
26672667
*/
26682668
if (__mptcp_check_fallback(msk)) {
2669+
WRITE_ONCE(msk->snd_una, msk->write_seq);
26692670
if ((1 << sk->sk_state) & (TCPF_CLOSING | TCPF_LAST_ACK)) {
26702671
inet_sk_state_store(sk, TCP_CLOSE);
26712672
mptcp_close_wake_up(sk);

0 commit comments

Comments
 (0)