]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSD: copy the whole verifier in nfsd_copy_write_verifier
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Feb 2023 15:07:59 +0000 (10:07 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 14 Mar 2023 15:46:48 +0000 (16:46 +0100)
commit6aefa32156cf8e5a0bb787f95e4ea04c60cb01e9
tree42a5018cd9aefcbd1c3be45754948193d09ec6ae
parent65d3a2b86681640058ee40fc355083bcce4e2207
NFSD: copy the whole verifier in nfsd_copy_write_verifier

BugLink: https://bugs.launchpad.net/bugs/2011425
[ Upstream commit 90d2175572470ba7f55da8447c72ddd4942923c4 ]

Currently, we're only memcpy'ing the first __be32. Ensure we copy into
both words.

Fixes: 91d2e9b56cf5 ("NFSD: Clean up the nfsd_net::nfssvc_boot field")
Reported-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/nfsd/nfssvc.c