Re: [PATCH] mm: Handle ksize() vs __alloc_size by forgetting size
From: Daniel Micay
Date: Mon Feb 28 2022 - 10:16:28 EST
Looked through them and nearly all seem easy to replace.
By the way, the call to ksize in arch/x86/kernel/cpu/microcode/amd.c
doesn't look right. It allocates the memory with kmemdup. I don't see
how it can assume that the padding is zero, and that seems to be a
requirement since it zeroes the destination before copying to it.
Seems far more reasonable to add a field with the size.