Re: [PATCHv2] fbcon: Check font dimension limits

2023-02-04 Thread Helge Deller
On 1/31/23 15:51, Greg KH wrote: On Sun, Jan 29, 2023 at 04:17:40PM +0100, Samuel Thibault wrote: blit_x and blit_y are u32, so fbcon currently cannot support fonts larger than 32x32. The 32x32 case also needs shifting an unsigned int, to properly set bit 31, otherwise we get "UBSAN: shift-out-

Re: [PATCHv2] fbcon: Check font dimension limits

2023-01-31 Thread Greg KH
On Sun, Jan 29, 2023 at 04:17:40PM +0100, Samuel Thibault wrote: > blit_x and blit_y are u32, so fbcon currently cannot support fonts > larger than 32x32. > > The 32x32 case also needs shifting an unsigned int, to properly set bit > 31, otherwise we get "UBSAN: shift-out-of-bounds in fbcon_set_fon

Re: [PATCHv2] fbcon: Check font dimension limits

2023-01-30 Thread Miko Larsson
On Sun, 2023-01-29 at 16:17 +0100, Samuel Thibault wrote: > blit_x and blit_y are u32, so fbcon currently cannot support fonts > larger than 32x32. > > The 32x32 case also needs shifting an unsigned int, to properly set > bit > 31, otherwise we get "UBSAN: shift-out-of-bounds in fbcon_set_font", >

[PATCHv2] fbcon: Check font dimension limits

2023-01-29 Thread Samuel Thibault
blit_x and blit_y are u32, so fbcon currently cannot support fonts larger than 32x32. The 32x32 case also needs shifting an unsigned int, to properly set bit 31, otherwise we get "UBSAN: shift-out-of-bounds in fbcon_set_font", as reported on: http://lore.kernel.org/all/ia1pr07mb98308653e259a6f2ce