Skip to content

[PW_SID:1126651] Bluetooth: btbcm: bound local name logging#431

Open
BluezTestBot wants to merge 1 commit into
workflowfrom
1126651
Open

[PW_SID:1126651] Bluetooth: btbcm: bound local name logging#431
BluezTestBot wants to merge 1 commit into
workflowfrom
1126651

Conversation

@BluezTestBot

Copy link
Copy Markdown

The HCI Read Local Name response contains a fixed 248-byte name. A NUL
terminator is supplied only when the name is shorter than the maximum
length.

btbcm prints the returned name using %s, so a maximum-length controller
name lets the log formatting read past the HCI response buffer.

Use a precision of HCI_MAX_NAME_LENGTH when logging the name.

Fixes: 9bc63ca ("Bluetooth: btbcm: Read the local name in setup stage")
Fixes: 2fcdd56 ("Bluetooth: btbcm: Make btbcm_initialize() print local-name on re-init too")
Cc: stable@vger.kernel.org
Signed-off-by: Laxman Acharya Padhya acharyalaxman8848@gmail.com

drivers/bluetooth/btbcm.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

The HCI Read Local Name response contains a fixed 248-byte name. A NUL
terminator is supplied only when the name is shorter than the maximum
length.

btbcm prints the returned name using %s, so a maximum-length controller
name lets the log formatting read past the HCI response buffer.

Use a precision of HCI_MAX_NAME_LENGTH when logging the name.

Fixes: 9bc63ca ("Bluetooth: btbcm: Read the local name in setup stage")
Fixes: 2fcdd56 ("Bluetooth: btbcm: Make btbcm_initialize() print local-name on re-init too")
Cc: stable@vger.kernel.org
Signed-off-by: Laxman Acharya Padhya <acharyalaxman8848@gmail.com>
@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

CheckKernelLLVM
Desc: Build kernel with LLVM + context analysis
Duration: 0.00 seconds
Result: SKIP
Output:

Clang not found

@github-actions

Copy link
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

IncrementalBuild
Desc: Incremental build with the patches in the series
Duration: 23.34 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