]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: fix open_owner_id_maxsz and related fields.
authorNeilBrown <neilb@suse.de>
Wed, 4 Dec 2024 02:53:09 +0000 (13:53 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Apr 2025 12:39:24 +0000 (14:39 +0200)
commitca27c16539a30d67ac50b5c2ba093ea80aa1bc69
tree209b708501af8012eb558072d3d223d1ec1dd732
parent46117472a279c2da7729ce75abc202ca6d72aff6
NFS: fix open_owner_id_maxsz and related fields.

[ Upstream commit 43502f6e8d1e767d6736ea0676cc784025cf6eeb ]

A recent change increased the size of an NFSv4 open owner, but didn't
increase the corresponding max_sz defines.  This is not know to have
caused failure, but should be fixed.

This patch also fixes some relates _maxsz fields that are wrong.

Note that the XXX_owner_id_maxsz values now are only the size of the id
and do NOT include the len field that will always preceed the id in xdr
encoding.  I think this is clearer.

Reported-by: David Disseldorp <ddiss@suse.com>
Fixes: d98f72272500 ("nfs: simplify and guarantee owner uniqueness.")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/nfs4xdr.c