From: Hillf Danton <hdanton@sina.com>
To: syzbot <syzbot+2a81fdd5c6ddffee3894@syzkaller.appspotmail.com>
Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Re: [syzbot] [serial?] KASAN: slab-use-after-free Read in tty_write_room (2)
Date: Tue, 12 Mar 2024 19:20:03 +0800 [thread overview]
Message-ID: <20240312112003.2116-1-hdanton@sina.com> (raw)
In-Reply-To: <000000000000fd3d660613636f95@google.com>
On Mon, 11 Mar 2024 07:34:21 -0700
> syzbot has found a reproducer for the following issue on:
>
> HEAD commit: e8f897f4afef Linux 6.8
> git tree: upstream
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11f338d1180000
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
--- x/drivers/net/caif/caif_serial.c
+++ y/drivers/net/caif/caif_serial.c
@@ -306,8 +306,11 @@ static void ser_release(struct work_stru
if (!list_empty(&list)) {
rtnl_lock();
list_for_each_entry_safe(ser, tmp, &list, node) {
+ struct tty_struct *tty = ser->tty;
+
dev_close(ser->dev);
unregister_netdevice(ser->dev);
+ tty_kref_put(tty);
debugfs_deinit(ser);
}
rtnl_unlock();
@@ -369,8 +372,6 @@ static void ldisc_close(struct tty_struc
{
struct ser_device *ser = tty->disc_data;
- tty_kref_put(ser->tty);
-
spin_lock(&ser_lock);
list_move(&ser->node, &ser_release_list);
spin_unlock(&ser_lock);
--
next prev parent reply other threads:[~2024-03-12 11:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 15:06 syzbot
2024-03-11 14:34 ` syzbot
2024-03-12 11:20 ` Hillf Danton [this message]
2024-03-12 12:18 ` 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=20240312112003.2116-1-hdanton@sina.com \
--to=hdanton@sina.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzbot+2a81fdd5c6ddffee3894@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®