Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcp: check space before adding MPTCP SYN options
commit 06d64ab upstream. Ensure there is enough space before adding MPTCP options in tcp_syn_options(). Without this check, 'remaining' could underflow, and causes issues. If there is not enough space, MPTCP should not be used. Signed-off-by: MoYuanhao <[email protected]> Fixes: cec37a6 ("mptcp: Handle MP_CAPABLE options for outgoing connections") Cc: [email protected] Acked-by: Matthieu Baerts (NGI0) <[email protected]> [ Matt: Add Fixes, cc Stable, update Description ] Signed-off-by: Matthieu Baerts (NGI0) <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information