Thread (30 messages) 30 messages, 10 authors, 2022-09-23

Re: [PATCH 04/12] btrfs: send: Proactively round up to kmalloc bucket size

From: David Sterba <hidden>
Date: 2022-09-22 13:36:48
Also in: dri-devel, intel-wired-lan, linux-btrfs, linux-fsdevel, linux-hardening, linux-media, linux-mm, linux-wireless, lkml, llvm

On Wed, Sep 21, 2022 at 08:10:05PM -0700, Kees Cook wrote:
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: linux-btrfs@vger.kernel.org
Signed-off-by: Kees Cook <redacted>
Acked-by: David Sterba <dsterba@suse.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help