commit | 7b08cf62b1239a4322427d677ea9363f0ab677c6 | [log] [tgz] |
---|---|---|
author | Chuck Lever <chuck.lever@oracle.com> | Fri Jun 25 11:12:49 2021 -0400 |
committer | J. Bruce Fields <bfields@redhat.com> | Tue Jul 06 20:14:44 2021 -0400 |
tree | 54c15f34b4c5f4dcf454630185e2f8556b0ddddd | |
parent | e34c0ce9136a0fe96f0f547898d14c44f3c9f147 [diff] |
NFSD: Prevent a possible oops in the nfs_dirent() tracepoint 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: 6019ce0742ca ("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>