Files
twx-linux/net/ipv6
Alexander Potapenko d80caeb9b8 ipv6: make sure to initialize sockc.tsflags before first use
[ Upstream commit d515684d78 ]

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.

Fixes: c14ac9451c ("sock: enable timestamping using control messages")
Signed-off-by: Alexander Potapenko <glider@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-30 09:41:22 +02:00
..
2016-11-28 16:13:01 -05:00
2017-03-22 12:43:31 +01:00
2017-01-15 13:42:53 +01:00
2017-02-04 09:47:10 +01:00
2017-02-18 15:11:43 +01:00
2017-03-22 12:43:34 +01:00