mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jason J. Herne" <jjherne@linux.ibm.com>
To: linux-s390@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, akrowiak@linux.ibm.com,
	borntraeger@linux.ibm.com, agordeev@linux.ibm.com,
	gor@linux.ibm.com, hca@linux.ibm.com, mjrosato@linux.ibm.com,
	frankja@linux.ibm.com, imbrenda@linux.ibm.com,
	jrossi@linux.ibm.com
Subject: [PATCH 0/5] s390/vfio-ap: Fixes for queue reset and AQIC handling
Date: Thu,  3 Dec 2026 16:45:26 -0500	[thread overview]
Message-ID: <20261203214531.1395796-1-jjherne@linux.ibm.com> (raw)

This is a bugfix series to address problems found during ai lead code review.
Its focus is primarily reset & data security related.

Summary of changes:
- Patch 1: Prevent passing unreset, checkstopped, or deconfigured queues
  through to guests so we don't risk leaking sensitive leftover data.
- Patch 2: Bound the queue reset verification loop (2s timeout) to avoid
  infinite hangs if resets fail to complete (rare or impossible).
- Patch 3: Hold a private page reference on unconfirmed resets to satisfy
  VFIO DMA unmapping while preventing page reuse/corruption by hardware.
- Patch 4: Clear dangling matrix_mdev references and clean up AQIC resources
  for filtered queues during adapter/domain unassignment.
- Patch 5: Fix resource handling and state tracking for rejected or
  non-NORMAL AQIC enable requests.
 

Jason J. Herne (5):
  s390/vfio-ap: Prevent passing unreset queues
  s390/vfio-ap: bound the wait for queue reset verification
  s390/vfio-ap: Hold a private NIB page reference when a reset is
    unconfirmed
  s390/vfio-ap: clear matrix_mdev link for queues not reset on unassign
  s390/vfio-ap: Fix resource handling for rejected AQIC enable requests

 drivers/s390/crypto/vfio_ap_ops.c     | 140 +++++++++++++++++++++-----
 drivers/s390/crypto/vfio_ap_private.h |   2 +
 2 files changed, 119 insertions(+), 23 deletions(-)

-- 
2.56.1


             reply	other threads:[~2026-12-03 21:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 21:45 Jason J. Herne [this message]
2026-12-03 21:45 ` [PATCH 1/5] s390/vfio-ap: Prevent passing unreset queues Jason J. Herne
2026-12-03 21:45 ` [PATCH 2/5] s390/vfio-ap: bound the wait for queue reset verification Jason J. Herne
2026-12-03 21:45 ` [PATCH 3/5] s390/vfio-ap: Hold a private NIB page reference when a reset is unconfirmed Jason J. Herne
2026-12-03 21:45 ` [PATCH 4/5] s390/vfio-ap: clear matrix_mdev link for queues not reset on unassign Jason J. Herne
2026-12-03 21:45 ` [PATCH 5/5] s390/vfio-ap: Fix resource handling for rejected AQIC enable requests Jason J. Herne

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=20261203214531.1395796-1-jjherne@linux.ibm.com \
    --to=jjherne@linux.ibm.com \
    --cc=agordeev@linux.ibm.com \
    --cc=akrowiak@linux.ibm.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=frankja@linux.ibm.com \
    --cc=gor@linux.ibm.com \
    --cc=hca@linux.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=jrossi@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=mjrosato@linux.ibm.com \
    /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

all inboxes | Powered by JetHome®