From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796334335; b=487wWw65jS5MxbUoStEySQfh4d/F7qiHhPkS7y2h1kcerP+d7S0myzJaNSNOEeN9EwD+ XDeZ0WaxskKMgNm2U5h0ujfTkcIvg2YqwpzQZAYU8MAHAprgYIpmJrY8lEO8e/n2GU/vr q1p04ssG956bys+QFqx6OkbVrx1Ng4rRFMlk1keqvDq3w8hy5aKszTywcKuIo3z2Nq5xf y8dKEE98WILs3+hd6tL4qKL9E7Lcqed5LxerKxxW3UqvxekisFo00PAr+pqAVxQksrWTd b3Xzsfe8sK3RFglC27vkLqKKsfIaIVYAVnKmXGq/NIVMAZn3Aq/iXakwpLljekv2How== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796334335; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Received:Received:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding: X-TM-AS-GCONF:X-Proofpoint-Spam-Details-Enc:X-Proofpoint-GUID: X-Proofpoint-Spam-Info:X-Proofpoint-ORIG-GUID:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=BUyX4NqJMCU+xvF9WabAkhixzYRFf7KfF+aG9codYvY=; b=r9v7D/Kn6Ik499flom4p2zKXglXZlU8tPD5bus1nxCkMMD3aYW9eIjLe/jEWL7/BnWWR B7YLHa4EOmFecn/7+hZ/f4oSMmCoFP+nU2PpV3mS5aJLoi8hHCPJQhbGAAXqratMJWy/d Mrbjf2W3sDeO6/h9BDhe+kt2SjjYWy1ZM4gUQHrfrM07kG2FvGyLZHwohP9vHXajpeheF UbbuJK+msioUn+AcCLoMjBukpli9H+wzbe42IXLjXt84ZCEXJDftcVqlJDIcdwv7tXLku DCxEynux+Ccx8niPblvK8PNyhzzzH2UvTFsWlh8kZ2P95JcheMLT1s1GctG6UTihTgg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=S42PQ9Ba; arc=none smtp.remote-ip=148.163.156.1 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDCBE606A322; Thu, 3 Dec 2026 21:45:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DDCBE606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=S42PQ9Ba Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3LZA2h342092; Thu, 3 Dec 2026 21:45:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pp1; bh=BUyX4NqJMCU+xvF9WabAkhixzYRFf7KfF+aG9codY vY=; b=S42PQ9Bak66hos2GKDLzBwQ7T/5ptSrQMFXWew+y4Uig2lDaUnAHewBo4 N6ZK2l6tmzvvHXxc0oBDs+1ZPDD2UDE17YD8RC8UULPMNkUGm3m6yN90v0mlp0He qX6s6aSQ/jivpOUXsYLpRGOft6YVO1WhZXVj4Z4VT7YUjWTPRuSD/9So6ThqeF4Z JoRcl1mW8Y+aW5PG9tvO3u+dSj05ujSDmKQOENaGBlkLFPbC7ZE8cICGnXTEmqI5 AvFhaMpXMSm0bXK0VWc/RaqIAIfRkAVdlqSOUw+eA91WVJsfqk323CJJ2v/kl17G WkcoY3HPuH363WDJBtNBrire5pbRA== Received: from ppma13.dal12v.mail.ibm.com (dd.9e.1632.ip4.static.sl-reverse.com [50.22.158.221]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4jbgfd00ua-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 03 Dec 2026 21:45:33 +0000 (GMT) Received: from pps.filterd (ppma13.dal12v.mail.ibm.com [127.0.0.1]) by ppma13.dal12v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3IKvQa3973013; Thu, 3 Dec 2026 21:45:33 GMT Received: from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5]) by ppma13.dal12v.mail.ibm.com (PPS) with ESMTPS id 4ja0pqab7a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2026 21:45:33 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6B3LjWP331916496 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 Dec 2026 21:45:32 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4706A58052; Thu, 3 Dec 2026 21:45:32 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8874958056; Thu, 3 Dec 2026 21:45:31 +0000 (GMT) Received: from li-2227244c-2a68-11b2-a85c-fc811bb24bca.ibm.com (unknown [9.61.13.210]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 3 Dec 2026 21:45:31 +0000 (GMT) From: "Jason J. Herne" 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 Message-ID: <20261203214531.1395796-1-jjherne@linux.ibm.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA4NiBTYWx0ZWRfX56/6+LJZYYXP Yh0yP+7VYEjumOnX5UxY+fiJPRAXtb/KybjknjntDmLrIUMkhnPchSv+LXwYEyWFP9lGpsegydF Xb/+XFHNKdITRLVdDn8WZEbbczv6Q2Q1wOfgIYx/ukUehs+OxxCJtCy2N0OGCPol/SvpFrSelde +sQsgl6wQ5SOSMffxRo2ca+NhS6pXvmODAH3qxUu9Y1BhsWwGN4JhgVsugAlYlupSVUA/ZEiCT+ ZLHWl3xdsy8Y1XTcUPhKJ9fI572s26DqYakvpU+Dr2kTtC1U5Sx5GbN/jqU3iXhH6N2ri7BXAeI Vh3iT7FFQQXRsrxIJ0SDBwYBOaL79ovnSYPkiG6+lV0wJvuxbgFYY8fqVaj66azSYf+kg1xkk5Z /vqWUv4+rmhX/WuNkrGCKA1Ba55MdQ+KoJ/63BsvQdxy5AigX2mqgD2dDwJeC6FsBU0YC63oOdr deR+jbS8kEykSFnY2LA== X-Proofpoint-GUID: 3Pl8Bd-xmZ0vJx74XryOCo7vL_lKT8Yt X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA4NiBTYWx0ZWRfX9RK2fmGC+Ygj tswpQ2ZyD9pZ0KbnSV/l21WFbtfk1OIM+j++6Ta0JNtJsdrZmkBeboUAKggSqd3I87ovrLgkIHF ZrWEnCjYpRTP94JJj1OAG5PwDHLiUWk= X-Proofpoint-ORIG-GUID: 3Pl8Bd-xmZ0vJx74XryOCo7vL_lKT8Yt X-Authority-Analysis: v=2.4 cv=I9zw19gg c=1 sm=1 tr=0 ts=6b11e2fd cx=c_pps a=AfN7/Ok6k8XGzOShvHwTGQ==:117 a=AfN7/Ok6k8XGzOShvHwTGQ==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=U7nrCbtTmkRpXpFmAIza:22 a=f44fCA68msKHZpmEulYA:9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_05,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 spamscore=0 clxscore=1011 malwarescore=0 lowpriorityscore=0 priorityscore=1501 adultscore=0 bulkscore=0 impostorscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2612010000 definitions=main-2612030086 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