* [PATCH] Bluetooth: hci_sync: add conditional locking annotations
@ 2026-07-25 10:02 Pauli Virtanen
2026-07-25 10:50 ` bluez.test.bot
0 siblings, 1 reply; 2+ messages in thread
From: Pauli Virtanen @ 2026-07-25 10:02 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Pauli Virtanen
Add context analysis annotations to functions doing conditional locking,
to suppress analysis warnings.
Fixes: a3ad01d51d4b ("Bluetooth: hci_sync: Fix advertising data UAFs")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
---
net/bluetooth/hci_sync.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c
index d5554fbf3129..f5545f270f09 100644
--- a/net/bluetooth/hci_sync.c
+++ b/net/bluetooth/hci_sync.c
@@ -1255,6 +1255,7 @@ hci_set_ext_adv_params_sync(struct hci_dev *hdev, u8 instance,
}
static int hci_set_ext_adv_data_sync(struct hci_dev *hdev, u8 instance)
+ __context_unsafe(/* conditional locking */)
{
DEFINE_FLEX(struct hci_cp_le_set_ext_adv_data, pdu, data, length,
HCI_MAX_EXT_AD_LENGTH);
@@ -1343,6 +1344,7 @@ int hci_update_adv_data_sync(struct hci_dev *hdev, u8 instance)
}
int hci_setup_ext_adv_instance_sync(struct hci_dev *hdev, u8 instance)
+ __context_unsafe(/* conditional locking */)
{
struct hci_cp_le_set_ext_adv_params cp;
struct hci_rp_le_set_ext_adv_params rp;
@@ -1499,6 +1501,7 @@ int hci_setup_ext_adv_instance_sync(struct hci_dev *hdev, u8 instance)
}
static int hci_set_ext_scan_rsp_data_sync(struct hci_dev *hdev, u8 instance)
+ __context_unsafe(/* conditional locking */)
{
DEFINE_FLEX(struct hci_cp_le_set_ext_scan_rsp_data, pdu, data, length,
HCI_MAX_EXT_AD_LENGTH);
@@ -1552,6 +1555,7 @@ static int hci_set_ext_scan_rsp_data_sync(struct hci_dev *hdev, u8 instance)
}
static int __hci_set_scan_rsp_data_sync(struct hci_dev *hdev, u8 instance)
+ __context_unsafe(/* conditional locking */)
{
struct hci_cp_le_set_scan_rsp_data cp;
u8 len;
@@ -1693,6 +1697,7 @@ static int hci_set_per_adv_params_sync(struct hci_dev *hdev, u8 instance,
}
static int hci_set_per_adv_data_sync(struct hci_dev *hdev, u8 instance)
+ __context_unsafe(/* conditional locking */)
{
DEFINE_FLEX(struct hci_cp_le_set_per_adv_data, pdu, data, length,
HCI_MAX_PER_AD_LENGTH);
--
2.55.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* RE: Bluetooth: hci_sync: add conditional locking annotations
2026-07-25 10:02 [PATCH] Bluetooth: hci_sync: add conditional locking annotations Pauli Virtanen
@ 2026-07-25 10:50 ` bluez.test.bot
0 siblings, 0 replies; 2+ messages in thread
From: bluez.test.bot @ 2026-07-25 10:50 UTC (permalink / raw)
To: linux-bluetooth, pav
[-- Attachment #1: Type: text/plain, Size: 3295 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/project/bluetooth/list/?series=1134346
---Test result---
Test Summary:
CheckPatch PASS 0.75 seconds
VerifyFixes PASS 0.14 seconds
VerifySignedoff PASS 0.14 seconds
GitLint PASS 0.34 seconds
SubjectPrefix PASS 0.13 seconds
BuildKernel PASS 25.64 seconds
CheckAllWarning PASS 27.99 seconds
CheckSparse PASS 26.86 seconds
BuildKernel32 PASS 25.05 seconds
CheckKernelLLVM SKIP 0.00 seconds
TestRunnerSetup PASS 463.95 seconds
TestRunner_l2cap-tester PASS 61.12 seconds
TestRunner_iso-tester FAIL 88.17 seconds
TestRunner_bnep-tester PASS 19.14 seconds
TestRunner_mgmt-tester FAIL 224.05 seconds
TestRunner_rfcomm-tester PASS 26.54 seconds
TestRunner_sco-tester PASS 32.40 seconds
TestRunner_ioctl-tester PASS 27.39 seconds
TestRunner_mesh-tester FAIL 27.09 seconds
TestRunner_smp-tester PASS 24.68 seconds
TestRunner_userchan-tester PASS 20.87 seconds
TestRunner_6lowpan-tester PASS 24.96 seconds
IncrementalBuild PASS 25.50 seconds
Details
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found
##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:
Total: 141, Passed: 134 (95.0%), Failed: 7, Not Run: 0
Failed Test Cases
ISO Disconnect - Success Timed out 2.272 seconds
ISO Reconnect - Success Timed out 1.992 seconds
ISO Reconnect Send and Receive #16 - Success Timed out 1.998 seconds
ISO Reconnect AC 6(i) - Success Timed out 2.408 seconds
ISO Reconnect AC 6(ii) - Success Timed out 1.995 seconds
ISO Broadcaster Reconnect - Success Timed out 1.937 seconds
ISO Broadcaster Receiver Defer Reconnect - Success Timed out 2.361 seconds
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 494, Passed: 487 (98.6%), Failed: 3, Not Run: 4
Failed Test Cases
Read Exp Feature - Success Failed 0.260 seconds
LL Privacy - Start Discovery 1 (Disable RL) Failed 0.404 seconds
LL Privacy - Unpair 1 Timed out 1.904 seconds
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0
Failed Test Cases
Mesh - Send cancel - 1 Timed out 1.913 seconds
Mesh - Send cancel - 2 Timed out 1.985 seconds
https://github.com/bluez/bluetooth-next/pull/494
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-25 10:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-25 10:02 [PATCH] Bluetooth: hci_sync: add conditional locking annotations Pauli Virtanen
2026-07-25 10:50 ` bluez.test.bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox