Re: [PATCH] ipv6: make sure to initialize sockc.tsflags before first use

From: David Miller
Date: Wed Mar 22 2017 - 15:42:20 EST


From: Alexander Potapenko <glider@xxxxxxxxxx>
Date: Tue, 21 Mar 2017 17:14:27 +0100

> In the case udp_sk(sk)->pending is AF_INET6, udpv6_sendmsg() would
> jump to do_append_data, skipping the initialization of sockc.tsflags.
> Fix the problem by moving sockc.tsflags initialization earlier.
>
> The bug was detected with KMSAN.
>
> Signed-off-by: Alexander Potapenko <glider@xxxxxxxxxx>

Applied and queued up for -stable, thank you.