]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Nov 2021 08:39:54 +0000 (09:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Nov 2021 08:39:54 +0000 (09:39 +0100)
added patches:
revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch

queue-5.10/revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch b/queue-5.10/revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch
new file mode 100644 (file)
index 0000000..f31dd9a
--- /dev/null
@@ -0,0 +1,43 @@
+From bfd043fac1e7eaa5b16b5368373593bf9cc92d12 Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Thu, 4 Nov 2021 09:35:57 +0100
+Subject: Revert "drm/ttm: fix memleak in ttm_transfered_destroy"
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+This reverts commit c21b4002214c1c7e7b627b9b53375612f7aab6db which is
+commit 0db55f9a1bafbe3dac750ea669de9134922389b5 upstream.
+
+Seems that the older kernels can not handle this fix because, to quote
+Christian:
+       The problem is this memory leak could potentially happen with
+       5.10 as wel, just much much much less likely.
+
+       But my guess is that 5.10 is so buggy that when the leak does
+       NOT happen we double free and obviously causing a crash.
+
+So it needs to be reverted.
+
+Link: https://lore.kernel.org/r/1a1cc125-9314-f569-a6c4-40fc4509a377@amd.com
+Cc: Christian König <christian.koenig@amd.com>
+Cc: Erhard F. <erhard_f@mailbox.org>
+Cc: Erhard F. <erhard_f@mailbox.org>
+Cc: Huang Rui <ray.huang@amd.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/ttm/ttm_bo_util.c |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
++++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
+@@ -322,7 +322,6 @@ static void ttm_transfered_destroy(struc
+       struct ttm_transfer_obj *fbo;
+       fbo = container_of(bo, struct ttm_transfer_obj, base);
+-      dma_resv_fini(&fbo->base.base._resv);
+       ttm_bo_put(fbo->bo);
+       kfree(fbo);
+ }
index d32e2433a8705953b963c38b6db2330ee1679c65..82044b93ddc49b692e79028164bef04657752ff5 100644 (file)
@@ -9,3 +9,4 @@ media-firewire-firedtv-avc-fix-a-buffer-overflow-in-avc_ca_pmt.patch
 revert-xhci-set-hcd-flag-to-defer-primary-roothub-registration.patch
 revert-usb-core-hcd-add-support-for-deferring-roothub.patch
 mm-khugepaged-skip-huge-page-collapse-for-special-files.patch
+revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch