Re: [PATCH] drm/fb-helper: Fix out-of-bounds access

2022-06-29 Thread Thomas Zimmermann
Hi Am 29.06.22 um 20:17 schrieb Geert Uytterhoeven: Hi Thomas, On Tue, 21 Jun 2022, Thomas Zimmermann wrote: Clip memory range to screen-buffer size to avoid out-of-bounds access in fbdev deferred I/O's damage handling. Fbdev's deferred I/O can only track pages. From the range of pages,

Re: [PATCH] drm/fb-helper: Fix out-of-bounds access

2022-06-29 Thread Geert Uytterhoeven
Hi Thomas, On Tue, 21 Jun 2022, Thomas Zimmermann wrote: Clip memory range to screen-buffer size to avoid out-of-bounds access in fbdev deferred I/O's damage handling. Fbdev's deferred I/O can only track pages. From the range of pages, the damage handler computes the clipping rectangle

Re: [PATCH] drm/fb-helper: Fix out-of-bounds access

2022-06-23 Thread Javier Martinez Canillas
Hello Thomas, On 6/21/22 12:46, Thomas Zimmermann wrote: > Clip memory range to screen-buffer size to avoid out-of-bounds access > in fbdev deferred I/O's damage handling. > > Fbdev's deferred I/O can only track pages. From the range of pages, the > damage handler computes the clipping rectangle

[PATCH] drm/fb-helper: Fix out-of-bounds access

2022-06-21 Thread Thomas Zimmermann
Clip memory range to screen-buffer size to avoid out-of-bounds access in fbdev deferred I/O's damage handling. Fbdev's deferred I/O can only track pages. From the range of pages, the damage handler computes the clipping rectangle for the display update. If the fbdev screen buffer ends near the beg