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

Re: [PATCH 01/12] slab: Introduce kmalloc_size_roundup()

From: Kees Cook <hidden>
Date: 2022-09-23 18:50:44
Also in: dri-devel, intel-wired-lan, linux-btrfs, linux-fsdevel, linux-hardening, linux-media, linux-mm, lkml, llvm, netdev

On Fri, Sep 23, 2022 at 09:17:25AM +0800, Feng Tang wrote:
On Thu, Sep 22, 2022 at 07:12:21PM +0800, Hyeonggon Yoo wrote:
quoted
On Wed, Sep 21, 2022 at 08:10:02PM -0700, Kees Cook wrote:
quoted
[...]
Introduce kmalloc_size_roundup(), to serve this function so we can start
replacing the "anticipatory resizing" uses of ksize().
[...]

This looks okay.
[...]
Cc-ing Feng Tang who may welcome this series ;)
 
Indeed! This will help our work of extending slub redzone check,
as we also ran into some trouble with ksize() users when extending
the redzone support to this extra allocated space than requested
size [1], and have to disable the redzone sanity for all ksize()
users [2].

[1]. https://lore.kernel.org/lkml/20220719134503.GA56558@shbuild999.sh.intel.com/ (local)
[2]. https://lore.kernel.org/lkml/20220913065423.520159-5-feng.tang@intel.com/ (local)
Thanks for the feedback! I'll send my v2 series -- I'm hoping at least
this patch can land in v6.1 so the various other patches would be clear
to land via their separate trees, etc.

-- 
Kees Cook
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help