aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChuck Lever2019-11-15 08:39:07 -0500
committerTrond Myklebust2019-11-18 11:05:42 +0100
commite8d70b321ecc9b23d09b8df63e38a2f73160c209 (patch)
tree3c27ab2d610dc791614d7eb7e9aea7d354678bb6 /include
parent21f86d2d63f9b0c10a3bd369ce8c97f1f786be53 (diff)
SUNRPC: Fix another issue with MIC buffer space
xdr_shrink_pagelen() BUG's when @len is larger than buf->page_len. This can happen when xdr_buf_read_mic() is given an xdr_buf with a small page array (like, only a few bytes). Instead, just cap the number of bytes that xdr_shrink_pagelen() will move. Fixes: 5f1bc39979d ("SUNRPC: Fix buffer handling of GSS MIC ... ") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Reviewed-by: Benjamin Coddington <bcodding@redhat.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions