Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36488189F20 for ; Thu, 28 May 2026 06:30:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779949820; cv=none; b=ljIlqrRzot4QpNi4JXqjsmPLWvAcGNbL7hlAK0FW2ktJ6FAJHcy8RuWbBOkZL1wb1gJ8MUG+L4cGYtK/GvzsDCCm5W3BmF3SPnjOjRJmhImh0B/h98iyCA596jM6sGQBvCq3+llTJJGyrt/nrr0YU3nFj4r1/uuty3WohOktjRc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779949820; c=relaxed/simple; bh=CybVNsiEnHskzI9STi/kobF3HCpPfYFWQg0zLD98WXU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YzF4dQb4VzEWvu19LXFP+6gMr5/44Nt0vKHNjjUHR0d+WVlGKefuYVcW1f7dn6xzpfOMQbHvfXNJeWK1Or6eGuIzeG4R9rVZnuBUiT3AdcBSqj0fnX1/Y7dzVXmKEq6PmP6nEUP7PHupS4t6cqhZksNbkb8d7bNvtfwL1E5fc+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=auL96ZJS; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="auL96ZJS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1779949816; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=j+IiqDBrGPMMITWFKRVN/DNqCjtmUObz6NDovf/ZTWo=; b=auL96ZJSolx+mWMoSzwB0ymXz6nOXug5Cof8TLL/nr5LI1wyT0itWbudTGQDJ/3pJfWJdc zTdKsLmISaMO8NadHjpoVUkWZrt8rFdquaB6WY3dQ1kvbH8MkyVhm1The+ZTSXYyqg12QA Y9CKybJplSj/PZfDRdZItXwNaFO7DTA= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-621-u-RxFsDhMjWF25R_21Kp4A-1; Thu, 28 May 2026 02:30:13 -0400 X-MC-Unique: u-RxFsDhMjWF25R_21Kp4A-1 X-Mimecast-MFC-AGG-ID: u-RxFsDhMjWF25R_21Kp4A_1779949812 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 519BC1956096; Thu, 28 May 2026 06:30:12 +0000 (UTC) Received: from nprabudo-thinkpadp16vgen1.rmtin.csb (unknown [10.74.81.42]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id E58B61800465; Thu, 28 May 2026 06:30:09 +0000 (UTC) From: Nimal Prabudoss I To: James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, jmeneghi@redhat.com, nilesh.javali@marvell.com, Nimal Prabudoss I Subject: [PATCH] scsi: qedf: use GFP_ATOMIC to prevent vmalloc allocation panic Date: Thu, 28 May 2026 02:30:06 -0400 Message-ID: <20260528063006.20783-1-nprabudo@redhat.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 The qedf driver encounters an exc_invalid_op crash in get_vm_area_node when running under intensive I/O stress with IOMMU enabled. Link: https://issues.redhat.com/browse/RHEL-75146 Signed-off-by: Nimal Prabudoss I --- drivers/scsi/qedf/qedf_io.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/qedf/qedf_io.c b/drivers/scsi/qedf/qedf_io.c index a120f0e37a64..6883aaf683bd 100644 --- a/drivers/scsi/qedf/qedf_io.c +++ b/drivers/scsi/qedf/qedf_io.c @@ -2059,7 +2059,7 @@ int qedf_init_mp_req(struct qedf_ioreq *io_req) mp_req->req_len = io_req->data_xfer_len; mp_req->req_buf = dma_alloc_coherent(&qedf->pdev->dev, QEDF_PAGE_SIZE, - &mp_req->req_buf_dma, GFP_KERNEL); + &mp_req->req_buf_dma, GFP_ATOMIC); if (!mp_req->req_buf) { QEDF_ERR(&(qedf->dbg_ctx), "Unable to alloc MP req buffer\n"); qedf_free_mp_resc(io_req); @@ -2067,7 +2067,7 @@ int qedf_init_mp_req(struct qedf_ioreq *io_req) } mp_req->resp_buf = dma_alloc_coherent(&qedf->pdev->dev, - QEDF_PAGE_SIZE, &mp_req->resp_buf_dma, GFP_KERNEL); + QEDF_PAGE_SIZE, &mp_req->resp_buf_dma, GFP_ATOMIC); if (!mp_req->resp_buf) { QEDF_ERR(&(qedf->dbg_ctx), "Unable to alloc TM resp " "buffer\n"); @@ -2078,7 +2078,7 @@ int qedf_init_mp_req(struct qedf_ioreq *io_req) /* Allocate and map mp_req_bd and mp_resp_bd */ sz = sizeof(struct scsi_sge); mp_req->mp_req_bd = dma_alloc_coherent(&qedf->pdev->dev, sz, - &mp_req->mp_req_bd_dma, GFP_KERNEL); + &mp_req->mp_req_bd_dma, GFP_ATOMIC); if (!mp_req->mp_req_bd) { QEDF_ERR(&(qedf->dbg_ctx), "Unable to alloc MP req bd\n"); qedf_free_mp_resc(io_req); @@ -2086,7 +2086,7 @@ int qedf_init_mp_req(struct qedf_ioreq *io_req) } mp_req->mp_resp_bd = dma_alloc_coherent(&qedf->pdev->dev, sz, - &mp_req->mp_resp_bd_dma, GFP_KERNEL); + &mp_req->mp_resp_bd_dma, GFP_ATOMIC); if (!mp_req->mp_resp_bd) { QEDF_ERR(&(qedf->dbg_ctx), "Unable to alloc MP resp bd\n"); qedf_free_mp_resc(io_req); -- 2.54.0