Re: [PATCH 1/2] vt: keyboard: take a tty reference in fn_hold()

From: Jiayi Zhang

Date: Fri Dec 04 2026 - 01:03:21 EST


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@xxxxxxxxxxxxx/

Haoli Zhang, v2 on 2026-11-19, which uses the guard in fn_hold():
https://lore.kernel.org/all/20261119024207.4075962-1-26031212468@xxxxxxxxxxxxxxxxx/

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