Skip to content

nfsrahead: fix uninitialised memory crash and refine fast-path logging

Aaron Tomlin linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nfsrahead: zero-initialise device_info structtools/nfsrahead/main.c+1 -10 replies
2/2nfsrahead: quieten misleading error for non-NFS block devicestools/nfsrahead/main.c+5 -10 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchYi Zhang
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] nfsrahead: fix uninitialised memory crash and refine fast-path logging

Hi Steve, Yi,

This series addresses two issues stemming from the recent fast-path optimisation used to reject non-NFS block devices, which were caught during blktests.

1. [PATCH 1/2] fixes the glibc abort(3) by explicitly zero-initialising the device_info struct. This prevents the cleanup path from attempting to free uninitialised stack memory when the fast-path triggers an early exit.

2. [PATCH 2/2] updates the error handling in main() to log a descriptive debug message rather than a general error when a device is intentionally skipped, preventing misleading udev journal spam.

Aaron Tomlin (2):
nfsrahead: zero-initialise device_info struct
nfsrahead: quieten misleading error for non-NFS block devices

 tools/nfsrahead/main.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Signature · 1 line
2.51.0