linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
@ 2025-08-13  8:53 Gu Bowen
  2025-08-13 16:22 ` Catalin Marinas
  2025-08-13 22:56 ` Andrew Morton
  0 siblings, 2 replies; 11+ messages in thread
From: Gu Bowen @ 2025-08-13  8:53 UTC (permalink / raw)
  To: Catalin Marinas, Andrew Morton
  Cc: stable, linux-mm, Waiman Long, Breno Leitao, John Ogness,
	Lu Jialin, Gu Bowen

Our syztester report the lockdep WARNING [1]. kmemleak_scan_thread()
invokes scan_block() which may invoke a nomal printk() to print warning
message. This can cause a deadlock in the scenario reported below:

       CPU0                    CPU1
       ----                    ----
  lock(kmemleak_lock);
                               lock(&port->lock);
                               lock(kmemleak_lock);
  lock(console_owner);

To solve this problem, switch to printk_safe mode before printing warning
message, this will redirect all printk()-s to a special per-CPU buffer,
which will be flushed later from a safe context (irq work), and this
deadlock problem can be avoided. The proper API to use should be
printk_deferred_enter()/printk_deferred_exit() if we want to deferred the
printing [2].

This patch also fixes other similar case that need to use the printk
deferring [3].

[1]
https://lore.kernel.org/all/20250730094914.566582-1-gubowen5@huawei.com/
[2]
https://lore.kernel.org/all/5ca375cd-4a20-4807-b897-68b289626550@redhat.com/
[3]
https://lore.kernel.org/all/aJCir5Wh362XzLSx@arm.com/
====================

Cc: stable@vger.kernel.org # 5.10
Signed-off-by: Gu Bowen <gubowen5@huawei.com>
---
 mm/kmemleak.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/mm/kmemleak.c b/mm/kmemleak.c
index 4801751cb6b6..b9cb321c1cf3 100644
--- a/mm/kmemleak.c
+++ b/mm/kmemleak.c
@@ -390,9 +390,15 @@ static struct kmemleak_object *lookup_object(unsigned long ptr, int alias)
 		else if (object->pointer == ptr || alias)
 			return object;
 		else {
+			/*
+			 * Printk deferring due to the kmemleak_lock held.
+			 * This is done to avoid deadlock.
+			 */
+			printk_deferred_enter();
 			kmemleak_warn("Found object by alias at 0x%08lx\n",
 				      ptr);
 			dump_object_info(object);
+			printk_deferred_exit();
 			break;
 		}
 	}
@@ -632,6 +638,11 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
 		else if (parent->pointer + parent->size <= ptr)
 			link = &parent->rb_node.rb_right;
 		else {
+			/*
+			 * Printk deferring due to the kmemleak_lock held.
+			 * This is done to avoid deadlock.
+			 */
+			printk_deferred_enter();
 			kmemleak_stop("Cannot insert 0x%lx into the object search tree (overlaps existing)\n",
 				      ptr);
 			/*
@@ -639,6 +650,7 @@ static struct kmemleak_object *create_object(unsigned long ptr, size_t size,
 			 * be freed while the kmemleak_lock is held.
 			 */
 			dump_object_info(parent);
+			printk_deferred_exit();
 			kmem_cache_free(object_cache, object);
 			object = NULL;
 			goto out;
-- 
2.25.1



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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-13  8:53 [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning Gu Bowen
@ 2025-08-13 16:22 ` Catalin Marinas
  2025-08-13 22:56 ` Andrew Morton
  1 sibling, 0 replies; 11+ messages in thread
From: Catalin Marinas @ 2025-08-13 16:22 UTC (permalink / raw)
  To: Gu Bowen
  Cc: Andrew Morton, stable, linux-mm, Waiman Long, Breno Leitao,
	John Ogness, Lu Jialin

On Wed, Aug 13, 2025 at 04:53:10PM +0800, Gu Bowen wrote:
> Our syztester report the lockdep WARNING [1]. kmemleak_scan_thread()
> invokes scan_block() which may invoke a nomal printk() to print warning
> message. This can cause a deadlock in the scenario reported below:
> 
>        CPU0                    CPU1
>        ----                    ----
>   lock(kmemleak_lock);
>                                lock(&port->lock);
>                                lock(kmemleak_lock);
>   lock(console_owner);
> 
> To solve this problem, switch to printk_safe mode before printing warning
> message, this will redirect all printk()-s to a special per-CPU buffer,
> which will be flushed later from a safe context (irq work), and this
> deadlock problem can be avoided. The proper API to use should be
> printk_deferred_enter()/printk_deferred_exit() if we want to deferred the
> printing [2].
> 
> This patch also fixes other similar case that need to use the printk
> deferring [3].
> 
> [1]
> https://lore.kernel.org/all/20250730094914.566582-1-gubowen5@huawei.com/
> [2]
> https://lore.kernel.org/all/5ca375cd-4a20-4807-b897-68b289626550@redhat.com/
> [3]
> https://lore.kernel.org/all/aJCir5Wh362XzLSx@arm.com/
> ====================
> 
> Cc: stable@vger.kernel.org # 5.10
> Signed-off-by: Gu Bowen <gubowen5@huawei.com>

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-13  8:53 [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning Gu Bowen
  2025-08-13 16:22 ` Catalin Marinas
@ 2025-08-13 22:56 ` Andrew Morton
  2025-08-14  2:33   ` Gu Bowen
  1 sibling, 1 reply; 11+ messages in thread
From: Andrew Morton @ 2025-08-13 22:56 UTC (permalink / raw)
  To: Gu Bowen
  Cc: Catalin Marinas, stable, linux-mm, Waiman Long, Breno Leitao,
	John Ogness, Lu Jialin

On Wed, 13 Aug 2025 16:53:10 +0800 Gu Bowen <gubowen5@huawei.com> wrote:

> Our syztester report the lockdep WARNING [1]. kmemleak_scan_thread()
> invokes scan_block() which may invoke a nomal printk() to print warning
> message. This can cause a deadlock in the scenario reported below:
> 
>        CPU0                    CPU1
>        ----                    ----
>   lock(kmemleak_lock);
>                                lock(&port->lock);
>                                lock(kmemleak_lock);
>   lock(console_owner);
> 
> To solve this problem, switch to printk_safe mode before printing warning
> message, this will redirect all printk()-s to a special per-CPU buffer,
> which will be flushed later from a safe context (irq work), and this
> deadlock problem can be avoided. The proper API to use should be
> printk_deferred_enter()/printk_deferred_exit() if we want to deferred the
> printing [2].
> 
> This patch also fixes other similar case that need to use the printk
> deferring [3].
> 
> ...
>
> --- a/mm/kmemleak.c
> +++ b/mm/kmemleak.c

I'm not sure which kernel version this was against, but kmemleak.c has
changed quite a lot.

Could we please see a patch against a latest kernel version?  Linus
mainline will suit.

Thanks.



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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-13 22:56 ` Andrew Morton
@ 2025-08-14  2:33   ` Gu Bowen
  2025-08-14 13:08     ` Catalin Marinas
  0 siblings, 1 reply; 11+ messages in thread
From: Gu Bowen @ 2025-08-14  2:33 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Catalin Marinas, stable, linux-mm, Waiman Long, Breno Leitao,
	John Ogness, Lu Jialin

On 8/14/2025 6:56 AM, Andrew Morton wrote:
> 
> I'm not sure which kernel version this was against, but kmemleak.c has
> changed quite a lot.
> 
> Could we please see a patch against a latest kernel version?  Linus
> mainline will suit.
> 
> Thanks.
> 

I discovered this issue in kernel version 5.10. Afterwards, I reviewed 
the code of the mainline version and found that this deadlock path no 
longer exists due to the refactoring of console_lock in v6.2-rc1. For 
details on the refactoring, you can refer to this link :
https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/. 
Therefore, theoretically, this issue existed before the refactoring of 
console_lock.

Best Regards,
Guber


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-14  2:33   ` Gu Bowen
@ 2025-08-14 13:08     ` Catalin Marinas
  2025-08-14 13:56       ` Greg Kroah-Hartman
  2025-08-18  2:24       ` Gu Bowen
  0 siblings, 2 replies; 11+ messages in thread
From: Catalin Marinas @ 2025-08-14 13:08 UTC (permalink / raw)
  To: Gu Bowen
  Cc: Andrew Morton, stable, linux-mm, Waiman Long, Breno Leitao,
	John Ogness, Lu Jialin, Greg Kroah-Hartman

On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
> On 8/14/2025 6:56 AM, Andrew Morton wrote:
> > I'm not sure which kernel version this was against, but kmemleak.c has
> > changed quite a lot.
> > 
> > Could we please see a patch against a latest kernel version?  Linus
> > mainline will suit.
> > 
> > Thanks.
> 
> I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
> code of the mainline version and found that this deadlock path no longer
> exists due to the refactoring of console_lock in v6.2-rc1. For details on
> the refactoring, you can refer to this link :
> https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
> Therefore, theoretically, this issue existed before the refactoring of
> console_lock.

Oh, so you can no longer hit this issue with mainline. This wasn't
mentioned (or I missed it) in the commit log.

So this would be a stable-only fix that does not have a correspondent
upstream. Adding Greg for his opinion.

-- 
Catalin


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-14 13:08     ` Catalin Marinas
@ 2025-08-14 13:56       ` Greg Kroah-Hartman
  2025-08-14 14:38         ` Catalin Marinas
  2025-08-18  2:24       ` Gu Bowen
  1 sibling, 1 reply; 11+ messages in thread
From: Greg Kroah-Hartman @ 2025-08-14 13:56 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: Gu Bowen, Andrew Morton, stable, linux-mm, Waiman Long,
	Breno Leitao, John Ogness, Lu Jialin

On Thu, Aug 14, 2025 at 02:08:35PM +0100, Catalin Marinas wrote:
> On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
> > On 8/14/2025 6:56 AM, Andrew Morton wrote:
> > > I'm not sure which kernel version this was against, but kmemleak.c has
> > > changed quite a lot.
> > > 
> > > Could we please see a patch against a latest kernel version?  Linus
> > > mainline will suit.
> > > 
> > > Thanks.
> > 
> > I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
> > code of the mainline version and found that this deadlock path no longer
> > exists due to the refactoring of console_lock in v6.2-rc1. For details on
> > the refactoring, you can refer to this link :
> > https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
> > Therefore, theoretically, this issue existed before the refactoring of
> > console_lock.
> 
> Oh, so you can no longer hit this issue with mainline. This wasn't
> mentioned (or I missed it) in the commit log.
> 
> So this would be a stable-only fix that does not have a correspondent
> upstream. Adding Greg for his opinion.

Why not take the upstream changes instead?


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-14 13:56       ` Greg Kroah-Hartman
@ 2025-08-14 14:38         ` Catalin Marinas
  2025-08-14 14:54           ` Greg Kroah-Hartman
  0 siblings, 1 reply; 11+ messages in thread
From: Catalin Marinas @ 2025-08-14 14:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Gu Bowen, Andrew Morton, stable, linux-mm, Waiman Long,
	Breno Leitao, John Ogness, Lu Jialin

On Thu, Aug 14, 2025 at 03:56:58PM +0200, Greg Kroah-Hartman wrote:
> On Thu, Aug 14, 2025 at 02:08:35PM +0100, Catalin Marinas wrote:
> > On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
> > > On 8/14/2025 6:56 AM, Andrew Morton wrote:
> > > > I'm not sure which kernel version this was against, but kmemleak.c has
> > > > changed quite a lot.
> > > > 
> > > > Could we please see a patch against a latest kernel version?  Linus
> > > > mainline will suit.
> > > > 
> > > > Thanks.
> > > 
> > > I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
> > > code of the mainline version and found that this deadlock path no longer
> > > exists due to the refactoring of console_lock in v6.2-rc1. For details on
> > > the refactoring, you can refer to this link :
> > > https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
> > > Therefore, theoretically, this issue existed before the refactoring of
> > > console_lock.
> > 
> > Oh, so you can no longer hit this issue with mainline. This wasn't
> > mentioned (or I missed it) in the commit log.
> > 
> > So this would be a stable-only fix that does not have a correspondent
> > upstream. Adding Greg for his opinion.
> 
> Why not take the upstream changes instead?

Gu reckons there are 40 patches -
https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/

I haven't checked what ended in mainline and whether we could do with
fewer backports.

-- 
Catalin


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-14 14:38         ` Catalin Marinas
@ 2025-08-14 14:54           ` Greg Kroah-Hartman
  2025-08-14 17:00             ` Catalin Marinas
  0 siblings, 1 reply; 11+ messages in thread
From: Greg Kroah-Hartman @ 2025-08-14 14:54 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: Gu Bowen, Andrew Morton, stable, linux-mm, Waiman Long,
	Breno Leitao, John Ogness, Lu Jialin

On Thu, Aug 14, 2025 at 03:38:23PM +0100, Catalin Marinas wrote:
> On Thu, Aug 14, 2025 at 03:56:58PM +0200, Greg Kroah-Hartman wrote:
> > On Thu, Aug 14, 2025 at 02:08:35PM +0100, Catalin Marinas wrote:
> > > On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
> > > > On 8/14/2025 6:56 AM, Andrew Morton wrote:
> > > > > I'm not sure which kernel version this was against, but kmemleak.c has
> > > > > changed quite a lot.
> > > > > 
> > > > > Could we please see a patch against a latest kernel version?  Linus
> > > > > mainline will suit.
> > > > > 
> > > > > Thanks.
> > > > 
> > > > I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
> > > > code of the mainline version and found that this deadlock path no longer
> > > > exists due to the refactoring of console_lock in v6.2-rc1. For details on
> > > > the refactoring, you can refer to this link :
> > > > https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
> > > > Therefore, theoretically, this issue existed before the refactoring of
> > > > console_lock.
> > > 
> > > Oh, so you can no longer hit this issue with mainline. This wasn't
> > > mentioned (or I missed it) in the commit log.
> > > 
> > > So this would be a stable-only fix that does not have a correspondent
> > > upstream. Adding Greg for his opinion.
> > 
> > Why not take the upstream changes instead?
> 
> Gu reckons there are 40 patches -
> https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/

40 really isn't that much overall, we've taken way more for much smaller
issues :)

> I haven't checked what ended in mainline and whether we could do with
> fewer backports.

I'll leave that all up to the people who are still wanting these older
kernels.

thanks,

greg k-h


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-14 14:54           ` Greg Kroah-Hartman
@ 2025-08-14 17:00             ` Catalin Marinas
  0 siblings, 0 replies; 11+ messages in thread
From: Catalin Marinas @ 2025-08-14 17:00 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Gu Bowen, Andrew Morton, stable, linux-mm, Waiman Long,
	Breno Leitao, John Ogness, Lu Jialin

On Thu, Aug 14, 2025 at 04:54:33PM +0200, Greg Kroah-Hartman wrote:
> On Thu, Aug 14, 2025 at 03:38:23PM +0100, Catalin Marinas wrote:
> > On Thu, Aug 14, 2025 at 03:56:58PM +0200, Greg Kroah-Hartman wrote:
> > > On Thu, Aug 14, 2025 at 02:08:35PM +0100, Catalin Marinas wrote:
> > > > On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
> > > > > On 8/14/2025 6:56 AM, Andrew Morton wrote:
> > > > > > I'm not sure which kernel version this was against, but kmemleak.c has
> > > > > > changed quite a lot.
> > > > > > 
> > > > > > Could we please see a patch against a latest kernel version?  Linus
> > > > > > mainline will suit.
> > > > > > 
> > > > > > Thanks.
> > > > > 
> > > > > I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
> > > > > code of the mainline version and found that this deadlock path no longer
> > > > > exists due to the refactoring of console_lock in v6.2-rc1. For details on
> > > > > the refactoring, you can refer to this link :
> > > > > https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
> > > > > Therefore, theoretically, this issue existed before the refactoring of
> > > > > console_lock.
> > > > 
> > > > Oh, so you can no longer hit this issue with mainline. This wasn't
> > > > mentioned (or I missed it) in the commit log.
> > > > 
> > > > So this would be a stable-only fix that does not have a correspondent
> > > > upstream. Adding Greg for his opinion.
> > > 
> > > Why not take the upstream changes instead?
> > 
> > Gu reckons there are 40 patches -
> > https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/
> 
> 40 really isn't that much overall, we've taken way more for much smaller
> issues :)

TBH, I'm not sure it's worth it. That's a potential deadlock on a rare
error condition (a kmemleak bug or something wrong with the sites
calling the kmemleak API).

> > I haven't checked what ended in mainline and whether we could do with
> > fewer backports.
> 
> I'll leave that all up to the people who are still wanting these older
> kernels.

Good point. Thanks for the advice ;).

-- 
Catalin


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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-14 13:08     ` Catalin Marinas
  2025-08-14 13:56       ` Greg Kroah-Hartman
@ 2025-08-18  2:24       ` Gu Bowen
  2025-08-18  5:54         ` Greg Kroah-Hartman
  1 sibling, 1 reply; 11+ messages in thread
From: Gu Bowen @ 2025-08-18  2:24 UTC (permalink / raw)
  To: Catalin Marinas
  Cc: Andrew Morton, stable, linux-mm, Waiman Long, Breno Leitao,
	John Ogness, Lu Jialin, Greg Kroah-Hartman



On 8/14/2025 9:08 PM, Catalin Marinas wrote:
> On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
>> On 8/14/2025 6:56 AM, Andrew Morton wrote:
>>> I'm not sure which kernel version this was against, but kmemleak.c has
>>> changed quite a lot.
>>>
>>> Could we please see a patch against a latest kernel version?  Linus
>>> mainline will suit.
>>>
>>> Thanks.
>>
>> I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
>> code of the mainline version and found that this deadlock path no longer
>> exists due to the refactoring of console_lock in v6.2-rc1. For details on
>> the refactoring, you can refer to this link :
>> https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
>> Therefore, theoretically, this issue existed before the refactoring of
>> console_lock.
> 
> Oh, so you can no longer hit this issue with mainline. This wasn't
> mentioned (or I missed it) in the commit log.
> 
> So this would be a stable-only fix that does not have a correspondent
> upstream. Adding Greg for his opinion.
> 

I have discovered that I made a mistake, this fix patch should be merged 
into the mainline. Since we have identified two types of deadlocks, the 
AA deadlock [1] and the ABBA deadlock[2], the latter's deadlock path no 
longer exists in the mainline due to the 40 patches that refactored 
console_lock. However, the AA deadlock issue persists, so I believe this 
fix should be applied to the mainline.

[1] 
https://lore.kernel.org/all/20250731-kmemleak_lock-v1-1-728fd470198f@debian.org/#t
[2] https://lore.kernel.org/all/20250730094914.566582-1-gubowen5@huawei.com/

Best Regards,
Guber



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

* Re: [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning
  2025-08-18  2:24       ` Gu Bowen
@ 2025-08-18  5:54         ` Greg Kroah-Hartman
  0 siblings, 0 replies; 11+ messages in thread
From: Greg Kroah-Hartman @ 2025-08-18  5:54 UTC (permalink / raw)
  To: Gu Bowen
  Cc: Catalin Marinas, Andrew Morton, stable, linux-mm, Waiman Long,
	Breno Leitao, John Ogness, Lu Jialin

On Mon, Aug 18, 2025 at 10:24:38AM +0800, Gu Bowen wrote:
> 
> 
> On 8/14/2025 9:08 PM, Catalin Marinas wrote:
> > On Thu, Aug 14, 2025 at 10:33:56AM +0800, Gu Bowen wrote:
> > > On 8/14/2025 6:56 AM, Andrew Morton wrote:
> > > > I'm not sure which kernel version this was against, but kmemleak.c has
> > > > changed quite a lot.
> > > > 
> > > > Could we please see a patch against a latest kernel version?  Linus
> > > > mainline will suit.
> > > > 
> > > > Thanks.
> > > 
> > > I discovered this issue in kernel version 5.10. Afterwards, I reviewed the
> > > code of the mainline version and found that this deadlock path no longer
> > > exists due to the refactoring of console_lock in v6.2-rc1. For details on
> > > the refactoring, you can refer to this link :
> > > https://lore.kernel.org/all/20221116162152.193147-1-john.ogness@linutronix.de/.
> > > Therefore, theoretically, this issue existed before the refactoring of
> > > console_lock.
> > 
> > Oh, so you can no longer hit this issue with mainline. This wasn't
> > mentioned (or I missed it) in the commit log.
> > 
> > So this would be a stable-only fix that does not have a correspondent
> > upstream. Adding Greg for his opinion.
> > 
> 
> I have discovered that I made a mistake, this fix patch should be merged
> into the mainline. Since we have identified two types of deadlocks, the AA
> deadlock [1] and the ABBA deadlock[2], the latter's deadlock path no longer
> exists in the mainline due to the 40 patches that refactored console_lock.
> However, the AA deadlock issue persists, so I believe this fix should be
> applied to the mainline.
> 
> [1] https://lore.kernel.org/all/20250731-kmemleak_lock-v1-1-728fd470198f@debian.org/#t
> [2] https://lore.kernel.org/all/20250730094914.566582-1-gubowen5@huawei.com/

Pleasae submit it as a normal patch then.

thanks,

greg k-h


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

end of thread, other threads:[~2025-08-18  5:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-13  8:53 [PATCH v3] mm: Fix possible deadlock in console_trylock_spinning Gu Bowen
2025-08-13 16:22 ` Catalin Marinas
2025-08-13 22:56 ` Andrew Morton
2025-08-14  2:33   ` Gu Bowen
2025-08-14 13:08     ` Catalin Marinas
2025-08-14 13:56       ` Greg Kroah-Hartman
2025-08-14 14:38         ` Catalin Marinas
2025-08-14 14:54           ` Greg Kroah-Hartman
2025-08-14 17:00             ` Catalin Marinas
2025-08-18  2:24       ` Gu Bowen
2025-08-18  5:54         ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).