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

2025-02-07 Thread Boris Brezillon
On Mon, 20 Jan 2025 10:21:49 +0300 Dan Carpenter 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 a

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

2025-01-20 Thread Steven Price
On 19/01/2025 02:58, 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: f7ef2352 ("drm/panthor: Add DEV_QUERY_

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

2025-01-20 Thread Boris Brezillon
On Sun, 19 Jan 2025 10:58:29 +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: f7ef2352 ("drm/panthor

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

2025-01-20 Thread Su Hui
On 2025/1/20 15:21, Dan Carpenter 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 prob

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

2025-01-19 Thread Dan Carpenter
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: f7ef2352 ("drm/pa