]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: fix getacl ERANGE for some ACL buffer sizes
authorWeston Andros Adamson <dros@primarydata.com>
Thu, 23 Feb 2017 19:54:21 +0000 (14:54 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 23 Feb 2017 22:23:35 +0000 (17:23 -0500)
commit2fd3ec7f70e75ddc07a15b54c01c18316ca3aac6
tree924e5d4092eda8992f4328d06c2478d382310974
parentdded492e9cd8322c819dee2e9ec9cb5341e48a90
NFSv4: fix getacl ERANGE for some ACL buffer sizes

We're not taking into account that the space needed for the (variable
length) attr bitmap, with the result that we'd sometimes get a spurious
ERANGE when the ACL data got close to the end of a page.

Just add in an extra page to make sure.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c