]> git.baikalelectronics.ru Git - kernel.git/commit
afs: Prevent callback expiry timer overflow
authorTina Ruchandani <ruchandani.tina@gmail.com>
Thu, 16 Mar 2017 16:27:46 +0000 (16:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 16 Mar 2017 16:27:46 +0000 (16:27 +0000)
commitb5308f8cb9198a7fcee5e0b34ebc31e7467b49b1
treeb4025669d48f4514efbc96e65f0ac967c04c98fb
parent814ea822c920dff27f67d8d5c902e6393c6e115f
afs: Prevent callback expiry timer overflow

get_seconds() returns real wall-clock seconds. On 32-bit systems
this value will overflow in year 2038 and beyond. This patch changes
afs_vnode record to use ktime_get_real_seconds() instead, for the
fields cb_expires and cb_expires_at.

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/fsclient.c
fs/afs/inode.c
fs/afs/internal.h