OSDN Git Service

NFSv4: Fix potential Oops in decode_op_map()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 4 Nov 2021 21:33:36 +0000 (17:33 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Nov 2021 18:54:30 +0000 (14:54 -0400)
commitf114759c322edb4f293941a62748e31858852cd1
tree5626a745bccf8190c65f120a6a42f330082da23b
parent6659db4c59842343da46b97017574130f95143a9
NFSv4: Fix potential Oops in decode_op_map()

The return value of xdr_inline_decode() is not being checked, leading to
a potential Oops. Just replace the open coded array decode with the
generic XDR version.

Reported-by: <rtm@csail.mit.edu>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4xdr.c