Re: DRM FB interface does not sanitize len when mmap'ed

2022-06-20 Thread Thomas Zimmermann
Hi Am 20.06.22 um 01:01 schrieb Nuno Gonçalves: On Fri, Jun 17, 2022 at 10:27 AM Thomas Zimmermann wrote: Could you please try the attached patch? It's similar to your solution, but closer to the original intention of the code. Works fine. Tested-by: Nuno Gonçalves Thanks, I'll post the

Re: DRM FB interface does not sanitize len when mmap'ed

2022-06-19 Thread Nuno Gonçalves
On Fri, Jun 17, 2022 at 10:27 AM Thomas Zimmermann wrote: > Could you please try the attached patch? It's similar to your solution, > but closer to the original intention of the code. Works fine. Tested-by: Nuno Gonçalves Thanks, Nuno

Re: DRM FB interface does not sanitize len when mmap'ed

2022-06-17 Thread Thomas Zimmermann
Hi Am 15.06.22 um 17:00 schrieb Nuno Gonçalves: I am crashing the kernel by doing something I believe I am allowed to do. Using mmap to write to /dev/fb0 as the compatibility layer for Tiny DRM vot,v220hf01a-t (ili9225). First it happens that because of the display resolution of 220*176 the bu

DRM FB interface does not sanitize len when mmap'ed

2022-06-15 Thread Nuno Gonçalves
I am crashing the kernel by doing something I believe I am allowed to do. Using mmap to write to /dev/fb0 as the compatibility layer for Tiny DRM vot,v220hf01a-t (ili9225). First it happens that because of the display resolution of 220*176 the buffer is (16 bit) 77440 bytes, which is not a multip