Re: [PATCH v2 1/2] vt: Skip hardware scrolling while blanked
From: Helge Deller
Date: Tue Nov 24 2026 - 16:37:39 EST
On 11/24/26 03:48, Yu Peng wrote:
When vgacon is blanked without palette blanking (!vga_palette_blanked),both patches applied to fbdev git tree.
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@xxxxxxxxxx>
---
drivers/tty/vt/vt.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
Thanks!
Helge