Re: [PATCH] ipv6: prevent a possible race condition with lifetimes

From: David Ahern
Date: Mon Feb 21 2022 - 22:02:50 EST


On 2/20/22 10:54 AM, Niels Dossche wrote:
> valid_lft, prefered_lft and tstamp are always accessed under the lock
> "lock" in other places. Reading these without taking the lock may result
> in inconsistencies regarding the calculation of the valid and preferred
> variables since decisions are taken on these fields for those variables.
>
> Signed-off-by: Niels Dossche <niels.dossche@xxxxxxxx>
> ---
> net/ipv6/addrconf.c | 2 ++
> 1 file changed, 2 insertions(+)
>

Reviewed-by: David Ahern <dsahern@xxxxxxxxxx>