Alex Henrie
f31867d0d9
net: ipv6/addrconf: avoid integer underflow in ipv6_create_tempaddr
...
The existing code incorrectly casted a negative value (the result of a
subtraction) to an unsigned value without checking. For example, if
/proc/sys/net/ipv6/conf/*/temp_prefered_lft was set to 1, the preferred
lifetime would jump to 4 billion seconds. On my machine and network the
shortest lifetime that avoided underflow was 3 seconds.
Fixes: 76506a986dc3 ("IPv6: fix DESYNC_FACTOR")
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-09-04 07:07:30 +01:00
..
2023-03-29 08:22:52 +01:00
2023-08-09 15:32:43 -07:00
2022-12-25 13:38:09 -08:00
2023-08-18 12:44:56 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-06-24 15:50:13 -07:00
2023-08-24 10:51:39 -07:00
2023-08-24 12:23:46 -07:00
2023-08-30 08:36:17 +02:00
2023-05-31 13:06:57 +02:00
2023-08-22 15:13:20 +02:00
2023-06-24 15:50:13 -07:00
2023-09-01 07:27:33 +01:00
2023-08-02 09:07:34 +02:00
2023-09-04 06:49:31 +01:00
2023-08-01 21:07:46 -07:00
2023-08-29 07:44:56 +02:00
2023-08-28 08:02:24 -07:00
2022-11-01 10:04:52 -07:00
2023-08-09 13:08:09 -07:00
2022-12-07 20:02:44 -08:00
2023-08-15 15:01:03 -07:00
2023-09-01 07:25:14 +01:00
2023-07-31 20:11:47 -07:00
2023-08-15 15:00:45 -07:00
2023-09-01 08:11:51 +01:00
2023-09-04 07:07:30 +01:00
2023-03-16 17:34:40 -07:00
2023-06-24 15:50:13 -07:00
2023-08-18 12:44:56 -07:00
2023-08-16 11:09:16 +01:00
2023-08-09 15:34:28 -07:00
2023-08-25 18:35:09 -07:00
2023-06-24 15:41:46 -07:00
2023-06-24 15:50:13 -07:00
2023-06-10 00:11:41 -07:00
2023-09-01 07:27:33 +01:00
2023-08-15 14:54:44 -07:00
2023-08-31 01:29:28 +02:00
2023-08-02 12:28:22 -07:00
2023-08-15 15:01:03 -07:00
2023-08-28 06:58:46 +01:00
2023-08-15 15:00:45 -07:00
2023-06-10 00:11:41 -07:00
2023-08-18 12:44:56 -07:00
2023-08-10 14:10:53 -07:00
2023-06-24 15:50:13 -07:00
2023-07-17 09:02:30 +01:00
2023-08-13 12:25:42 +01:00
2023-04-06 20:36:27 +02:00
2023-06-24 15:50:13 -07:00
2023-06-28 16:43:10 -07:00
2023-08-31 11:21:52 +02:00
2023-08-31 11:56:59 +02:00
2023-08-21 07:41:57 +01:00
2023-08-29 11:33:01 -07:00
2023-07-21 08:54:03 +01:00
2023-08-15 15:00:45 -07:00
2023-08-27 17:17:42 -07:00
2023-08-09 15:32:43 -07:00
2023-07-31 14:41:08 -07:00
2023-08-22 21:40:40 +02:00
2023-06-24 15:50:13 -07:00
2023-08-31 13:21:11 +02:00
2023-08-18 12:44:56 -07:00
2023-04-14 11:09:27 +01:00
2023-07-19 10:07:27 -07:00
2023-04-19 18:48:48 -07:00
2023-09-01 07:27:33 +01:00