]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: stop printk reading past end of string
authorJ. Bruce Fields <bfields@redhat.com>
Sat, 5 Sep 2020 14:03:26 +0000 (10:03 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 5 Sep 2020 14:39:41 +0000 (10:39 -0400)
commitfa2a44dceccb2439cc2793c7dfdc12359495b9a4
treee9307298f27c8cc19208dd79641dbeb590fdc002
parent86fc6486c4f5c7b698eb77a4fa298a138e79471e
SUNRPC: stop printk reading past end of string

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>
net/sunrpc/rpcb_clnt.c