From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+3f0a39be7a2035700868@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync
Date: Fri, 9 Feb 2024 15:37:18 +0800 [thread overview]
Message-ID: <20240209073719.84-1-hdanton@sina.com> (raw)
In-Reply-To: <000000000000b7b62e0610db6b8a@google.com>
On Thu, 08 Feb 2024 01:27:31 -0800
> HEAD commit: b1d3a0e70c38 Add linux-next specific files for 20240208
> git tree: linux-next
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=107c2d8fe80000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
--- x/net/bluetooth/hci_sync.c
+++ y/net/bluetooth/hci_sync.c
@@ -6553,12 +6553,14 @@ static int __hci_acl_create_connection_s
if (err == -ETIMEDOUT)
hci_abort_conn_sync(hdev, conn, HCI_ERROR_LOCAL_HOST_TERM);
+ hci_conn_put(conn);
return err;
}
int hci_acl_create_connection_sync(struct hci_dev *hdev,
struct hci_conn *conn)
{
+ hci_conn_get(conn);
return hci_cmd_sync_queue(hdev, __hci_acl_create_connection_sync,
conn, NULL);
}
--
next prev parent reply other threads:[~2024-02-09 7:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-08 9:27 [syzbot] [bluetooth?] KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync syzbot
2024-02-08 15:32 ` syzbot
2024-02-09 12:37 ` Jonas Dreßler
2024-02-09 13:36 ` Luiz Augusto von Dentz
2024-02-09 14:37 ` Luiz Augusto von Dentz
2024-02-13 0:29 ` Jonas Dreßler
2024-02-13 13:53 ` Luiz Augusto von Dentz
2024-02-09 7:37 ` Hillf Danton [this message]
2024-02-09 8:05 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240209073719.84-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+3f0a39be7a2035700868@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox