summaryrefslogtreecommitdiffstats
path: root/net/mptcp/options.c
diff options
context:
space:
mode:
authorEdward Adam Davis <eadavis@qq.com>2023-11-23 02:23:39 +0100
committerDavid S. Miller <davem@davemloft.net>2023-11-24 15:58:33 +0100
commit237ff253f2d4f6307b7b20434d7cbcc67693298b (patch)
treed7baa16e27b8825a649c207cdf022dfaf094d99c /net/mptcp/options.c
parentMerge branch 'rswitch-fixes' (diff)
downloadlinux-237ff253f2d4f6307b7b20434d7cbcc67693298b.tar.xz
linux-237ff253f2d4f6307b7b20434d7cbcc67693298b.zip
mptcp: fix uninit-value in mptcp_incoming_options
Added initialization use_ack to mptcp_parse_option(). Reported-by: syzbot+b834a6b2decad004cfa1@syzkaller.appspotmail.com Signed-off-by: Edward Adam Davis <eadavis@qq.com> Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/mptcp/options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mptcp/options.c b/net/mptcp/options.c
index cd15ec73073e..c53914012d01 100644
--- a/net/mptcp/options.c
+++ b/net/mptcp/options.c
@@ -108,6 +108,7 @@ static void mptcp_parse_option(const struct sk_buff *skb,
mp_opt->suboptions |= OPTION_MPTCP_DSS;
mp_opt->use_map = 1;
mp_opt->mpc_map = 1;
+ mp_opt->use_ack = 0;
mp_opt->data_len = get_unaligned_be16(ptr);
ptr += 2;
}