Skip to content

s390/dasd: Fix BIODASDCHECKFMT issues and RCD retry handling

Stefan Haberland linux-s390 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3s390/dasd: Re-initialize RCD buffer with "V1.0" before every startdrivers/s390/block/dasd.c drivers/s390/block/dasd_eckd.c drivers/s390/block/dasd_int.h+34 -340 replies
2/3s390/dasd: Fix wrong free and refcount leak in build_check_tcw error pathdrivers/s390/block/dasd_eckd.c+2 -10 replies
3/3s390/dasd: Don't trust userspace-supplied result field in format checkdrivers/s390/block/dasd_ioctl.c+3 -10 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJan Höppner
1/3R-b
2/3R-b
3/3R-b

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/3] s390/dasd: Fix BIODASDCHECKFMT issues and RCD retry handling

The BIODASDCHECKFMT ioctl gained several fixes as a result of issues reported by Sashiko. Two patches address bugs introduced with the original ioctl implementation: one prevents userspace from influencing internal evaluation state through output-only fields, avoiding a kernel heap information leak, and another fixes an error path that could crash the kernel and leak request references.

The third patch fixes a longstanding z/VM-specific issue in RCD processing. The Read Configuration Data request requires a special buffer initialization before every start, but several restart paths bypassed the existing reinitialization logic. As a result, successful retries could return incomplete configuration data and lead to false "Not all channel paths lead to the same device" reports for otherwise identical minidisks.

Stefan Haberland (3):
s390/dasd: Re-initialize RCD buffer with "V1.0" before every start s390/dasd: Fix wrong free and refcount leak in build_check_tcw error
path
s390/dasd: Don't trust userspace-supplied result field in format check

 drivers/s390/block/dasd.c       |  1 +
 drivers/s390/block/dasd_eckd.c  | 55 ++++++++++++---------------------
 drivers/s390/block/dasd_int.h   | 15 +++++++++
 drivers/s390/block/dasd_ioctl.c |  4 ++-
 4 files changed, 39 insertions(+), 36 deletions(-)
Signature · 1 line
2.53.0