diff options
| author | Chuck Lever <[email protected]> | 2019-11-15 13:39:07 +0000 |
|---|---|---|
| committer | Trond Myklebust <[email protected]> | 2019-11-18 10:05:42 +0000 |
| commit | e8d70b321ecc9b23d09b8df63e38a2f73160c209 (patch) | |
| tree | 3c27ab2d610dc791614d7eb7e9aea7d354678bb6 /net/unix/af_unix.c | |
| parent | NFS4: Trace lock reclaims (diff) | |
| download | kernel-e8d70b321ecc9b23d09b8df63e38a2f73160c209.tar.gz kernel-e8d70b321ecc9b23d09b8df63e38a2f73160c209.zip | |
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 <[email protected]>
Reviewed-by: Benjamin Coddington <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
