mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
nfsd4: buffer-length check for SUPPATTR_EXCLCREAT
This was an omission from 8c18f2052e
"nfsd41: SUPPATTR_EXCLCREAT attribute".
Cc: Benny Halevy <bhalevy@primarydata.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
1406b916f4
commit
de3997a7ee
@ -2483,6 +2483,8 @@ out_acl:
|
||||
goto out;
|
||||
}
|
||||
if (bmval2 & FATTR4_WORD2_SUPPATTR_EXCLCREAT) {
|
||||
if ((buflen -= 16) < 0)
|
||||
goto out_resource;
|
||||
WRITE32(3);
|
||||
WRITE32(NFSD_SUPPATTR_EXCLCREAT_WORD0);
|
||||
WRITE32(NFSD_SUPPATTR_EXCLCREAT_WORD1);
|
||||
|
Loading…
Reference in New Issue
Block a user