* [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref
@ 2024-05-02 17:17 Sungwoo Kim
2024-05-02 17:56 ` [v3] " bluez.test.bot
2024-05-02 21:00 ` [PATCH v3] " patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Sungwoo Kim @ 2024-05-02 17:17 UTC (permalink / raw)
To: luiz.dentz
Cc: daveti, benquike, Sungwoo Kim, Marcel Holtmann, Johan Hedberg,
Iulia Tanasescu, linux-bluetooth, linux-kernel
Fix potential null-ptr-deref in hci_le_big_sync_established_evt().
Fixes: f777d8827817 ("Bluetooth: ISO: Notify user space about failed bis connections")
Signed-off-by: Sungwoo Kim <iam@sung-woo.kim>
---
v1 -> v2:
- add a Fixes tag
- make the commit message concise
v2 -> v3:
- fix a wrong Fixes tag format
net/bluetooth/hci_event.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 4a27e4a17..d72d238c1 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -7037,6 +7037,8 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data,
u16 handle = le16_to_cpu(ev->bis[i]);
bis = hci_conn_hash_lookup_handle(hdev, handle);
+ if (!bis)
+ continue;
set_bit(HCI_CONN_BIG_SYNC_FAILED, &bis->flags);
hci_connect_cfm(bis, ev->status);
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [v3] Bluetooth: HCI: Fix potential null-ptr-deref
2024-05-02 17:17 [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref Sungwoo Kim
@ 2024-05-02 17:56 ` bluez.test.bot
2024-05-02 21:00 ` [PATCH v3] " patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: bluez.test.bot @ 2024-05-02 17:56 UTC (permalink / raw)
To: linux-bluetooth, iam
[-- Attachment #1: Type: text/plain, Size: 2513 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=849978
---Test result---
Test Summary:
CheckPatch PASS 0.58 seconds
GitLint PASS 0.26 seconds
SubjectPrefix PASS 0.09 seconds
BuildKernel PASS 30.08 seconds
CheckAllWarning PASS 32.96 seconds
CheckSparse WARNING 38.13 seconds
CheckSmatch FAIL 34.78 seconds
BuildKernel32 PASS 29.46 seconds
TestRunnerSetup PASS 520.97 seconds
TestRunner_l2cap-tester PASS 18.30 seconds
TestRunner_iso-tester PASS 30.93 seconds
TestRunner_bnep-tester PASS 4.67 seconds
TestRunner_mgmt-tester PASS 112.87 seconds
TestRunner_rfcomm-tester PASS 7.21 seconds
TestRunner_sco-tester PASS 15.19 seconds
TestRunner_ioctl-tester PASS 7.63 seconds
TestRunner_mesh-tester PASS 5.83 seconds
TestRunner_smp-tester PASS 6.80 seconds
TestRunner_userchan-tester PASS 4.86 seconds
IncrementalBuild PASS 32.57 seconds
Details
##############################
Test: CheckSparse - WARNING
Desc: Run sparse tool with linux kernel
Output:
net/bluetooth/hci_event.c: note: in included file (through include/net/bluetooth/hci_core.h):
##############################
Test: CheckSmatch - FAIL
Desc: Run smatch tool with source
Output:
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: net/bluetooth/hci_core.o] Error 139
make[4]: *** Deleting file 'net/bluetooth/hci_core.o'
make[3]: *** [scripts/Makefile.build:485: net/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: net] Error 2
make[2]: *** Waiting for unfinished jobs....
Segmentation fault (core dumped)
make[4]: *** [scripts/Makefile.build:244: drivers/bluetooth/bcm203x.o] Error 139
make[4]: *** Deleting file 'drivers/bluetooth/bcm203x.o'
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:485: drivers/bluetooth] Error 2
make[2]: *** [scripts/Makefile.build:485: drivers] Error 2
make[1]: *** [/github/workspace/src/src/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
---
Regards,
Linux Bluetooth
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref
2024-05-02 17:17 [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref Sungwoo Kim
2024-05-02 17:56 ` [v3] " bluez.test.bot
@ 2024-05-02 21:00 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2024-05-02 21:00 UTC (permalink / raw)
To: Sungwoo Kim
Cc: luiz.dentz, daveti, benquike, marcel, johan.hedberg,
iulia.tanasescu, linux-bluetooth, linux-kernel
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 2 May 2024 13:17:10 -0400 you wrote:
> Fix potential null-ptr-deref in hci_le_big_sync_established_evt().
>
> Fixes: f777d8827817 ("Bluetooth: ISO: Notify user space about failed bis connections")
> Signed-off-by: Sungwoo Kim <iam@sung-woo.kim>
> ---
> v1 -> v2:
> - add a Fixes tag
> - make the commit message concise
> v2 -> v3:
> - fix a wrong Fixes tag format
>
> [...]
Here is the summary with links:
- [v3] Bluetooth: HCI: Fix potential null-ptr-deref
https://git.kernel.org/bluetooth/bluetooth-next/c/5c7d0f260187
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:[~2024-05-02 21:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02 17:17 [PATCH v3] Bluetooth: HCI: Fix potential null-ptr-deref Sungwoo Kim
2024-05-02 17:56 ` [v3] " bluez.test.bot
2024-05-02 21:00 ` [PATCH v3] " patchwork-bot+bluetooth
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.