Alexander Potapenko
d515684d78
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>
2017-03-22 12:40:22 -07:00
..
2017-01-22 16:46:13 -05:00
2017-03-03 21:44:35 -08:00
2016-12-24 11:46:01 -08:00
2017-02-06 11:25:57 -05:00
2017-02-27 18:43:47 -08:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-16 12:05:38 -07:00
2017-03-09 18:23:27 -08:00
2017-03-16 21:29:20 -07:00
2017-03-02 08:42:29 +01:00
2017-01-30 11:05:04 +01:00
2017-03-07 14:30:38 +01:00
2017-03-22 10:32:46 -07:00
2016-12-03 23:54:25 -05:00
2017-03-13 22:00:42 -07:00
2017-03-09 18:23:27 -08:00
2017-03-03 10:16:38 -08:00
2017-02-11 02:31:11 -05:00
2017-02-16 21:25:49 -05:00
2017-02-21 13:25:22 -05:00
2017-02-27 18:43:47 -08:00
2017-02-03 15:16:45 -05:00
2017-03-16 21:37:13 -07:00
2017-03-22 12:40:22 -07:00
2016-12-25 17:21:22 +01:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-02 08:42:32 +01:00
2016-11-18 10:59:15 -05:00
2017-02-28 10:00:39 -08:00
2016-12-24 11:46:01 -08:00
2017-03-09 18:23:27 -08:00
2017-03-04 17:31:39 -08:00
2017-03-02 08:42:38 +01:00
2017-03-16 20:22:18 -07:00
2017-03-15 17:15:54 +01:00
2017-01-06 22:20:45 -05:00
2017-03-21 14:38:15 -07:00
2017-03-09 18:23:27 -08:00
2017-03-09 18:23:27 -08:00
2017-03-16 11:59:46 -07:00
2017-03-01 20:55:57 -08:00
2017-03-09 18:23:27 -08:00
2017-01-24 13:44:28 -05:00
2017-01-10 20:45:04 -05:00
2017-03-09 18:23:27 -08:00
2017-01-24 11:07:35 +01:00
2017-03-09 18:23:27 -08:00
2017-03-16 21:27:57 -07:00
2017-03-21 17:21:27 -07:00
2017-03-22 10:57:52 -07:00
2017-03-09 18:23:27 -08:00
2017-03-03 20:43:26 -08:00
2017-03-02 08:42:31 +01:00
2017-03-22 11:59:16 -07:00
2017-03-21 15:25:10 -07:00
2017-03-21 14:41:47 -07:00
2017-03-16 10:30:03 +01:00
2017-03-09 18:23:27 -08:00
2017-03-07 15:00:37 -08:00
2017-02-22 10:15:09 -08:00
2017-02-17 13:40:05 -05:00
2017-02-03 15:16:45 -05:00
2017-03-21 18:44:17 -07:00