Skip to content

NFS: Modernize decoding uint32 arrays

Anna Schumaker linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. 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 filesSizeRepliesApplied
1/3NFS: Have decode_pnfs_layout_types() use XDR's decode_uint32_array()fs/nfs/nfs4xdr.c+9 -240 replies
2/3NFS: Modernize the callback decode_bitmap() functionfs/nfs/callback_xdr.c+9 -170 replies
3/3NFS: Modernize decode_getdevinfo() bitmap decodingfs/nfs/nfs4xdr.c+2 -200 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.

PatchBenjamin Coddington
SeriesR-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.

Read the v2 thread

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