diff options
author | Eric Dumazet <edumazet@google.com> | 2024-01-11 22:49:13 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-13 05:14:21 +0300 |
commit | 89e23277f9c16df6f9f9c1a1a07f8f132339c15c (patch) | |
tree | 11bdd7773db1d9cff4c0ca2eb9f956127f90891d /net/l2tp | |
parent | cbdd50ec8b1daef6d71fb3325e436c8dec2d2e15 (diff) | |
download | linux-89e23277f9c16df6f9f9c1a1a07f8f132339c15c.tar.xz |
mptcp: mptcp_parse_option() fix for MPTCPOPT_MP_JOIN
mptcp_parse_option() currently sets OPTIONS_MPTCP_MPJ, for the three
possible cases handled for MPTCPOPT_MP_JOIN option.
OPTIONS_MPTCP_MPJ is the combination of three flags:
- OPTION_MPTCP_MPJ_SYN
- OPTION_MPTCP_MPJ_SYNACK
- OPTION_MPTCP_MPJ_ACK
This is a problem, because backup, join_id, token, nonce and/or hmac fields
could be left uninitialized in some cases.
Distinguish the three cases, as following patches will need this step.
Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Florian Westphal <fw@strlen.de>
Cc: Peter Krystad <peter.krystad@linux.intel.com>
Cc: Matthieu Baerts <matttbe@kernel.org>
Cc: Mat Martineau <martineau@kernel.org>
Cc: Geliang Tang <geliang.tang@linux.dev>
Reviewed-by: Simon Horman <horms@kernel.org>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Link: https://lore.kernel.org/r/20240111194917.4044654-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/l2tp')
0 files changed, 0 insertions, 0 deletions