From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+dfab1425afcdae5ac970@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] WARNING in ida_free (2)
Date: Wed, 14 Feb 2024 19:22:29 +0800 [thread overview]
Message-ID: <20240214112230.185-1-hdanton@sina.com> (raw)
In-Reply-To: <00000000000084b931061145fe46@google.com>
On Tue, 13 Feb 2024 08:36:20 -0800
> HEAD commit: c664e16bb1ba Merge tag 'docs-6.8-fixes2' of git://git.lwn...
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14ee7970180000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
--- x/net/bluetooth/hci_conn.c
+++ y/net/bluetooth/hci_conn.c
@@ -970,6 +970,9 @@ struct hci_conn *hci_conn_add(struct hci
bt_dev_dbg(hdev, "dst %pMR handle 0x%4.4x", dst, handle);
+ if (HCI_CONN_HANDLE_UNSET(handle))
+ BUG_ON(!ida_alloc_range(&hdev->unset_handle_ida, handle, handle, GFP_ATOMIC));
+
conn = kzalloc(sizeof(*conn), GFP_KERNEL);
if (!conn)
return NULL;
--
next prev parent reply other threads:[~2024-02-14 11:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-13 16:36 [syzbot] [bluetooth?] WARNING in ida_free (2) syzbot
2024-02-14 0:24 ` Hillf Danton
2024-02-14 0:50 ` syzbot
2024-02-14 11:22 ` Hillf Danton [this message]
2024-02-14 12:26 ` 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=20240214112230.185-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+dfab1425afcdae5ac970@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