]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: Handle incoming 32-bit DATA_FIN values
authorMat Martineau <mathew.j.martineau@linux.intel.com>
Tue, 29 Sep 2020 22:08:20 +0000 (15:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Sep 2020 01:15:46 +0000 (18:15 -0700)
commit1a49b2c2a501467587504e75bd049d43af38b692
tree59f8d418675ec25404f4504dbad9b71c8e253b43
parent917944da3bfc7cb5ac3af26725af3371d3a12db0
mptcp: Handle incoming 32-bit DATA_FIN values

The peer may send a DATA_FIN mapping with either a 32-bit or 64-bit
sequence number. When a 32-bit sequence number is received for the
DATA_FIN, it must be expanded to 64 bits before comparing it to the
last acked sequence number. This expansion was missing.

Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/93
Fixes: 3721b9b64676 ("mptcp: Track received DATA_FIN sequence number and add related helpers")
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c
net/mptcp/protocol.h
net/mptcp/subflow.c