Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* BUG: Linux kernel regression: full screen logo
@ 2026-11-18 14:23 Roosen Henri
  2026-11-18 18:04 ` Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: Roosen Henri @ 2026-11-18 14:23 UTC (permalink / raw)
  To: deller@gmx.de, sashal@kernel.org
  Cc: Kepplinger-Novakovic Martin, simona@ffwll.ch, tzimmermann@suse.de,
	gregkh@linuxfoundation.org, icb@fastmail.org, a.vatoropin@crpt.ru,
	linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org

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.

Kind regards,
Henri

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BUG: Linux kernel regression: full screen logo
  2026-11-18 14:23 BUG: Linux kernel regression: full screen logo Roosen Henri
@ 2026-11-18 18:04 ` Helge Deller
  0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2026-11-18 18:04 UTC (permalink / raw)
  To: Roosen Henri; +Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-18 18:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 14:23 BUG: Linux kernel regression: full screen logo Roosen Henri
2026-11-18 18:04 ` Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox