diff options
author | J. Bruce Fields <bfields@redhat.com> | 2020-09-05 17:03:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-23 13:59:51 +0300 |
commit | e0b6509ae4a697278a751df5afca4f8a02795679 (patch) | |
tree | 1886a8b2cb73c4d7db77e23630a1d1d8e1f97496 /drivers/rapidio | |
parent | 7e4b9125c899c9ce555872ff2a6af065f0b2ae26 (diff) | |
download | linux-e0b6509ae4a697278a751df5afca4f8a02795679.tar.xz |
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>
Diffstat (limited to 'drivers/rapidio')
0 files changed, 0 insertions, 0 deletions