Messages in this thread Patch in this message | | | Date | Fri, 17 Nov 2023 19:25:37 -0800 | Subject | Re: [syzbot] [PATCH] Test uaf in sco_sock_timeout | From | syzbot <> |
| |
For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org.
***
Subject: [PATCH] Test uaf in sco_sock_timeout Author: eadavis@qq.com
please test 8de1e7afcc1c
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git 8de1e7afcc1c
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c index c736186aba26..c05fb9d41a63 100644 --- a/net/bluetooth/sco.c +++ b/net/bluetooth/sco.c @@ -300,7 +300,8 @@ static int sco_connect(struct sock *sk) unlock: hci_dev_unlock(hdev); - hci_dev_put(hdev); + if (err) + hci_dev_put(hdev); return err; }
| |