]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Ensure decode_compound_hdr() sanity checks the tag
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 4 Nov 2021 21:18:01 +0000 (17:18 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 5 Nov 2021 18:54:30 +0000 (14:54 -0400)
commitab97cc9273ad1817878db4b4c2e8a53070bc5a93
tree4239cc768e171859ed411c94f8b8da9dba6357c1
parent2436a054f837eb7ba0ee4386d64c1d4b1cad752a
NFSv4: Ensure decode_compound_hdr() sanity checks the tag

The server is supposed to return the same tag that the client sends in
the outgoing RPC call, but we should still sanity check the length just
in case.

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