summaryrefslogtreecommitdiffstats
path: root/fs/afs/fsclient.c
diff options
context:
space:
mode:
authorMarc Dionne <marc.dionne@auristor.com>2017-03-16 16:27:44 +0000
committerDavid Howells <dhowells@redhat.com>2017-03-16 16:27:44 +0000
commitbcd89270d93b7edebb5de5e5e7dca1a77a33496e (patch)
tree3e196dac7eed6313b0cd3111002434efc8ed0bb8 /fs/afs/fsclient.c
parent627f46943ff90bcc32ddeb675d881c043c6fa2ae (diff)
downloadop-kernel-dev-bcd89270d93b7edebb5de5e5e7dca1a77a33496e.zip
op-kernel-dev-bcd89270d93b7edebb5de5e5e7dca1a77a33496e.tar.gz
afs: Deal with an empty callback array
Servers may send a callback array that is the same size as the FID array, or an empty array. If the callback count is 0, the code would attempt to read (fid_count * 12) bytes of data, which would fail and result in an unmarshalling error. This would lead to stale data for remotely modified files or directories. Store the callback array size in the internal afs_call structure and use that to determine the amount of data to read. Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Diffstat (limited to 'fs/afs/fsclient.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud