Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFSD: Prevent a possible oops in the nfs_dirent() tracepoint
[ Upstream commit 7b08cf6 ] The double copy of the string is a mistake, plus __assign_str() uses strlen(), which is wrong to do on a string that isn't guaranteed to be NUL-terminated. Fixes: 6019ce0 ("NFSD: Add a tracepoint to record directory entry encoding") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information