lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <86ttffy0wf.wl-maz@kernel.org>
Date: Tue, 20 Aug 2024 10:54:56 +0100
From: Marc Zyngier <maz@...nel.org>
To: Ma Ke <make24@...as.ac.cn>
Cc: tglx@...utronix.de,
	Suravee.Suthikulpanit@....com,
	akpm@...ux-foundation.org,
	linux-arm-kernel@...ts.infradead.org,
	linux-kernel@...r.kernel.org,
	stable@...r.kernel.org
Subject: Re: [PATCH v3] irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init

On Tue, 20 Aug 2024 10:28:43 +0100,
Ma Ke <make24@...as.ac.cn> wrote:
> 
> We fail to perform an of_node_put() when of_address_to_resource()
> fails, leading to a refcount leak.
> 
> Address this by moving the error handling path outside of the loop and
> making it common to all failure modes.
> 
> Cc: stable@...r.kernel.org
> Fixes: 4266ab1a8ff5 ("irqchip/gic-v2m: Refactor to prepare for ACPI support")
> Signed-off-by: Ma Ke <make24@...as.ac.cn>

Reviewed-by: Marc Zyngier <maz@...nel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ