aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorAvi Kivity <[email protected]>2014-06-26 14:23:12 +0000
committerJ. Bruce Fields <[email protected]>2014-07-02 21:37:13 +0000
commit69bbd9c7b99974f3a701d4de6ef7010c37182a47 (patch)
treeb1a964247f6e28d25d44605ed811daa681ac0a10 /lib/mpi/mpi-cmp.c
parentnfsd: fix rare symlink decoding bug (diff)
downloadkernel-69bbd9c7b99974f3a701d4de6ef7010c37182a47.tar.gz
kernel-69bbd9c7b99974f3a701d4de6ef7010c37182a47.zip
nfs: fix nfs4d readlink truncated packet
XDR requires 4-byte alignment; nfs4d READLINK reply writes out the padding, but truncates the packet to the padding-less size. Fix by taking the padding into consideration when truncating the packet. Symptoms: # ll /mnt/ ls: cannot read symbolic link /mnt/test: Input/output error total 4 -rw-r--r--. 1 root root 0 Jun 14 01:21 123456 lrwxrwxrwx. 1 root root 6 Jul 2 03:33 test drwxr-xr-x. 1 root root 0 Jul 2 23:50 tmp drwxr-xr-x. 1 root root 60 Jul 2 23:44 tree Signed-off-by: Avi Kivity <[email protected]> Fixes: 476a7b1f4b2c (nfsd4: don't treat readlink like a zero-copy operation) Reviewed-by: Kinglong Mee <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions