From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+9f9ccb1c9235f3d44d53@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in __timer_delete
Date: Thu, 28 Nov 2024 19:29:48 +0800 [thread overview]
Message-ID: <20241128112948.1850-1-hdanton@sina.com> (raw)
In-Reply-To: <67476c0d.050a0220.253251.005d.GAE@google.com>
On Wed, 27 Nov 2024 10:59:25 -0800
> syzbot found the following issue on:
>
> HEAD commit: 2c22dc1ee3a1 Merge tag 'mailbox-v6.13' of git://git.kernel..
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16143778580000
#syz test
--- x/net/bluetooth/sco.c
+++ y/net/bluetooth/sco.c
@@ -192,7 +192,6 @@ static struct sco_conn *sco_conn_add(str
conn->hcon = hcon;
sco_conn_unlock(conn);
}
- sco_conn_put(conn);
return conn;
}
@@ -201,6 +200,7 @@ static struct sco_conn *sco_conn_add(str
return NULL;
kref_init(&conn->ref);
+ kref_get(&conn->ref);
spin_lock_init(&conn->lock);
INIT_DELAYED_WORK(&conn->timeout_work, sco_sock_timeout);
--
next prev parent reply other threads:[~2024-11-28 11:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 18:59 [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in __timer_delete syzbot
2024-11-28 11:29 ` Hillf Danton [this message]
2024-11-28 11:55 ` syzbot
2024-12-27 11:44 ` 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=20241128112948.1850-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+9f9ccb1c9235f3d44d53@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