From: sashiko-bot@kernel.org
To: "Hongyan Xu" <getshell@seu.edu.cn>, linux-pci@vger.kernel.org
Subject: Re: [PATCH v2] PCI: apple: Prevent module unloading without IRQ teardown
Date: Sun, 15 Nov 2026 11:56:17 +0000 [thread overview]
Message-ID: <sashiko-outbox-215462@kernel.org> (raw)
In-Reply-To: <179474326811.103840.15695658964160156282@seu.edu.cn>
> The driver suppresses userspace bind attributes but still registers
> a module exit callback. Unloading it leaves the PCI hierarchy and
> unmanaged IRQ domains and handlers referring to released resources
> and unloaded driver code. Removing only the root bus does not make
> the remaining IRQ state safe.
>
> Register the driver without an exit callback so a normally loaded
> module cannot be unloaded. This follows the maintainer's suggested
> first step while complete controller removal remains unsupported.
> Keep the tristate option, so loading the driver as a module remains
> possible. This change addresses module unload, not dynamic removal
> of the platform device or existing probe-error cleanup.
>
> Found by the author's in-house static analysis tool.
>
> Fixes: 1e33888fbe44 ("PCI: apple: Add initial hardware bring-up")
> Cc: stable@vger.kernel.org
> Suggested-by: Marc Zyngier <maz@kernel.org>
> Link: https://lore.kernel.org/all/87mrrj8ku6.wl-maz@kernel.org/
> Signed-off-by: Hongyan Xu <getshell@seu.edu.cn>
> Signed-off-by: Zehao Gao <gaozehao@iie.ac.cn>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/179474326811.103840.15695658964160156282@seu.edu.cn?part=1
prev parent reply other threads:[~2026-11-15 11:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-15 11:47 [PATCH v2] PCI: apple: Prevent module unloading without IRQ teardown Hongyan Xu
2026-11-15 11:56 ` sashiko-bot [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=sashiko-outbox-215462@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=getshell@seu.edu.cn \
--cc=linux-pci@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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