From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+27209997e4015fb4702e@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in __hci_req_sync
Date: Sat, 13 Apr 2024 16:55:42 +0800 [thread overview]
Message-ID: <20240413085542.1836-1-hdanton@sina.com> (raw)
In-Reply-To: <0000000000009e80a40615f5c189@google.com>
On Sat, 13 Apr 2024 00:58:39 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: 8f2c057754b2 Merge tag 'arm64-fixes' of git://git.kernel.o..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=171da243180000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 8f2c057754b2
--- x/net/bluetooth/hci_request.c
+++ y/net/bluetooth/hci_request.c
@@ -102,6 +102,7 @@ void hci_req_sync_complete(struct hci_de
{
bt_dev_dbg(hdev, "result 0x%2.2x", result);
+ hci_req_sync_lock(hdev);
if (hdev->req_status == HCI_REQ_PEND) {
hdev->req_result = result;
hdev->req_status = HCI_REQ_DONE;
@@ -111,6 +112,7 @@ void hci_req_sync_complete(struct hci_de
}
wake_up_interruptible(&hdev->req_wait_q);
}
+ hci_req_sync_unlock(hdev);
}
/* Execute request and wait for completion. */
--
next prev parent reply other threads:[~2024-04-13 8:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-07 14:10 syzbot
2024-04-12 4:44 ` syzbot
2024-04-12 10:44 ` Hillf Danton
2024-04-12 11:05 ` syzbot
2024-04-13 7:58 ` syzbot
2024-04-13 8:55 ` Hillf Danton [this message]
2024-04-13 9:11 ` syzbot
2026-05-20 18:09 ` Forwarded: 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=20240413085542.1836-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+27209997e4015fb4702e@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
all inboxes | Powered by JetHome®