All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] NFS: Modernize decoding uint32 arrays
@ 2026-10-20 16:37 Anna Schumaker
  2026-10-20 16:37 ` [PATCH v2 1/3] NFS: Have decode_pnfs_layout_types() use XDR's decode_uint32_array() Anna Schumaker
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Anna Schumaker @ 2026-10-20 16:37 UTC (permalink / raw)
  To: linux-nfs, trond.myklebust; +Cc: anna

From: Anna Schumaker <anna.schumaker@hammerspace.com>

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(-)

-- 
2.56.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-20 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 16:37 [PATCH v2 0/3] NFS: Modernize decoding uint32 arrays Anna Schumaker
2026-10-20 16:37 ` [PATCH v2 1/3] NFS: Have decode_pnfs_layout_types() use XDR's decode_uint32_array() Anna Schumaker
2026-10-20 16:37 ` [PATCH v2 2/3] NFS: Modernize the callback decode_bitmap() function Anna Schumaker
2026-10-20 16:37 ` [PATCH v2 3/3] NFS: Modernize decode_getdevinfo() bitmap decoding Anna Schumaker
2026-10-20 16:50 ` [PATCH v2 0/3] NFS: Modernize decoding uint32 arrays Benjamin Coddington

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.