Skip to content

Commit be1d9d9

Browse files
edumazetkuba-moo
authored andcommitted
mptcp: use OPTION_MPTCP_MPJ_SYNACK in subflow_finish_connect()
subflow_finish_connect() uses four fields (backup, join_id, thmac, none) that may contain garbage unless OPTION_MPTCP_MPJ_SYNACK has been set in mptcp_parse_option() Fixes: f296234 ("mptcp: Add handling of incoming MP_JOIN requests") Signed-off-by: Eric Dumazet <[email protected]> Cc: Florian Westphal <[email protected]> Cc: Peter Krystad <[email protected]> Cc: Matthieu Baerts <[email protected]> Cc: Mat Martineau <[email protected]> Cc: Geliang Tang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Paolo Abeni <[email protected]> Reviewed-by: Mat Martineau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c166527 commit be1d9d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mptcp/subflow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ static void subflow_finish_connect(struct sock *sk, const struct sk_buff *skb)
506506
} else if (subflow->request_join) {
507507
u8 hmac[SHA256_DIGEST_SIZE];
508508

509-
if (!(mp_opt.suboptions & OPTIONS_MPTCP_MPJ)) {
509+
if (!(mp_opt.suboptions & OPTION_MPTCP_MPJ_SYNACK)) {
510510
subflow->reset_reason = MPTCP_RST_EMPTCP;
511511
goto do_reset;
512512
}

0 commit comments

Comments
 (0)