Re: [PATCH] btrfs: compression: Adjust cb->compressed_folios allocation type

2025-04-25 Thread Gustavo A. R. Silva
On 26/04/25 00:23, 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 *", which can be implicit

[PATCH] btrfs: compression: Adjust cb->compressed_folios 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

Re: [PATCH] btrfs: compression: Adjust cb->compressed_folios allocation type

2025-04-25 Thread Qu Wenruo
在 2025/4/26 15:53, 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