Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>, tglx@kernel.org
Cc: bcm-kernel-feedback-list@broadcom.com, radu@rendec.net,
	cernekee@gmail.com, linux-mips@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] irqchip/bcm7038-l1: Fix potential stale handlers on probe failure
Date: Fri, 4 Dec 2026 20:04:10 -0800	[thread overview]
Message-ID: <7fbbcb99-45f7-4e0f-8205-dcb9d36f8014@broadcom.com> (raw)
In-Reply-To: <20261202-85cdeb22ca-irqchip-bcm7038@mail.sdu.edu.cn>



On 12/2/2026 3:29 AM, Guangshuo Li wrote:
> IRQ-domain creation can fail after the per-CPU parent handlers have been
> installed. Freeing the controller without clearing those handlers leaves
> them referencing freed storage.
> 
> Track each installed parent IRQ and detach its handler before releasing
> the controller. Also unwind partially initialized CPU resources.
> 
> This issue was found by our static analysis tool under development.
> 
> Fixes: 5f7f0317ed28 ("IRQCHIP: Add new driver for BCM7038-style level 1 interrupt controllers")
> Signed-off-by: Guangshuo Li <liguangshuo@mail.sdu.edu.cn>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian



      reply	other threads:[~2026-12-05  4:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 11:29 [PATCH] irqchip/bcm7038-l1: Fix potential stale handlers on probe failure Guangshuo Li
2026-12-05  4:04 ` Florian Fainelli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7fbbcb99-45f7-4e0f-8205-dcb9d36f8014@broadcom.com \
    --to=florian.fainelli@broadcom.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=cernekee@gmail.com \
    --cc=liguangshuo@mail.sdu.edu.cn \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@vger.kernel.org \
    --cc=radu@rendec.net \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox