Re: [PATCH v2 13/16] mempool: Use kmalloc_size_roundup() to match ksize() usage

2022-09-26 Thread Kees Cook
On Mon, Sep 26, 2022 at 03:50:43PM +0200, Vlastimil Babka wrote: > On 9/23/22 22:28, Kees Cook wrote: > > Round up allocations with kmalloc_size_roundup() so that mempool's use > > of ksize() is always accurate and no special handling of the memory is > > needed by KASAN, UBSAN_BOUNDS, nor FORTIFY_

Re: [PATCH v2 13/16] mempool: Use kmalloc_size_roundup() to match ksize() usage

2022-09-26 Thread Vlastimil Babka
On 9/23/22 22:28, Kees Cook wrote: Round up allocations with kmalloc_size_roundup() so that mempool's use of ksize() is always accurate and no special handling of the memory is needed by KASAN, UBSAN_BOUNDS, nor FORTIFY_SOURCE. Cc: Andrew Morton Cc: linux...@kvack.org Signed-off-by: Kees Cook