Recently, Paolo noticed that tcp_done() has been closed on an already
closed socket and this was causing an issue reported by Christoph.
To prevent such issues, we can add a WARN in tcp_done() if the state is
already TCP_CLOSE, see patch 2/2.
But before, we need to remove code paths leading to such situations, see
Signed-off-by: Matthieu Baerts <firstname.lastname@example.org>
Matthieu Baerts (2):
mptcp: avoid setting TCP_CLOSE state twice
Squash-to: DO-NOT-MERGE: mptcp: use kmalloc on kasan build
net/ipv4/tcp.c | 2 ++
net/mptcp/subflow.c | 1 -
2 files changed, 2 insertions(+), 1 deletion(-)
Matthieu Baerts <email@example.com>