]> git.ipfire.org Git - thirdparty/linux.git/commit
NFSD: Fix nfsd4_encode_fattr4() crasher
authorChuck Lever <chuck.lever@oracle.com>
Thu, 25 Apr 2024 21:46:26 +0000 (17:46 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 25 Apr 2024 22:06:41 +0000 (18:06 -0400)
commit18180a4550d08be4eb0387fe83f02f703f92d4e7
treecc50c51a0c43c91232495236d5c98727a6d66a45
parent8ddb7142c8ab37371c6fd167a8aded97922c6268
NFSD: Fix nfsd4_encode_fattr4() crasher

Ensure that args.acl is initialized early. It is used in an
unconditional call to kfree() on the way out of
nfsd4_encode_fattr4().

Reported-by: Scott Mayhew <smayhew@redhat.com>
Fixes: 83ab8678ad0c ("NFSD: Add struct nfsd4_fattr_args")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4xdr.c