Skip to content

[PW_SID:1104852] [v1] Bluetooth: MGMT: Fix backward compatibility with userspace#277

Open
BluezTestBot wants to merge 1 commit into
workflowfrom
1104852
Open

[PW_SID:1104852] [v1] Bluetooth: MGMT: Fix backward compatibility with userspace#277
BluezTestBot wants to merge 1 commit into
workflowfrom
1104852

Conversation

@BluezTestBot
Copy link
Copy Markdown

From: Luiz Augusto von Dentz luiz.von.dentz@intel.com

bluetoothd has a bug with makes it send extra bytes as part of
MGMT_OP_ADD_EXT_ADV_DATA which are now being checked to be the
exact the expected length, relax this so only when the expected
length is greater than the data length to cause an error since
that would result in accessing invalid memory, otherwise just
ignore the extra bytes.

Link: https://lore.kernel.org/linux-bluetooth/20260602204749.210857-1-luiz.dentz@gmail.com/T/#u
Fixes: d3f7d17960ed ("Bluetooth: MGMT: validate Add Extended Advertising Data length")
Signed-off-by: Luiz Augusto von Dentz luiz.von.dentz@intel.com

net/bluetooth/mgmt.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

bluetoothd has a bug with makes it send extra bytes as part of
MGMT_OP_ADD_EXT_ADV_DATA which are now being checked to be the
exact the expected length, relax this so only when the expected
length is greater than the data length to cause an error since
that would result in accessing invalid memory, otherwise just
ignore the extra bytes.

Link: https://lore.kernel.org/linux-bluetooth/20260602204749.210857-1-luiz.dentz@gmail.com/T/#u
Fixes: d3f7d17960ed ("Bluetooth: MGMT: validate Add Extended Advertising Data length")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

CheckPatch
Desc: Run checkpatch.pl script
Duration: 0.74 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

VerifyFixes
Desc: Verify Fixes tag format and validity
Duration: 0.14 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

VerifySignedoff
Desc: Verify Signed-off-by chain
Duration: 0.14 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

GitLint
Desc: Run gitlint
Duration: 0.33 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

SubjectPrefix
Desc: Check subject contains "Bluetooth" prefix
Duration: 0.13 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

BuildKernel
Desc: Build Kernel for Bluetooth
Duration: 27.61 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

CheckAllWarning
Desc: Run linux kernel with all warning enabled
Duration: 29.95 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

CheckSparse
Desc: Run sparse tool with linux kernel
Duration: 28.55 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

BuildKernel32
Desc: Build 32bit Kernel for Bluetooth
Duration: 26.59 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

TestRunnerSetup
Desc: Setup kernel and bluez for test-runner
Duration: 590.34 seconds
Result: PASS

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

TestRunner_mgmt-tester
Desc: Run mgmt-tester with test-runner
Duration: 223.41 seconds
Result: FAIL
Output:

Total: 494, Passed: 489 (99.0%), Failed: 1, Not Run: 4

Failed Test Cases
Read Exp Feature - Success                           Failed       0.253 seconds

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

TestRunner_mesh-tester
Desc: Run mesh-tester with test-runner
Duration: 27.00 seconds
Result: FAIL
Output:

Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0

Failed Test Cases
Mesh - Send cancel - 1                               Timed out    2.645 seconds
Mesh - Send cancel - 2                               Timed out    1.988 seconds

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

IncrementalBuild
Desc: Incremental build with the patches in the series
Duration: 26.37 seconds
Result: PASS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants