Re: [PATCH] drm/vkms: Adjust vkms_state->active_planes allocation type

2025-05-06 Thread Louis Chauvet
On Fri, 25 Apr 2025 23:14:32 -0700, Kees Cook wrote: > In preparation for making the kmalloc family of allocators type aware, > we need to make sure that the returned type from the allocation matches > the type of the variable being assigned. (Before, the allocator would > always return "void *",

Re: [PATCH] drm/vkms: Adjust vkms_state->active_planes allocation type

2025-04-30 Thread Kees Cook
On Mon, Apr 28, 2025 at 10:18:34AM +0200, Louis Chauvet wrote: > > > Le 26/04/2025 à 08:14, Kees Cook a écrit : > > In preparation for making the kmalloc family of allocators type aware, > > we need to make sure that the returned type from the allocation matches > > the type of the variable being

Re: [PATCH] drm/vkms: Adjust vkms_state->active_planes allocation type

2025-04-28 Thread Louis Chauvet
Le 26/04/2025 à 08:14, Kees Cook a écrit : In preparation for making the kmalloc family of allocators type aware, we need to make sure that the returned type from the allocation matches the type of the variable being assigned. (Before, the allocator would always return "void *", which can be i

[PATCH] drm/vkms: Adjust vkms_state->active_planes allocation type

2025-04-25 Thread Kees Cook
In preparation for making the kmalloc family of allocators type aware, we need to make sure that the returned type from the allocation matches the type of the variable being assigned. (Before, the allocator would always return "void *", which can be implicitly cast to any pointer type.) The assign