NFSD: change LISTXATTRS cookie encoding to big-endian
authorJorge Mora <jmora1300@gmail.com>
Thu, 25 Jan 2024 14:46:12 +0000 (07:46 -0700)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:06 +0000 (09:12 -0500)
commit61ab5e07587554d0edec318b6c99b7083967b2ec
treeef3326e90ed3c58264850c0567c63d66d841cac8
parent52a357db8074e18aa51085a8c8d8af7057dffa11
NFSD: change LISTXATTRS cookie encoding to big-endian

Function nfsd4_listxattr_validate_cookie() expects the cookie
as an offset to the list thus it needs to be encoded in big-endian.

Fixes: 23e50fe3a5e6 ("nfsd: implement the xattr functions and en/decode logic")
Signed-off-by: Jorge Mora <mora@netapp.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c