aboutsummaryrefslogtreecommitdiffstats
path: root/lib/overflow_kunit.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2022-10-18 09:10:11 +0000
committerKees Cook <[email protected]>2022-11-01 17:04:52 +0000
commitcd536db050993f7c220a6cfb01de5356032b6f8e (patch)
tree49c4192cadee75f637b2251d2cb15b0453c79745 /lib/overflow_kunit.c
parentkbuild: upgrade the orphan section warning to an error if CONFIG_WERROR is set (diff)
downloadkernel-cd536db050993f7c220a6cfb01de5356032b6f8e.tar.gz
kernel-cd536db050993f7c220a6cfb01de5356032b6f8e.zip
dma-buf: Proactively round up to kmalloc bucket size
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: Sumit Semwal <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Reviewed-by: Christian König <[email protected]> Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/overflow_kunit.c')
0 files changed, 0 insertions, 0 deletions