]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Revert "vgacon: Add check for vc_origin address range in vgacon_scroll()"
authorHelge Deller <deller@gmx.de>
Sat, 2 Aug 2025 19:34:37 +0000 (21:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:24:27 +0000 (16:24 +0200)
commit8a5e6282c6a733ad5a4c0f9e7d253d85cf202f18
treee475021853df4802e81e7f2d172056c2b3a9d99d
parent649383fa7f6767a1bed17850adadef06ff61234c
Revert "vgacon: Add check for vc_origin address range in vgacon_scroll()"

commit e4fc307d8e24f122402907ebf585248cad52841d upstream.

This reverts commit 864f9963ec6b4b76d104d595ba28110b87158003.

The patch is wrong as it checks vc_origin against vc_screenbuf,
while in text mode it should compare against vga_vram_base.

As such it broke VGA text scrolling, which can be reproduced like this:
(1) boot a kernel that is configured to use text mode VGA-console
(2) type commands:  ls -l /usr/bin | less -S
(3) scroll up/down with cursor-down/up keys

Reported-by: Jari Ruusu <jariruusu@protonmail.com>
Cc: stable@vger.kernel.org
Cc: Yi Yang <yiyang13@huawei.com>
Cc: GONG Ruiqi <gongruiqi1@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/vgacon.c