nfsd: checksum first 256 bytes of request to guard against XID collisions in the DRC
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest2 patches 17 repliesIn review
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | sunrpc: trim off trailing checksum before returning decrypted or integrity authenticated bufferinclude/ net/ net/ +1 more | +53 | 0 replies | |
| 2/2 | nfsd: keep a checksum of the first 256 bytes of requestfs/ fs/ | +54 | 16 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Chuck Lever |
|---|---|
| 1/2 | |
| 2/2 | Stones-thrown-by |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/2] nfsd: checksum first 256 bytes of request to guard against XID collisions in the DRC
This patchset is a respin of the ones that Bruce has not yet committed of my DRC overhaul. The main difference is the first patch, which adds a routine to strip the trailing checksum off of decrypted or integrity-verified buffer.
I've tested both the client and server with different krb5 flavors (and using both the v1 and v2 codepaths) and it seems to work fine with those checksum blobs stripped off.
I think we should consider this for 3.9 since XID collisions are a lot more likely now with the new DRC code in place.
Jeff Layton (2):
sunrpc: trim off trailing checksum before returning decrypted or
integrity authenticated buffer
nfsd: keep a checksum of the first 256 bytes of request
fs/nfsd/cache.h | 5 ++++ fs/nfsd/nfscache.c | 53 ++++++++++++++++++++++++++++++++++--- include/linux/sunrpc/xdr.h | 1 + net/sunrpc/auth_gss/gss_krb5_wrap.c | 2 ++ net/sunrpc/auth_gss/svcauth_gss.c | 10 +++++-- net/sunrpc/xdr.c | 42 +++++++++++++++++++++++++++++ 6 files changed, 107 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.11.7