Re: [syzbot] [bluetooth?] WARNING in hci_conn_timeout (2)
From: syzbot
Date: Mon Nov 30 2026 - 13:17:04 EST
> #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
Patch testing via #syz test is temporarily disabled.
See https://github.com/google/syzkaller/issues/8122 for details.
>
> diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
> index 419a7e6..11ea358 100644
> --- a/net/bluetooth/hci_event.c
> +++ b/net/bluetooth/hci_event.c
> @@ -3682,6 +3682,17 @@ static void hci_auth_complete_evt(struct hci_dev *hdev, void *data,
> if (!conn)
> goto unlock;
>
> + /* Authentication Complete is only defined for BR/EDR links. An LE
> + * link in BT_CONFIG has not taken the reference that the BT_CONFIG
> + * branch below drops, so letting a misbehaving controller report it
> + * for an LE handle makes conn->refcnt go negative.
> + */
> + if (conn->type != ACL_LINK) {
> + bt_dev_err_ratelimited(hdev, "Ignoring Authentication Complete for non-ACL handle 0x%4.4x",
> + __le16_to_cpu(ev->handle));
> + goto unlock;
> + }
> +
> if (!ev->status) {
> clear_bit(HCI_CONN_AUTH_FAILURE, conn->flags);
> set_bit(HCI_CONN_AUTH, conn->flags);