Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in sk_skb_reason_drop
From: Hillf Danton
Date: Tue Jun 25 2024 - 06:40:51 EST
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2ccbdf43d5e7
--- x/net/bluetooth/hci_request.c
+++ h/net/bluetooth/hci_request.c
@@ -160,6 +160,8 @@ int __hci_req_sync(struct hci_dev *hdev,
if (err == -ERESTARTSYS)
return -EINTR;
+ if (!err)
+ return -ETIMEDOUT;
switch (hdev->req_status) {
case HCI_REQ_DONE:
--