]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
NFSv4.2: fix copy stateid copying for the async copy
authorOlga Kornievskaia <kolga@netapp.com>
Tue, 30 Mar 2021 19:03:59 +0000 (15:03 -0400)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Mon, 24 May 2021 23:46:22 +0000 (17:46 -0600)
commit2df19c44482245577e809e8c4a4a1705cd92acea
treecd91cf8a689a7cce492665ef62b6d5bb6770bead
parent5bae7f86eab3186ab3e68856e8b8d3bfa6f5fc34
NFSv4.2: fix copy stateid copying for the async copy

BugLink: https://bugs.launchpad.net/bugs/1929455
[ Upstream commit e739b12042b6b079a397a3c234f96c09d1de0b40 ]

This patch fixes Dan Carpenter's report that the static checker
found a problem where memcpy() was copying into too small of a buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: e0639dc5805a ("NFSD introduce async copy feature")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/nfsd/nfs4proc.c