From: Helge Deller <deller@gmx.de>
To: Roosen Henri <Henri.Roosen@ginzinger.com>
Cc: "linux-fbdev@vger.kernel.org" <linux-fbdev@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>
Subject: Re: BUG: Linux kernel regression: full screen logo
Date: Wed, 18 Nov 2026 19:04:33 +0100 [thread overview]
Message-ID: <d734924c-6083-405d-8ef8-d0d522d6a187@gmx.de> (raw)
In-Reply-To: <074e66817a069dca965d9c258606f23fbcb2e1a3.camel@ginzinger.com>
On 11/18/26 15:23, Roosen Henri wrote:
> Hello Helge, hello Sasha,
>
> I have been bisecting the linux kernel for a regression, were a white
> stripe occurs at the bottom of the display, when showing the bootlogo.
>
> The bisect ended up at commit-582a89109ad9 ("fbcon: Fix KASAN slab-out-
> of-bounds Read in fbcon_prepare_logo") on a v6.18.x kernel, [ Upstream
> commit 94e6a058b16820e02f25e1221a4c4e713ba23550 ].
>
> We use a custom bootlogo exactly full-screen. With your commit we get a
> white bar at the bottom, which i think is about the size of the font-
> height.
>
> Our logo file has 800x480:
>
> file logo_clut224.ppm
> logo_clut224.ppm: Netpbm image data, size = 800 x 480, pixmap, ASCII
> text
>
> And the target framebuffer has the same 800x480 size:
>
> # cat /sys/class/graphics/fb0/virtual_size
> 800,480
>
> The logo does not exceed the screen size, still your patch introduces
> this regression.
>
> I'm happy to test a possible solution.
can you test this (completely untested!) patch:
diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c
index d7890e119dc7..2809c7a6893f 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -666,7 +666,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
logo_height = fb_prepare_logo(info, par->rotate);
logo_lines = DIV_ROUND_UP(logo_height, vc->vc_font.height);
logo_lines = min(logo_lines, rows);
- logo_lines = min(logo_lines, new_rows - 1);
+ logo_lines = min(logo_lines, new_rows);
if (logo_lines <= 0) {
logo_lines = 0;
logo_shown = FBCON_LOGO_DONTSHOW;
Helge
prev parent reply other threads:[~2026-11-18 18:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 14:23 BUG: Linux kernel regression: full screen logo Roosen Henri
2026-11-18 18:04 ` Helge Deller [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=d734924c-6083-405d-8ef8-d0d522d6a187@gmx.de \
--to=deller@gmx.de \
--cc=Henri.Roosen@ginzinger.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-fbdev@vger.kernel.org \
/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