Patch "irq/generic-chip: Don't replace domain's name" has been added to the 4.13-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
irq/generic-chip: Don't replace domain's name
to the 4.13-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:
irq-generic-chip-don-t-replace-domain-s-name.patch
and it can be found in the queue-4.13 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
72364d320644c12948786962673772f271039a4aMon Sep 17 00:00:00 2001
From: Jeffy Chen <[email protected]>
Date: Thu, 28 Sep 2017 12:37:31 +0800
Subject: irq/generic-chip: Don't replace domain's name
From: Jeffy Chen <[email protected]>
commit 72364d320644c12948786962673772f271039a4a upstream.
When generic irq chips are allocated for an irq domain the domain name is set to the irq chip name. That was done to have named domains before the recent changes which enforce domain naming were done.
Since then the overwrite causes a memory leak when the domain name is dynamically allocated and even worse it would cause the domain free code to free the wrong name pointer, which might point to a constant.
Remove the name assignment to prevent this.
--- kernel/irq/generic-chip.c | 1 - 1 file changed, 1 deletion(-)
kernel/irq/generic-chip.c +0 -1
@@ -322,7 +322,6 @@ int __irq_alloc_domain_generic_chips(str/* Calc pointer to the next generic chip */ tmp +=sizeof (*gc) + num_ct *sizeof (struct irq_chip_type ); } - d->name = name;return 0 ; }EXPORT_SYMBOL_GPL (__irq_alloc_domain_generic_chips);
Patches currently in stable-queue which might be from [email protected] are
queue-4.13/irq-generic-chip-don-t-replace-domain-s-name.patch