Re: [PATCH] afs: correctly use 64-bit time for UUID

From: David Howells
Date: Wed Jan 11 2017 - 08:51:37 EST


Arnd Bergmann <arnd@xxxxxxxx> wrote:

> From: Tina Ruchandani <ruchandani.tina@xxxxxxxxx>
>
> UUID calculation uses 'struct timespec' whose seconds will overflow
> in year 2038 and beyond for 32-bit systems. This patch removes the
> dependency on 'struct timespec' by using ktime_get_real().
> While the patch does not fix a 'bug' as such, it is part of a larger
> effort to remove instances of 'struct timespec' and other data-structures
> suffering from y2038 problem from the kernel.

Is it worth abstracting out in-kernel UUID generation?

David