]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4eefc50b90671a4cf55733ea34b9014605010481
tree5626a745bccf8190c65f120a6a42f330082da23b
parentab97cc9273ad1817878db4b4c2e8a53070bc5a93
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