NFS: Modernize decoding uint32 arrays
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 1 replyIn review
- v13 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- Properly handle -EMSGSIZE in decode_bitmap()
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | NFS: Have decode_pnfs_layout_types() use XDR's decode_uint32_array()fs/ | +9 | 0 replies | |
| 2/3 | NFS: Modernize the callback decode_bitmap() functionfs/ | +9 | 0 replies | |
| 3/3 | NFS: Modernize decode_getdevinfo() bitmap decodingfs/ | +2 | 0 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Benjamin Coddington |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] NFS: Modernize decoding uint32 arrays
From: Anna Schumaker <[email protected]>
We've had several reports over the last few months people have tried to add bounds checking to the various places that need to decode a uint32 array. None of them update the callsites to use xdr_stream_decode_uint32_array(), which has all the proper bounds checking already implemented. These patches make that change.
Changed in v2:
- Properly handle -EMSGSIZE in decode_bitmap()
Thoughts?
Anna
Anna Schumaker (3):
NFS: Have decode_pnfs_layout_types() use XDR's decode_uint32_array()
NFS: Modernize the callback decode_bitmap() function
NFS: Modernize decode_getdevinfo() bitmap decoding
fs/nfs/callback_xdr.c | 26 +++++++------------- fs/nfs/nfs4xdr.c | 55 +++++++++---------------------------------- 2 files changed, 20 insertions(+), 61 deletions(-)
Signature · 1 line
2.56.0