BUG: Linux kernel regression: full screen logo
Subsystems (3)
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
Helge Deller
maintainerQuoted 21 lines · Roosen Henri
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 commit94e6a058b16820e02f25e1221a4c4e713ba23550].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
textAnd the target framebuffer has the same 800x480 size:
Quoted 7 lines
# cat /sys/class/graphics/fb0/virtual_size 800,480The 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:
drivers/video/fbdev/core/fbcon.c +1 -1
@@ -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
Roosen Henri
Tested-byQuoted 54 lines · Helge Deller
Quoted 28 lines · Roosen Henri
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 infbcon_prepare_logo") on a v6.18.x kernel, [ Upstream
commit94e6a058b16820e02f25e1221a4c4e713ba23550].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
textAnd the target framebuffer has the same 800x480 size:
Quoted 8 lines
# cat /sys/class/graphics/fb0/virtual_size 800,480The 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:
drivers/video/fbdev/core/fbcon.c +1
-1@@ -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;
Quoted 1 line
logo_shown=FBCON_LOGO_DONTSHOW;
Test successful: this patch makes the logo full screen again.
Quoted 2 lines
Helge