From: ChunAn Wu <an.wu@canonical.com>
To: linux-bluetooth@vger.kernel.org, marcel@holtmann.org,
luiz.dentz@gmail.com, kiran.k@intel.com,
chandrashekar.devegowda@intel.com, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] Bluetooth: btintel_pcie: guard debug dump before hdev setup
Date: Thu, 29 Oct 2026 02:43:37 +0800 [thread overview]
Message-ID: <auJAzRIrhM3x1WEW@an-XPS-15-9520> (raw)
In-Reply-To: <20261013125241.1230408-1-an.wu@canonical.com>
On Tue, Oct 13, 2026 at 08:52:41PM +0800, ChunAn Wu wrote:
> An MSI-X interrupt can reach the debug-dump helper before
> btintel_pcie_setup_hdev() initializes data->hdev. The helper then
> passes NULL to hci_get_drvdata() and crashes the interrupt thread.
>
> Return early when hdev is not available. This covers the GP1 and GP0
> error paths while leaving interrupt handling unchanged.
>
> Fixes: 190377500fde ("Bluetooth: btintel_pcie: Dump debug registers on error")
> Cc: stable@vger.kernel.org
> Signed-off-by: ChunAn Wu <an.wu@canonical.com>
> ---
> Changes in v2:
> - Add the missing Fixes: tag required for the stable CC.
>
> ---
> drivers/bluetooth/btintel_pcie.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
> index ac7193400769..8d7927bd75b6 100644
> --- a/drivers/bluetooth/btintel_pcie.c
> +++ b/drivers/bluetooth/btintel_pcie.c
> @@ -297,12 +297,17 @@ static void btintel_pcie_prepare_tx(struct txq *txq, u16 tfd_index,
>
> static inline void btintel_pcie_dump_debug_registers(struct hci_dev *hdev)
> {
> - struct btintel_pcie_data *data = hci_get_drvdata(hdev);
> + struct btintel_pcie_data *data;
> u16 cr_hia, cr_tia;
> u32 reg, mbox_reg;
> struct sk_buff *skb;
> u8 buf[80];
>
> + if (!hdev)
> + return;
> +
> + data = hci_get_drvdata(hdev);
> +
> skb = alloc_skb(1024, GFP_ATOMIC);
> if (!skb)
> return;
>
> base-commit: 24a19b953e2a3d0ea5a8c4951a0ab8f32720c907
> --
> 2.34.1
Hi Maintainers,
Could you kindly help me to review the patch
Many thanks
BR
An
prev parent reply other threads:[~2026-10-28 18:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 12:52 ChunAn Wu
2026-10-28 18:43 ` ChunAn Wu [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=auJAzRIrhM3x1WEW@an-XPS-15-9520 \
--to=an.wu@canonical.com \
--cc=chandrashekar.devegowda@intel.com \
--cc=kiran.k@intel.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=stable@vger.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
all inboxes | Powered by JetHome®