]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: Decode and send 64bit time values
authorBryan Schumaker <bjschuma@netapp.com>
Fri, 19 Apr 2013 20:09:38 +0000 (16:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:08:23 +0000 (20:08 -0700)
commita63d0364cc416e40a3a4f8d67d73354c91152a7d
treed2bd54924eea04d33b6d6d58e1925e1db14cafd3
parentf1b384b6f67be458dabb31ed1e5938e1b125f5f5
nfsd: Decode and send 64bit time values

commit bf8d909705e9d9bac31d9b8eac6734d2b51332a7 upstream.

The seconds field of an nfstime4 structure is 64bit, but we are assuming
that the first 32bits are zero-filled.  So if the client tries to set
atime to a value before the epoch (touch -t 196001010101), then the
server will save the wrong value on disk.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4xdr.c