* [PATCH v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION
@ 2025-05-28 18:53 Luiz Augusto von Dentz
2025-05-28 19:31 ` [v1] " bluez.test.bot
2025-05-30 17:30 ` [PATCH v1] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-05-28 18:53 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Depending on the security set the response to L2CAP_LE_CONN_REQ shall be
just L2CAP_CR_LE_ENCRYPTION if only encryption when BT_SECURITY_MEDIUM
is selected since that means security mode 2 which doesn't require
authentication which is something that is covered in the qualification
test L2CAP/LE/CFC/BV-25-C.
Link: https://github.com/bluez/bluez/issues/1270
Fixes: 27e2d4c8d28b ("Bluetooth: Add basic LE L2CAP connect request receiving support")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
net/bluetooth/l2cap_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 042d3ac3b4a3..a5bde5db58ef 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -4870,7 +4870,8 @@ static int l2cap_le_connect_req(struct l2cap_conn *conn,
if (!smp_sufficient_security(conn->hcon, pchan->sec_level,
SMP_ALLOW_STK)) {
- result = L2CAP_CR_LE_AUTHENTICATION;
+ result = pchan->sec_level == BT_SECURITY_MEDIUM ?
+ L2CAP_CR_LE_ENCRYPTION : L2CAP_CR_LE_AUTHENTICATION;
chan = NULL;
goto response_unlock;
}
--
2.49.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION
2025-05-28 18:53 [PATCH v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION Luiz Augusto von Dentz
@ 2025-05-28 19:31 ` bluez.test.bot
2025-05-30 17:30 ` [PATCH v1] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2025-05-28 19:31 UTC (permalink / raw)
To: linux-bluetooth, luiz.dentz
[-- Attachment #1: Type: text/plain, Size: 2029 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=967104
---Test result---
Test Summary:
CheckPatch PENDING 0.34 seconds
GitLint PENDING 0.26 seconds
SubjectPrefix PASS 0.09 seconds
BuildKernel PASS 24.39 seconds
CheckAllWarning PASS 26.47 seconds
CheckSparse PASS 30.16 seconds
BuildKernel32 PASS 24.50 seconds
TestRunnerSetup PASS 459.26 seconds
TestRunner_l2cap-tester PASS 25.15 seconds
TestRunner_iso-tester PASS 39.53 seconds
TestRunner_bnep-tester PASS 5.91 seconds
TestRunner_mgmt-tester FAIL 132.26 seconds
TestRunner_rfcomm-tester PASS 9.50 seconds
TestRunner_sco-tester PASS 14.80 seconds
TestRunner_ioctl-tester PASS 9.89 seconds
TestRunner_mesh-tester PASS 7.14 seconds
TestRunner_smp-tester PASS 8.46 seconds
TestRunner_userchan-tester PASS 6.16 seconds
IncrementalBuild PENDING 0.43 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 490, Passed: 484 (98.8%), Failed: 2, Not Run: 4
Failed Test Cases
LL Privacy - Set Flags 1 (Add to RL) Failed 0.164 seconds
LL Privacy - Start Discovery 1 (Disable RL) Failed 0.200 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION
2025-05-28 18:53 [PATCH v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION Luiz Augusto von Dentz
2025-05-28 19:31 ` [v1] " bluez.test.bot
@ 2025-05-30 17:30 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-05-30 17:30 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Wed, 28 May 2025 14:53:11 -0400 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> Depending on the security set the response to L2CAP_LE_CONN_REQ shall be
> just L2CAP_CR_LE_ENCRYPTION if only encryption when BT_SECURITY_MEDIUM
> is selected since that means security mode 2 which doesn't require
> authentication which is something that is covered in the qualification
> test L2CAP/LE/CFC/BV-25-C.
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION
https://git.kernel.org/bluetooth/bluetooth-next/c/a731614b3044
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-30 17:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 18:53 [PATCH v1] Bluetooth: L2CAP: Fix not responding with L2CAP_CR_LE_ENCRYPTION Luiz Augusto von Dentz
2025-05-28 19:31 ` [v1] " bluez.test.bot
2025-05-30 17:30 ` [PATCH v1] " patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox