public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* FAILED: patch "[PATCH] drm/i915: Fix memory leak by correcting cache object name in" failed to apply to 5.10-stable tree
@ 2024-12-15  8:33 gregkh
  2024-12-16 13:29 ` Andi Shyti
  2024-12-16 16:18 ` [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler Jiasheng Jiang
  0 siblings, 2 replies; 8+ messages in thread
From: gregkh @ 2024-12-15  8:33 UTC (permalink / raw)
  To: jiashengjiangcool, andi.shyti, nirmoy.das, stable, tursulin; +Cc: stable


The patch below does not apply to the 5.10-stable tree.
If someone wants it applied there, or to any other stable or longterm
tree, then please email the backport, including the original git commit
id to <stable@vger.kernel.org>.

To reproduce the conflict and resubmit, you may use the following commands:

git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.10.y
git checkout FETCH_HEAD
git cherry-pick -x 2828e5808bcd5aae7fdcd169cac1efa2701fa2dd
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2024121517-deserve-wharf-c2d0@gregkh' --subject-prefix 'PATCH 5.10.y' HEAD^..

Possible dependencies:



thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From 2828e5808bcd5aae7fdcd169cac1efa2701fa2dd Mon Sep 17 00:00:00 2001
From: Jiasheng Jiang <jiashengjiangcool@outlook.com>
Date: Wed, 27 Nov 2024 20:10:42 +0000
Subject: [PATCH] drm/i915: Fix memory leak by correcting cache object name in
 error handler

Replace "slab_priorities" with "slab_dependencies" in the error handler
to avoid memory leak.

Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global")
Cc: <stable@vger.kernel.org> # v5.2+
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@outlook.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241127201042.29620-1-jiashengjiangcool@gmail.com
(cherry picked from commit 9bc5e7dc694d3112bbf0fa4c46ef0fa0f114937a)
Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net>

diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c
index 762127dd56c5..70a854557e6e 100644
--- a/drivers/gpu/drm/i915/i915_scheduler.c
+++ b/drivers/gpu/drm/i915/i915_scheduler.c
@@ -506,6 +506,6 @@ int __init i915_scheduler_module_init(void)
 	return 0;
 
 err_priorities:
-	kmem_cache_destroy(slab_priorities);
+	kmem_cache_destroy(slab_dependencies);
 	return -ENOMEM;
 }


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: FAILED: patch "[PATCH] drm/i915: Fix memory leak by correcting cache object name in" failed to apply to 5.10-stable tree
  2024-12-15  8:33 FAILED: patch "[PATCH] drm/i915: Fix memory leak by correcting cache object name in" failed to apply to 5.10-stable tree gregkh
@ 2024-12-16 13:29 ` Andi Shyti
       [not found]   ` <BYAPR05MB6406014F80159A032E3D7A74AD3B2@BYAPR05MB6406.namprd05.prod.outlook.com>
  2024-12-16 16:18 ` [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler Jiasheng Jiang
  1 sibling, 1 reply; 8+ messages in thread
From: Andi Shyti @ 2024-12-16 13:29 UTC (permalink / raw)
  To: gregkh; +Cc: jiashengjiangcool, andi.shyti, nirmoy.das, stable, tursulin

Hi Jiasheng,

On Sun, Dec 15, 2024 at 09:33:17AM +0100, gregkh@linuxfoundation.org wrote:
> The patch below does not apply to the 5.10-stable tree.
> If someone wants it applied there, or to any other stable or longterm
> tree, then please email the backport, including the original git commit
> id to <stable@vger.kernel.org>.

Could you please fix the backport to 5.10 and 5.4 as they are not
applying cleanly?

Thanks,
Andi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler
  2024-12-15  8:33 FAILED: patch "[PATCH] drm/i915: Fix memory leak by correcting cache object name in" failed to apply to 5.10-stable tree gregkh
  2024-12-16 13:29 ` Andi Shyti
@ 2024-12-16 16:18 ` Jiasheng Jiang
  2024-12-17  0:42   ` Sasha Levin
                     ` (2 more replies)
  1 sibling, 3 replies; 8+ messages in thread
From: Jiasheng Jiang @ 2024-12-16 16:18 UTC (permalink / raw)
  To: stable; +Cc: Jiasheng Jiang

Replace "slab_priorities" with "slab_dependencies" in the error handler
to avoid memory leak.

Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global")
Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
---
 drivers/gpu/drm/i915/i915_scheduler.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c
index cbb880b10c65..a58b70444abd 100644
--- a/drivers/gpu/drm/i915/i915_scheduler.c
+++ b/drivers/gpu/drm/i915/i915_scheduler.c
@@ -538,6 +538,6 @@ int __init i915_global_scheduler_init(void)
 	return 0;
 
 err_priorities:
-	kmem_cache_destroy(global.slab_priorities);
+	kmem_cache_destroy(global.slab_dependencies);
 	return -ENOMEM;
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler
  2024-12-16 16:18 ` [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler Jiasheng Jiang
@ 2024-12-17  0:42   ` Sasha Levin
  2024-12-17  6:42   ` Greg KH
  2024-12-17  9:01   ` Greg KH
  2 siblings, 0 replies; 8+ messages in thread
From: Sasha Levin @ 2024-12-17  0:42 UTC (permalink / raw)
  To: stable; +Cc: Jiasheng Jiang, Sasha Levin

[ Sasha's backport helper bot ]

Hi,

Found matching upstream commit: 2828e5808bcd5aae7fdcd169cac1efa2701fa2dd

WARNING: Author mismatch between patch and found commit:
Backport author: Jiasheng Jiang <jiashengjiangcool@gmail.com>
Commit author: Jiasheng Jiang <jiashengjiangcool@outlook.com>


Status in newer kernel trees:
6.12.y | Present (different SHA1: 1c7f63e645a9)
6.6.y | Present (different SHA1: c98cff29e48f)
6.1.y | Present (different SHA1: 237fe21e40c7)
5.15.y | Present (different SHA1: a4d0c3c28c3b)
5.10.y | Not found

Note: The patch differs from the upstream commit:
---
1:  2828e5808bcd < -:  ------------ drm/i915: Fix memory leak by correcting cache object name in error handler
-:  ------------ > 1:  e0b528005793 drm/i915: Fix memory leak by correcting cache object name in error handler
---

Results of testing on various branches:

| Branch                    | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-5.10.y       |  Success    |  Success   |

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler
  2024-12-16 16:18 ` [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler Jiasheng Jiang
  2024-12-17  0:42   ` Sasha Levin
@ 2024-12-17  6:42   ` Greg KH
  2024-12-17  9:01   ` Greg KH
  2 siblings, 0 replies; 8+ messages in thread
From: Greg KH @ 2024-12-17  6:42 UTC (permalink / raw)
  To: Jiasheng Jiang; +Cc: stable

On Mon, Dec 16, 2024 at 04:18:40PM +0000, Jiasheng Jiang wrote:
> Replace "slab_priorities" with "slab_dependencies" in the error handler
> to avoid memory leak.
> 
> Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
> ---
>  drivers/gpu/drm/i915/i915_scheduler.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_scheduler.c b/drivers/gpu/drm/i915/i915_scheduler.c
> index cbb880b10c65..a58b70444abd 100644
> --- a/drivers/gpu/drm/i915/i915_scheduler.c
> +++ b/drivers/gpu/drm/i915/i915_scheduler.c
> @@ -538,6 +538,6 @@ int __init i915_global_scheduler_init(void)
>  	return 0;
>  
>  err_priorities:
> -	kmem_cache_destroy(global.slab_priorities);
> +	kmem_cache_destroy(global.slab_dependencies);
>  	return -ENOMEM;
>  }
> -- 
> 2.25.1

What is the git commit id of this change?

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler
  2024-12-16 16:18 ` [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler Jiasheng Jiang
  2024-12-17  0:42   ` Sasha Levin
  2024-12-17  6:42   ` Greg KH
@ 2024-12-17  9:01   ` Greg KH
  2024-12-17 20:40     ` Jiasheng Jiang
  2 siblings, 1 reply; 8+ messages in thread
From: Greg KH @ 2024-12-17  9:01 UTC (permalink / raw)
  To: Jiasheng Jiang; +Cc: stable

On Mon, Dec 16, 2024 at 04:18:40PM +0000, Jiasheng Jiang wrote:
> Replace "slab_priorities" with "slab_dependencies" in the error handler
> to avoid memory leak.
> 
> Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>

You also forgot to keep all the original signed-off-by lines, and cc:
them :(

I've fixed it up, but next time be more careful please.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: FAILED: patch "[PATCH] drm/i915: Fix memory leak by correcting cache object name in" failed to apply to 5.10-stable tree
       [not found]   ` <BYAPR05MB6406014F80159A032E3D7A74AD3B2@BYAPR05MB6406.namprd05.prod.outlook.com>
@ 2024-12-17 17:58     ` Andi Shyti
  0 siblings, 0 replies; 8+ messages in thread
From: Andi Shyti @ 2024-12-17 17:58 UTC (permalink / raw)
  To: Jiang Jiasheng
  Cc: Andi Shyti, gregkh@linuxfoundation.org, stable@vger.kernel.org

Hi Jiasheng,

> Yes. I have submitted the patch for 5.10 to stable@vger.kernel.org.

Thank you!

Andi

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler
  2024-12-17  9:01   ` Greg KH
@ 2024-12-17 20:40     ` Jiasheng Jiang
  0 siblings, 0 replies; 8+ messages in thread
From: Jiasheng Jiang @ 2024-12-17 20:40 UTC (permalink / raw)
  To: Greg KH; +Cc: stable

Hi Greg,

On Tue, Dec 17, 2024 at 4:01 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Mon, Dec 16, 2024 at 04:18:40PM +0000, Jiasheng Jiang wrote:
> > Replace "slab_priorities" with "slab_dependencies" in the error handler
> > to avoid memory leak.
> >
> > Fixes: 32eb6bcfdda9 ("drm/i915: Make request allocation caches global")
> > Signed-off-by: Jiasheng Jiang <jiashengjiangcool@gmail.com>
>
> You also forgot to keep all the original signed-off-by lines, and cc:
> them :(
>
> I've fixed it up, but next time be more careful please.
>
> thanks,
>
> greg k-h

Sorry for that. I will add these lines in the patch for 5.4.

-Jiasheng

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-17 20:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-15  8:33 FAILED: patch "[PATCH] drm/i915: Fix memory leak by correcting cache object name in" failed to apply to 5.10-stable tree gregkh
2024-12-16 13:29 ` Andi Shyti
     [not found]   ` <BYAPR05MB6406014F80159A032E3D7A74AD3B2@BYAPR05MB6406.namprd05.prod.outlook.com>
2024-12-17 17:58     ` Andi Shyti
2024-12-16 16:18 ` [PATCH 5.10.y] drm/i915: Fix memory leak by correcting cache object name in error handler Jiasheng Jiang
2024-12-17  0:42   ` Sasha Levin
2024-12-17  6:42   ` Greg KH
2024-12-17  9:01   ` Greg KH
2024-12-17 20:40     ` Jiasheng Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox