Jiri Bohac
7aa8e63f0d
ipv6: properly prevent temp_prefered_lft sysctl race
...
The check for an underflow of tmp_prefered_lft is always false
because tmp_prefered_lft is unsigned. The intention of the check
was to guard against racing with an update of the
temp_prefered_lft sysctl, potentially resulting in an underflow.
As suggested by David Miller, the best way to prevent the race is
by reading the sysctl variable using READ_ONCE.
Signed-off-by: Jiri Bohac <jbohac@suse.cz >
Reported-by: Julia Lawall <julia.lawall@lip6.fr >
Fixes: 76506a986d
("IPv6: fix DESYNC_FACTOR")
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-10-20 14:29:11 -04:00
..
2016-09-19 20:19:34 +02:00
2016-09-23 13:47:44 -04:00
2016-08-13 15:15:54 -07:00
2016-09-10 21:19:10 -07:00
2016-09-10 21:19:10 -07:00
2016-06-18 20:55:34 -07:00
2016-10-11 15:06:33 -07:00
2016-10-06 11:52:29 +02:00
2016-10-18 13:52:13 -04:00
2016-06-28 05:26:14 -04:00
2016-06-23 11:23:49 +02:00
2016-10-05 23:02:10 +02:00
2016-10-19 10:38:08 -04:00
2016-07-29 17:38:46 -07:00
2016-07-05 14:08:47 -07:00
2016-04-11 22:37:37 +01:00
2016-09-23 08:38:50 -04:00
2016-02-24 13:58:05 -05:00
2016-10-18 10:28:18 -04:00
2016-07-08 13:23:12 +02:00
2016-10-19 11:12:41 -04:00
2016-10-20 14:29:11 -04:00
2016-09-23 06:46:57 -04:00
2016-07-29 17:38:46 -07:00
2016-10-07 15:36:58 -07:00
2016-09-17 10:07:23 -04:00
2016-09-10 23:12:53 -07:00
2016-05-29 22:33:25 -07:00
2016-09-17 10:05:05 -04:00
2016-10-17 16:14:04 +02:00
2016-09-19 20:19:34 +02:00
2016-10-03 02:00:21 -04:00
2016-10-20 11:23:08 -04:00
2016-10-11 04:44:37 -04:00
2016-06-27 15:06:18 -04:00
2016-10-06 20:53:13 -04:00
2016-07-11 02:02:03 +02:00
2016-10-13 10:03:23 -04:00
2016-10-06 20:50:18 -04:00
2016-05-17 14:11:19 -04:00
2016-09-23 13:47:44 -04:00
2016-04-05 10:48:53 +02:00
2016-07-13 11:53:40 -07:00
2016-10-13 08:43:17 +01:00
2016-10-20 11:14:24 -04:00
2016-10-02 22:20:41 -04:00
2016-10-12 01:51:49 -04:00
2016-10-13 21:28:20 -07:00
2016-10-19 10:58:04 -04:00
2016-10-13 12:10:01 -04:00
2016-10-03 20:40:56 -04:00
2016-09-27 07:59:25 -04:00
2016-10-12 09:19:10 +02:00
2016-09-09 18:13:30 -07:00
2016-09-30 01:50:45 -04:00
2016-06-09 23:41:03 -07:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00
2016-10-07 21:48:36 -04:00
2016-10-06 09:52:23 -07:00