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