mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
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:
parent
592a99d6e6
commit
ef671f497e
@ -5065,8 +5065,7 @@ DECL_PIOCTL(PFsCmd)
|
|||||||
if (tc) {
|
if (tc) {
|
||||||
RX_AFS_GUNLOCK();
|
RX_AFS_GUNLOCK();
|
||||||
code =
|
code =
|
||||||
RXAFS_FsCmd(rxconn, Fid, Inputs,
|
RXAFS_FsCmd(rxconn, Fid, Inputs, Outputs);
|
||||||
(struct FsCmdOutputs *)aout);
|
|
||||||
RX_AFS_GLOCK();
|
RX_AFS_GLOCK();
|
||||||
} else
|
} else
|
||||||
code = -1;
|
code = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user