aboutsummaryrefslogtreecommitdiff
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorGravatar Arnd Bergmann <arnd@arndb.de> 2019-11-03 22:32:20 +0100
committerGravatar J. Bruce Fields <bfields@redhat.com> 2019-12-19 17:46:08 -0500
commit2561c92b12f4f4e386d453556685f75775c0938b (patch)
tree1693142e2fddadde659eec8aef5e11ceb02b7bb3 /fs/nfsd/state.h
parentnfsd: use time64_t in nfsd_proc_setattr() check (diff)
downloadlinux-2561c92b12f4f4e386d453556685f75775c0938b.tar.gz
linux-2561c92b12f4f4e386d453556685f75775c0938b.tar.bz2
linux-2561c92b12f4f4e386d453556685f75775c0938b.zip
nfsd: fix delay timer on 32-bit architectures
The nfsd4_cb_layout_done() function takes a 'time_t' value, multiplied by NSEC_PER_SEC*2 to get a nanosecond value. This works fine on 64-bit architectures, but on 32-bit, any value over 1 second results in a signed integer overflow with unexpected results. Cast one input to a 64-bit type in order to produce the same result that we have on 64-bit architectures, regarless of the type of nfsd4_lease. Fixes: 6b9b21073d3b ("nfsd: give up on CB_LAYOUTRECALLs after two lease periods") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
0 files changed, 0 insertions, 0 deletions