From: Helge Deller <deller@gmx.de>
To: Yu Peng <pengyu@kylinos.cn>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jirislaby@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>,
Nicolas Pitre <nico@fluxnic.net>, Ronan Pigott <ronan@rjp.ie>,
linux-serial@vger.kernel.org, linux-fbdev@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] vt: Skip hardware scrolling while blanked
Date: Tue, 24 Nov 2026 22:37:09 +0100 [thread overview]
Message-ID: <27cf86d7-b333-41cb-a250-6b6a14034b86@gmx.de> (raw)
In-Reply-To: <20261124024811.305592-2-pengyu@kylinos.cn>
On 11/24/26 03:48, Yu Peng wrote:
> When vgacon is blanked without palette blanking (!vga_palette_blanked),
> vgacon_set_origin() rejects VRAM so vc->vc_origin points to the heap
> buffer vc->vc_screenbuf. Calling hardware scroll callbacks while blanked
> then treats vc->vc_screenbuf as VRAM and causes out-of-bounds accesses.
>
> Use con_should_update() to skip hardware scrolling and scrollback while
> blanked, allowing con_scroll() to fall back to software scrolling.
>
> Assisted-by: LLM
> Signed-off-by: Yu Peng <pengyu@kylinos.cn>
> ---
> drivers/tty/vt/vt.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
both patches applied to fbdev git tree.
Thanks!
Helge
next prev parent reply other threads:[~2026-11-24 21:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 2:48 [PATCH v2 0/2] vt/vgacon: Skip blanked hardware scroll and fix VESA blanking Yu Peng
2026-11-24 2:48 ` [PATCH v2 1/2] vt: Skip hardware scrolling while blanked Yu Peng
2026-11-24 21:37 ` Helge Deller [this message]
2026-11-24 2:48 ` [PATCH v2 2/2] vgacon: Switch to screenbuf on direct VESA blanking Yu Peng
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=27cf86d7-b333-41cb-a250-6b6a14034b86@gmx.de \
--to=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=jirislaby@kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=nico@fluxnic.net \
--cc=pengyu@kylinos.cn \
--cc=ronan@rjp.ie \
--cc=tzimmermann@suse.de \
/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®