Re: [PATCH v2 3/3] string.h: Use ARRAY_SIZE() for memtostr*()/strtomem*()

2025-02-06 Thread Suren Baghdasaryan
/ > Suggested-by: Kent Overstreet > Link: > https://github.com/llvm/llvm-project/commit/d8e0a6d5e9dd2311641f9a8a5d2bf90829951ddc > [1] > Signed-off-by: Kees Cook Tested-by: Suren Baghdasaryan Thanks Kees! CC'ing Andrew Morton since mm-unstable contains my workaround patch [

Re: [PATCH 5/5] slab: Allocate and use per-call-site caches

2024-09-12 Thread Suren Baghdasaryan
On Wed, Sep 11, 2024 at 3:30 PM Kees Cook wrote: > > On Thu, Aug 29, 2024 at 10:03:56AM -0700, Suren Baghdasaryan wrote: > > On Fri, Aug 9, 2024 at 12:33 AM Kees Cook wrote: > > > > > > Use separate per-call-site kmem_cache or kmem_buckets. These are > > &g

Re: [PATCH 5/5] slab: Allocate and use per-call-site caches

2024-08-29 Thread Suren Baghdasaryan
G allocations as well Do you mean allocations with __GFP_ACCOUNT or something else? > - Allocate individual caches within kmem_buckets on demand to > further reduce memory usage overhead. > > Signed-off-by: Kees Cook > --- > Cc: Suren Baghdasaryan > Cc: Kent Overstreet >

Re: [PATCH 4/5] alloc_tag: Track fixed vs dynamic sized kmalloc calls

2024-08-29 Thread Suren Baghdasaryan
s for needed coverage > > Signed-off-by: Kees Cook > --- > Cc: Suren Baghdasaryan > Cc: Kent Overstreet > Cc: Vlastimil Babka > Cc: Christoph Lameter > Cc: Pekka Enberg > Cc: David Rientjes > Cc: Joonsoo Kim > Cc: Andrew Morton > Cc: Roman Gushchin > Cc:

Re: [PATCH 3/5] codetag: Introduce codetag_early_walk()

2024-08-29 Thread Suren Baghdasaryan
locate required caches that cannot be allocated on demand. > > Signed-off-by: Kees Cook > --- > Cc: Suren Baghdasaryan > Cc: Kent Overstreet > Cc: Vlastimil Babka > Cc: Christoph Lameter > Cc: Pekka Enberg > Cc: David Rientjes > Cc: Joonsoo Kim > Cc: Andrew M

Re: [PATCH 2/5] codetag: Run module_load hooks for builtin codetags

2024-08-29 Thread Suren Baghdasaryan
? mod->name : "(built-in)"); | ^~ Thanks, Suren. > --- > Cc: Suren Baghdasaryan > Cc: Kent Overstreet > Cc: Vlastimil Babka > Cc: Christoph Lameter > Cc: Pekka Enberg > Cc: David Rientjes > Cc: Joonsoo Kim > Cc: Andrew Morton >

Re: [linux-next:master] [mm/slab] 7bd230a266: WARNING:at_mm/util.c:#kvmalloc_node_noprof

2024-05-15 Thread Suren Baghdasaryan
On Tue, May 14, 2024 at 7:41 PM kernel test robot wrote: > > > > Hello, > > as we understand, this commit is not the root-cause of this WARNING. the > WARNING > just shows in another way by commit changes. > > 53ed0af496422959 7bd230a26648ac68ab3731ebbc4 > ---

Re: [PATCH] mm/slub: Avoid recursive loop with kmemleak

2024-04-25 Thread Suren Baghdasaryan
On Thu, Apr 25, 2024 at 5:19 PM Kent Overstreet wrote: > > On Thu, Apr 25, 2024 at 04:49:17PM -0700, Andrew Morton wrote: > > On Thu, 25 Apr 2024 14:30:55 -0700 Suren Baghdasaryan > > wrote: > > > > > > > --- a/mm/kmemleak.c > > > > > ++

Re: [PATCH] mm/slub: Avoid recursive loop with kmemleak

2024-04-25 Thread Suren Baghdasaryan
tion tagging of kmemleak caches, otherwise recursive > > allocation tracking occurs. > > > > Fixes: 279bb991b4d9 ("mm/slab: add allocation accounting into slab > > allocation and free paths") > > Signed-off-by: Kees Cook > > --- > > Cc: Suren Ba

Re: [PATCH] alloc_tag: Tighten file permissions on /proc/allocinfo

2024-04-25 Thread Suren Baghdasaryan
On Thu, Apr 25, 2024 at 2:04 PM Kent Overstreet wrote: > > On Thu, Apr 25, 2024 at 09:51:56PM +0100, Matthew Wilcox wrote: > > On Thu, Apr 25, 2024 at 04:45:51PM -0400, Kent Overstreet wrote: > > > On Thu, Apr 25, 2024 at 01:08:50PM -0700, Kees Cook wrote: > > > > The /proc/allocinfo file exposes

Re: [PATCH v2] mm: align larger anonymous mappings on THP boundaries

2024-01-17 Thread Suren Baghdasaryan
On Wed, Jan 17, 2024 at 5:34 PM Suren Baghdasaryan wrote: > > On Wed, Jan 17, 2024 at 4:29 PM Suren Baghdasaryan wrote: > > > > On Wed, Jan 17, 2024 at 4:13 PM Yang Shi wrote: > > > > > > On Wed, Jan 17, 2024 at 4:02 PM Suren Baghdasaryan > > > wro

Re: [PATCH v2] mm: align larger anonymous mappings on THP boundaries

2024-01-17 Thread Suren Baghdasaryan
On Wed, Jan 17, 2024 at 4:29 PM Suren Baghdasaryan wrote: > > On Wed, Jan 17, 2024 at 4:13 PM Yang Shi wrote: > > > > On Wed, Jan 17, 2024 at 4:02 PM Suren Baghdasaryan > > wrote: > > > > > > On Wed, Jan 17, 2024 at 3:32 PM Yang Shi wrote: > >

Re: [PATCH v2] mm: align larger anonymous mappings on THP boundaries

2024-01-17 Thread Suren Baghdasaryan
On Wed, Jan 17, 2024 at 4:13 PM Yang Shi wrote: > > On Wed, Jan 17, 2024 at 4:02 PM Suren Baghdasaryan wrote: > > > > On Wed, Jan 17, 2024 at 3:32 PM Yang Shi wrote: > > > > > > On Wed, Jan 17, 2024 at 9:40 AM Kees Cook wrote: > > > > > &g

Re: [PATCH v2] mm: align larger anonymous mappings on THP boundaries

2024-01-17 Thread Suren Baghdasaryan
On Wed, Jan 17, 2024 at 3:32 PM Yang Shi wrote: > > On Wed, Jan 17, 2024 at 9:40 AM Kees Cook wrote: > > > > On Tue, Jan 16, 2024 at 02:30:36PM -0800, Suren Baghdasaryan wrote: > > > On Tue, Jan 16, 2024 at 2:25 PM Yang Shi wrote: > > > > > &