• Kees Cook's avatar
    coredump: Proactively round up to kmalloc bucket size · 6dd142d9
    Kees Cook authored
    Instead of discovering the kmalloc bucket size _after_ allocation, round
    up proactively so the allocation is explicitly made for the full size,
    allowing the compiler to correctly reason about the resulting size of
    the buffer through the existing __alloc_size() hint.
    
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: default avatarKees Cook <keescook@chromium.org>
    6dd142d9
coredump.c 29.2 KB