https://github.com/torvalds/linux
Revision bcd89270d93b7edebb5de5e5e7dca1a77a33496e authored by Marc Dionne on 16 March 2017, 16:27:44 UTC, committed by David Howells on 16 March 2017, 16:27:44 UTC
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>
1 parent 627f469
Raw File
Tip revision: bcd89270d93b7edebb5de5e5e7dca1a77a33496e authored by Marc Dionne on 16 March 2017, 16:27:44 UTC
afs: Deal with an empty callback array
Tip revision: bcd8927
.get_maintainer.ignore
Christoph Hellwig <hch@lst.de>
back to top