]> 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)
commit035878433e2cb1f6b7711a308f0727c73e68de5c
tree5626a745bccf8190c65f120a6a42f330082da23b
parentba672edea91986ed3f238f4c80b654ffb567afb3
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