Patch "Revert "drm/ttm: fix memleak in ttm_transfered_destroy"" has been added to the 5.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "drm/ttm: fix memleak in ttm_transfered_destroy"

to the 5.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch
and it can be found in the queue-5.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From bfd043fac1e7eaa5b16b5368373593bf9cc92d12 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxxxxxxx>

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@xxxxxxx
Cc: Christian König <christian.koenig@xxxxxxx>
Cc: Erhard F. <erhard_f@xxxxxxxxxxx>
Cc: Erhard F. <erhard_f@xxxxxxxxxxx>
Cc: Huang Rui <ray.huang@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 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);
 }


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-5.10/revert-usb-core-hcd-add-support-for-deferring-roothub.patch
queue-5.10/sfc-fix-reading-non-legacy-supported-link-modes.patch
queue-5.10/mm-khugepaged-skip-huge-page-collapse-for-special-files.patch
queue-5.10/net-ethernet-microchip-lan743x-fix-skb-allocation-failure.patch
queue-5.10/mm-filemap-check-if-thp-has-hwpoisoned-subpage-for-pmd-page-fault.patch
queue-5.10/revert-xhci-set-hcd-flag-to-defer-primary-roothub-registration.patch
queue-5.10/revert-drm-ttm-fix-memleak-in-ttm_transfered_destroy.patch
queue-5.10/scsi-core-put-lld-module-refcnt-after-scsi-device-is-released.patch
queue-5.10/revert-io_uring-reinforce-cancel-on-flush-during-exit.patch
queue-5.10/mm-hwpoison-remove-the-unnecessary-thp-check.patch
queue-5.10/media-firewire-firedtv-avc-fix-a-buffer-overflow-in-avc_ca_pmt.patch
queue-5.10/vrf-revert-reset-skb-conntrack-connection.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux