diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2017-08-03 21:30:03 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-08-08 17:52:00 +0300 |
commit | 96f8778f70d0f5b988146d757a26dcd5d5b44116 (patch) | |
tree | 77c2d789cacf667f54cd966b7727bb13cf1e7272 /net/6lowpan/nhc_ghc_icmpv6.c | |
parent | d31ae2548142b7cd12404929ef3a13ae27c9d961 (diff) | |
download | linux-96f8778f70d0f5b988146d757a26dcd5d5b44116.tar.xz |
xprtrdma: Add xdr_init_decode to rpcrdma_reply_handler()
Transport header decoding deals with untrusted input data, therefore
decoding this header needs to be hardened.
Adopt the same infrastructure that is used when XDR decoding NFS
replies. This is slightly more CPU-intensive than the replaced code,
but we're not adding new atomics, locking, or context switches. The
cost is manageable.
Start by initializing an xdr_stream in rpcrdma_reply_handler().
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/6lowpan/nhc_ghc_icmpv6.c')
0 files changed, 0 insertions, 0 deletions