summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorYilin Zhang <yilinzhang@moonshot.ai>2026-10-30 23:03:51 +0100
committerPaolo Abeni <pabeni@redhat.com>2026-11-04 15:49:14 +0100
commit6d2cf411aba2aa0bd641b49be5b1964ac5097a50 (patch)
tree77e530d688357d82ea63785dac50cb40d7b239e5 /tools/perf/scripts/python/task-analyzer.py
parent8e069fd3fd396b89af417e50b359bc9892dd41cd (diff)
mptcp: do not use Fast Open on MP_JOIN subflows
tcp_fastopen_create_child() hands the SYN packet itself to subflow_syn_recv_sock(). For an MP_JOIN request this takes the fatal fallback: the cloned child is destroyed and handed back with drop_req flagged, but tcp_fastopen_create_child() does not check the flag and queues it, so accept() can expose the freed child. MP_JOIN cannot use Fast Open: data on a subflow requires the completed HMAC exchange (RFC 8684, sec. 3.2). Refuse it (only the TFO path passes a SYN skb here) and let tcp_conn_request() fall back to the regular MP_JOIN handshake; also strip the Fast Open cookie from MP_JOIN SYN/ACKs. Fixes: 90bf45134d55 ("mptcp: add new sock flag to deal with join subflows") Cc: stable@vger.kernel.org Reported-by: Kimi Security Team <bug-report@moonshot.ai> Suggested-by: Jiayuan Chen <jiayuan.chen@linux.dev> Suggested-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Yilin Zhang <yilinzhang@moonshot.ai> [ Moving code to avoid clearing TS and consolidating checks. ] Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org> Link: https://patch.msgid.link/20261030-mptcp-tfo-mpj-v4-1-e6eff2027342@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions