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)
commit6659db4c59842343da46b97017574130f95143a9
tree4239cc768e171859ed411c94f8b8da9dba6357c1
parent4798f8058d6b6bcfaedf5560fc28a83f404cbb57
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