]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Feb 2026 12:51:25 +0000 (13:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Feb 2026 12:51:25 +0000 (13:51 +0100)
added patches:
scsi-be2iscsi-fix-a-memory-leak-in-beiscsi_boot_get_sinfo.patch

queue-5.10/dma-pool-distinguish-between-missing-and-exhausted-a.patch
queue-5.10/scsi-be2iscsi-fix-a-memory-leak-in-beiscsi_boot_get_sinfo.patch [new file with mode: 0644]
queue-5.10/series

index c6d965b320bcfa3d6e038e881410715ac40b7fa8..0416b65b15d22114104f3b0440bfa65854ff2d58 100644 (file)
@@ -34,14 +34,12 @@ Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
 Link: https://lore.kernel.org/r/20260128133554.3056582-1-s-adivi@ti.com
 Signed-off-by: Sasha Levin <sashal@kernel.org>
 ---
- kernel/dma/pool.c | 7 ++++++-
+ kernel/dma/pool.c |    7 ++++++-
  1 file changed, 6 insertions(+), 1 deletion(-)
 
-diff --git a/kernel/dma/pool.c b/kernel/dma/pool.c
-index 32efef1660096..484050de72fd4 100644
 --- a/kernel/dma/pool.c
 +++ b/kernel/dma/pool.c
-@@ -271,15 +271,20 @@ struct page *dma_alloc_from_pool(struct device *dev, size_t size,
+@@ -271,15 +271,20 @@ struct page *dma_alloc_from_pool(struct
  {
        struct gen_pool *pool = NULL;
        struct page *page;
@@ -63,6 +61,3 @@ index 32efef1660096..484050de72fd4 100644
        return NULL;
  }
  
--- 
-2.51.0
-
diff --git a/queue-5.10/scsi-be2iscsi-fix-a-memory-leak-in-beiscsi_boot_get_sinfo.patch b/queue-5.10/scsi-be2iscsi-fix-a-memory-leak-in-beiscsi_boot_get_sinfo.patch
new file mode 100644 (file)
index 0000000..73226b1
--- /dev/null
@@ -0,0 +1,32 @@
+From 4747bafaa50115d9667ece446b1d2d4aba83dc7f Mon Sep 17 00:00:00 2001
+From: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
+Date: Sat, 13 Dec 2025 16:36:43 +0800
+Subject: scsi: be2iscsi: Fix a memory leak in beiscsi_boot_get_sinfo()
+
+From: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
+
+commit 4747bafaa50115d9667ece446b1d2d4aba83dc7f upstream.
+
+If nonemb_cmd->va fails to be allocated, free the allocation previously
+made by alloc_mcc_wrb().
+
+Fixes: 50a4b824be9e ("scsi: be2iscsi: Fix to make boot discovery non-blocking")
+Cc: stable@vger.kernel.org
+Signed-off-by: Haoxiang Li <lihaoxiang@isrc.iscas.ac.cn>
+Link: https://patch.msgid.link/20251213083643.301240-1-lihaoxiang@isrc.iscas.ac.cn
+Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/scsi/be2iscsi/be_mgmt.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/drivers/scsi/be2iscsi/be_mgmt.c
++++ b/drivers/scsi/be2iscsi/be_mgmt.c
+@@ -1019,6 +1019,7 @@ unsigned int beiscsi_boot_get_sinfo(stru
+                                             &nonemb_cmd->dma,
+                                             GFP_KERNEL);
+       if (!nonemb_cmd->va) {
++              free_mcc_wrb(ctrl, tag);
+               mutex_unlock(&ctrl->mbox_lock);
+               return 0;
+       }
index 3343f40960dd2bbe0403587f555227695e62dcf3..8365cc8a451152c4b34c48e5e4c76406552dcd45 100644 (file)
@@ -132,3 +132,4 @@ nfc-nci-fix-race-between-rfkill-and-nci_unregister_d.patch
 net-bridge-fix-static-key-check.patch
 scsi-firewire-sbp-target-fix-overflow-in-sbp_make_tp.patch
 dma-pool-distinguish-between-missing-and-exhausted-a.patch
+scsi-be2iscsi-fix-a-memory-leak-in-beiscsi_boot_get_sinfo.patch