Skip to content

Commit d034411

Browse files
matttbeintel-lab-lkp
authored andcommitted
mptcp: fix KMSAN: uninit-value in mptcp_established_options
Just to let syzbot testing it. See Paolo's suggestion from [1]. Link: https://lore.kernel.org/6d342ef2-d480-4be6-afad-a3841cf205a8@redhat.com [1] Fixes: cfcceb7 ("tcp: shrink per-packet memset in __tcp_transmit_skb()") Reported-by: syzbot+ff020673c5e3d94d9478@syzkaller.appspotmail.com Closes: https://lore.kernel.org/69f44505.050a0220.3cbe47.0008.GAE@google.com Suggested-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
1 parent bf92df3 commit d034411

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/mptcp/options.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,8 @@ static bool mptcp_established_options_dss(struct sock *sk, struct sk_buff *skb,
583583
map_size += TCPOLEN_MPTCP_DSS_CHECKSUM;
584584

585585
opts->ext_copy = *mpext;
586+
} else {
587+
opts->ext_copy.use_map = 0;
586588
}
587589

588590
dss_size = map_size;

0 commit comments

Comments
 (0)