afs: Use correct output buffer for FSCmd pioctl

MRAFS added the FsCmd pioctl for passing messages to the fileserver;
a bug causes it to write into the wrong memory and potentially panic
clients.

FIXES 131896 (CVE-2015-3285)

Change-Id: Ic3a81fe06edc886f24bbc0537ea53e994b086c9e
This commit is contained in:
Andrew Deason 2015-07-08 14:20:13 -04:00 committed by Daria Brashear
parent 592a99d6e6
commit ef671f497e

View File

@ -5065,8 +5065,7 @@ DECL_PIOCTL(PFsCmd)
if (tc) {
RX_AFS_GUNLOCK();
code =
RXAFS_FsCmd(rxconn, Fid, Inputs,
(struct FsCmdOutputs *)aout);
RXAFS_FsCmd(rxconn, Fid, Inputs, Outputs);
RX_AFS_GLOCK();
} else
code = -1;