Re: [PATCH v3 1/3] drm/framebuffer: Check for valid formats

2023-01-13 Thread Simon Ser
On Friday, January 13th, 2023 at 17:59, Maíra Canal wrote: > + /* Verify that the modifier is supported. */ > + if (r->modifier[0] && drm_drv_uses_atomic_modeset(dev) && > + !drm_any_plane_has_format(dev, r->pixel_format, r->modifier[0])) { > + drm_dbg_kms(dev, "Unsupp

[PATCH v3 1/3] drm/framebuffer: Check for valid formats

2023-01-13 Thread Maíra Canal
Currently, framebuffer_check() doesn't check if the pixel format is supported, which can lead to the acceptance of invalid pixel formats e.g. the acceptance of invalid modifiers. Therefore, add a check for valid formats on framebuffer_check(), so that the ADDFB2 IOCTL rejects calls with invalid for