lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 26 Dec 2018 12:35:20 -0500 From: Chuck Lever <chuck.lever@...cle.com> To: Kangjie Lu <kjlu@....edu> Cc: pakki001@....edu, Bruce Fields <bfields@...ldses.org>, Jeff Layton <jlayton@...nel.org>, Trond Myklebust <trond.myklebust@...merspace.com>, Anna Schumaker <anna.schumaker@...app.com>, "David S. Miller" <davem@...emloft.net>, Linux NFS Mailing List <linux-nfs@...r.kernel.org>, netdev@...r.kernel.org, linux-kernel@...r.kernel.org Subject: Re: [PATCH] sunrpc: fix a missing check of xdr_inline_decode > On Dec 25, 2018, at 10:18 PM, Kangjie Lu <kjlu@....edu> wrote: > > xdr_inline_decode() could fail. NAK: xdr_inline_decode cannot fail if its second argument is zero. > When it fails, the return value is NULL > and should not be dereferenced. > The fix checks if xdr_inline_decode fails, and if so, returns. > > Signed-off-by: Kangjie Lu <kjlu@....edu> > --- > net/sunrpc/xprtrdma/backchannel.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/net/sunrpc/xprtrdma/backchannel.c b/net/sunrpc/xprtrdma/backchannel.c > index e5b367a3e517..bd9be5272ef4 100644 > --- a/net/sunrpc/xprtrdma/backchannel.c > +++ b/net/sunrpc/xprtrdma/backchannel.c > @@ -285,6 +285,8 @@ void rpcrdma_bc_receive_call(struct rpcrdma_xprt *r_xprt, > __be32 *p; > > p = xdr_inline_decode(&rep->rr_stream, 0); > + if (unlikely(!p)) > + goto out_overflow; > size = xdr_stream_remaining(&rep->rr_stream); > > #ifdef RPCRDMA_BACKCHANNEL_DEBUG > -- > 2.17.2 (Apple Git-113) > -- Chuck Lever
Powered by blists - more mailing lists