From: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
To: Lee Jones <lee@kernel.org>
Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
Bjorn Andersson <andersson@kernel.org>,
Jassi Brar <jassisinghbrar@gmail.com>,
Kumar Gutta <vnkgutta@codeaurora.org>,
linux-arm-msm@vger.kernel.org,
Manivannan Sadhasivam <mani@kernel.org>,
Raghavendra Rao Ananta <rananta@codeaurora.org>
Subject: Re: [PATCH 06/10] mailbox: qcom-ipcc: Remove IRQ domain via devm to avoid ISR use-after-free
Date: Thu, 3 Dec 2026 11:39:34 +0100 [thread overview]
Message-ID: <ea010cdd-b72f-473d-975b-d95a2df07e70@oss.qualcomm.com> (raw)
In-Reply-To: <461b81989c852bbc9f1340e98f81dba49b828667.1796286447.git.lee@kernel.org>
On 12/3/26 9:28 AM, Lee Jones wrote:
> qcom_ipcc_probe() registers qcom_ipcc_irq_fn() using devm_request_irq(),
> but qcom_ipcc_remove() manually removes ipcc->irq_domain before devres
> frees the interrupt. If an interrupt fires during unbind,
> qcom_ipcc_irq_fn() dereferences the freed IRQ domain.
>
> Register irq_domain_remove() via devm_add_action_or_reset() immediately
> after irq_domain_create_tree() and drop qcom_ipcc_remove() so devres
> tears down the IRQ, mailbox controller, and IRQ domain in strict reverse
> order.
>
> Fixes: fa74a0257f45 ("mailbox: Add support for Qualcomm IPCC")
> Closes: https://sashiko.dev/#/bug/linux-f9f9c7a3-ce00-42b7-9a78-843c2f3712eb
> Cc: stable@vger.kernel.org
> Signed-off-by: Lee Jones <lee@kernel.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
next prev parent reply other threads:[~2026-12-03 10:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 8:28 [PATCH 00/10] mailbox: Fix Critical and High issues reported by Sashiko Lee Jones
2026-12-03 8:28 ` [PATCH 01/10] mailbox: qcom-ipcc: Skip of_node_put() on phandle parse failure Lee Jones
2026-12-03 10:38 ` Konrad Dybcio
2026-12-03 8:28 ` [PATCH 02/10] mailbox: ti-msgmgr: Use unsigned IDs in ti_msgmgr_of_xlate() Lee Jones
2026-12-03 8:28 ` [PATCH 03/10] mailbox: riscv-sbi-mpxy: Protect per-CPU shmem access with irqsave Lee Jones
2026-12-03 14:32 ` Rahul Pathak
2026-12-03 15:05 ` Lee Jones
2026-12-03 8:28 ` [PATCH 04/10] mailbox: riscv-sbi-mpxy: Validate shmem bounds in message send helpers Lee Jones
2026-12-03 8:28 ` [PATCH 05/10] mailbox: bcm-pdc: Unregister mailbox controller before destroying DMA pools Lee Jones
2026-12-03 8:28 ` [PATCH 06/10] mailbox: qcom-ipcc: Remove IRQ domain via devm to avoid ISR use-after-free Lee Jones
2026-12-03 10:39 ` Konrad Dybcio [this message]
2026-12-03 8:28 ` [PATCH 07/10] mailbox: sun6i-msgbox: Free IRQ before disabling clock on teardown Lee Jones
2026-12-03 13:43 ` Chen-Yu Tsai
2026-12-03 8:28 ` [PATCH 08/10] mailbox: sun6i-msgbox: Synchronise IRQ during channel shutdown Lee Jones
2026-12-03 13:49 ` Chen-Yu Tsai
2026-12-03 8:28 ` [PATCH 09/10] mailbox: arm_mhu_db: Initialise channel registers before controller registration Lee Jones
2026-12-03 9:40 ` Sudeep Holla
2026-12-03 8:28 ` [PATCH 10/10] mailbox: ti-msgmgr: Return -EIO on queue error in ti_msgmgr_send_data() Lee Jones
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=ea010cdd-b72f-473d-975b-d95a2df07e70@oss.qualcomm.com \
--to=konrad.dybcio@oss.qualcomm.com \
--cc=andersson@kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=lee@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mani@kernel.org \
--cc=rananta@codeaurora.org \
--cc=stable@vger.kernel.org \
--cc=vnkgutta@codeaurora.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