Linux s390 Architecture development
 help / color / mirror / Atom feed
From: Stefan Haberland <sth@linux.ibm.com>
To: linux-s390@vger.kernel.org
Cc: Jan Hoeppner <hoeppner@linux.ibm.com>,
	Eduard Shishkin <edward6@linux.ibm.com>
Subject: [PATCH 0/3] s390/dasd: Fix BIODASDCHECKFMT issues and RCD retry handling
Date: Fri, 23 Oct 2026 11:21:15 +0200	[thread overview]
Message-ID: <20261023092118.3152286-1-sth@linux.ibm.com> (raw)

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

-- 
2.53.0


             reply	other threads:[~2026-10-23  9:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  9:21 Stefan Haberland [this message]
2026-10-23  9:21 ` [PATCH 1/3] s390/dasd: Re-initialize RCD buffer with "V1.0" before every start Stefan Haberland
2026-10-23  9:21 ` [PATCH 2/3] s390/dasd: Fix wrong free and refcount leak in build_check_tcw error path Stefan Haberland
2026-10-23  9:21 ` [PATCH 3/3] s390/dasd: Don't trust userspace-supplied result field in format check Stefan Haberland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261023092118.3152286-1-sth@linux.ibm.com \
    --to=sth@linux.ibm.com \
    --cc=edward6@linux.ibm.com \
    --cc=hoeppner@linux.ibm.com \
    --cc=linux-s390@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox