From: Jiayi Zhang <zhangjiayi1014@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>
Cc: Haoli Zhang <26031212468@stu.xidian.edu.cn>,
Zhan Jun <zhanjun@uniontech.com>, Joshua Rogers <linux@joshua.hu>,
Wentao Guan <guanwentao@uniontech.com>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
syzbot+098cefc0911c68db5dab@syzkaller.appspotmail.com,
syzkaller-bugs@googlegroups.com
Subject: Re: [PATCH 1/2] vt: keyboard: take a tty reference in fn_hold()
Date: Fri, 4 Dec 2026 06:02:58 +0000 [thread overview]
Message-ID: <20261204060258.1916559-1-zhangjiayi1014@gmail.com> (raw)
In-Reply-To: <20261202180556.4149260-1-zhangjiayi1014@gmail.com>
Hi Greg, Jiri,
After sending this series I found two earlier postings of the same
fix, for another syzbot report of the same bug:
Zhan Jun, 2026-06-02, where Jiri asked to use the tty_port_tty guard:
https://lore.kernel.org/all/5186FF3C10B2F8A0+20260602061539.1500845-1-zhangdandan@uniontech.com/
Haoli Zhang, v2 on 2026-11-19, which uses the guard in fn_hold():
https://lore.kernel.org/all/20261119024207.4075962-1-26031212468@stu.xidian.edu.cn/
Patch 2 here is identical to the vt.c change in both. Patch 1 uses
tty_port_tty_get() and tty_kref_put() in fn_hold(), which is what Jiri
asked to replace with the guard. I missed these when I checked for
existing fixes, sorry. Please drop this series in favour of Haoli's v2.
Wentao, thank you for the review.
Thanks,
Jiayi
prev parent reply other threads:[~2026-12-04 6:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 18:05 Jiayi Zhang
2026-12-02 18:05 ` [PATCH 2/2] vt: let the console port hold a reference to its tty Jiayi Zhang
2026-12-03 4:25 ` 关文涛
2026-12-03 4:37 ` 关文涛
2026-12-03 4:23 ` Re:[PATCH 1/2] vt: keyboard: take a tty reference in fn_hold() 关文涛
2026-12-04 6:02 ` Jiayi Zhang [this message]
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=20261204060258.1916559-1-zhangjiayi1014@gmail.com \
--to=zhangjiayi1014@gmail.com \
--cc=26031212468@stu.xidian.edu.cn \
--cc=gregkh@linuxfoundation.org \
--cc=guanwentao@uniontech.com \
--cc=jirislaby@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux@joshua.hu \
--cc=syzbot+098cefc0911c68db5dab@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
--cc=zhanjun@uniontech.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®