summaryrefslogtreecommitdiffstats
path: root/net/dns_resolver
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2017-03-21 17:14:27 +0100
committerDavid S. Miller <davem@davemloft.net>2017-03-22 12:40:22 -0700
commitd515684d78148884d5fc425ba904c50f03844020 (patch)
tree9b48522dd41d5e36f4af6fe13de70f1d7a48931d /net/dns_resolver
parent1b33c0d2a1885b64dbd9e4c4513b8051c4d984c9 (diff)
downloadop-kernel-dev-d515684d78148884d5fc425ba904c50f03844020.zip
op-kernel-dev-d515684d78148884d5fc425ba904c50f03844020.tar.gz
ipv6: make sure to initialize sockc.tsflags before first use
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: c14ac9451c34 ("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>
Diffstat (limited to 'net/dns_resolver')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud