[PATCH] drm/panthor: avoid garbage value in panthor_ioctl_dev_query()

Boris Brezillon boris.brezillon at collabora.com
Fri Feb 7 16:44:56 UTC 2025


On Mon, 20 Jan 2025 10:21:49 +0300
Dan Carpenter <dan.carpenter at linaro.org> wrote:

> On Sun, Jan 19, 2025 at 10:58:29AM +0800, Su Hui wrote:
> > 'priorities_info' is uninitialized, and the uninitialized value is copied
> > to user object when calling PANTHOR_UOBJ_SET(). Using memset to initialize
> > 'priorities_info' to avoid this garbage value problem.
> > 
> > Fixes: f70000ef2352 ("drm/panthor: Add DEV_QUERY_GROUP_PRIORITIES_INFO dev query")
> > Signed-off-by: Su Hui <suhui at nfschina.com>  
> 
> Reviewed-by: Dan Carpenter <dan.carpenter at linaro.org>

Queued to drm-misc-fixes.

> 
> How did you find this bug?
> 
> regards,
> dan carpenter
> 



More information about the dri-devel mailing list