]> 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)
commitba672edea91986ed3f238f4c80b654ffb567afb3
tree4239cc768e171859ed411c94f8b8da9dba6357c1
parent8302817720239bdf649b9a2756a9774b6461e478
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