diff options
author | Alexander Potapenko <glider@google.com> | 2017-03-21 16:14:27 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-30 07:41:22 (GMT) |
commit | d80caeb9b86d2c8116776953ae3e3c0ddda364f1 (patch) | |
tree | a779f52835e7fdccc445a8e6c091e36091de9d05 /samples/configfs/configfs_sample.c | |
parent | c87ef8734d25509a9e0b6057aec3a6db8b8631ba (diff) | |
download | linux-d80caeb9b86d2c8116776953ae3e3c0ddda364f1.tar.xz |
ipv6: make sure to initialize sockc.tsflags before first use
[ Upstream commit d515684d78148884d5fc425ba904c50f03844020 ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/configfs/configfs_sample.c')
0 files changed, 0 insertions, 0 deletions