]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.2: define limits and sizes for user xattr handling
authorFrank van der Linden <fllinden@amazon.com>
Tue, 23 Jun 2020 22:38:54 +0000 (22:38 +0000)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 13 Jul 2020 21:52:45 +0000 (17:52 -0400)
commitfc34bb57f17be5c774fe4afd5ad7818a4ab29fe8
tree1e8ea46f099f62219e1b1a760c9bc4f27ef28bb2
parent3c2b0b9b61020f51a8502e2fe538c3f17ccf844e
NFSv4.2: define limits and sizes for user xattr handling

Set limits for extended attributes (attribute value size and listxattr
buffer size), based on the fs-independent limits (XATTR_*_MAX).

Define the maximum XDR sizes for the RFC 8276 XATTR operations.
In the case of operations that carry a larger payload (SETXATTR,
GETXATTR, LISTXATTR), these exclude that payload, which is added
as separate pages, like other operations do.

Define, much like for read and write operations, the maximum overhead
sizes for get/set/listxattr, and use them to limit the maximum payload
size for those operations, in combination with the channel attributes.

Signed-off-by: Frank van der Linden <fllinden@amazon.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/client.c
fs/nfs/nfs42.h
fs/nfs/nfs42xdr.c
fs/nfs/nfs4_fs.h
fs/nfs/nfs4client.c
include/linux/nfs_fs_sb.h