* [PATCH] Bluetooth: btintel_pcie: guard debug dump before hdev setup
@ 2026-10-13 5:31 ChunAn Wu
2026-10-13 11:49 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: ChunAn Wu @ 2026-10-13 5:31 UTC (permalink / raw)
To: linux-bluetooth; +Cc: marcel, luiz.dentz, linux-kernel, stable
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.
Cc: stable@vger.kernel.org
Signed-off-by: ChunAn Wu <an.wu@canonical.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: Bluetooth: btintel_pcie: guard debug dump before hdev setup
2026-10-13 5:31 [PATCH] Bluetooth: btintel_pcie: guard debug dump before hdev setup ChunAn Wu
@ 2026-10-13 11:49 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2026-10-13 11:49 UTC (permalink / raw)
To: linux-bluetooth, an.wu
[-- Attachment #1: Type: text/plain, Size: 1737 bytes --]
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/series/1184381/
---Test result---
Test Summary:
CheckPatch FAIL 0.52 seconds
VerifyFixes PASS 0.08 seconds
VerifySignedoff PASS 0.08 seconds
GitLint PASS 0.22 seconds
SubjectPrefix PASS 0.08 seconds
BuildKernel PASS 22.87 seconds
CheckAllWarning PASS 27.82 seconds
CheckSparse PASS 30.11 seconds
BuildKernel32 PASS 25.65 seconds
CheckKernelLLVM PASS 26.78 seconds
TestRunnerSetup PASS 533.63 seconds
IncrementalBuild PASS 23.18 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script
Output:
Bluetooth: btintel_pcie: guard debug dump before hdev setup
WARNING: The commit message has 'stable@', perhaps it also needs a 'Fixes:' tag?
total: 0 errors, 1 warnings, 18 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
/home/runner/work/bluetooth-next/bluetooth-next/src/patch/14883827.patch has style problems, please review.
NOTE: Ignored message types: UNKNOWN_COMMIT_ID
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
https://github.com/bluez/bluetooth-next/pull/911
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-10-13 11:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13 5:31 [PATCH] Bluetooth: btintel_pcie: guard debug dump before hdev setup ChunAn Wu
2026-10-13 11:49 ` bluez.test.bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.