nfsrahead: fix uninitialised memory crash and refine fast-path logging
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | nfsrahead: zero-initialise device_info structtools/ | +1 | 0 replies | |
| 2/2 | nfsrahead: quieten misleading error for non-NFS block devicestools/ | +5 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Yi Zhang |
|---|---|
| Series | T-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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