Re: [PATCH] ipv6: properly prevent temp_prefered_lft sysctl race

2016-10-20 Thread David Miller
From: Jiri Bohac Date: Thu, 20 Oct 2016 12:29:26 +0200 > 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 un

Re: [PATCH] ipv6: properly prevent temp_prefered_lft sysctl race

2016-10-20 Thread Jiri Bohac
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 t