commit | 61279a7b3e337b8c8605987591964db4a2b3eb91 | [log] [tgz] |
---|---|---|
author | J. Bruce Fields <bfields@redhat.com> | Sat Sep 05 10:03:26 2020 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Sep 23 12:10:58 2020 +0200 |
tree | a4460feb743551561f65010751084cc88af37e83 | |
parent | a6a2cf4d918f3c62b652a87d4e9b667049de4cb1 [diff] |
SUNRPC: stop printk reading past end of string [ Upstream commit 8c6b6c793ed32b8f9770ebcdf1ba99af423c303b ] Since p points at raw xdr data, there's no guarantee that it's NULL terminated, so we should give a length. And probably escape any special characters too. Reported-by: Zhi Li <yieli@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>