All of lore.kernel.org
 help / color / mirror / Atom feed
From: Feng Tang <feng.tang@intel.com>
To: Vlastimil Babka <vbabka@suse.cz>
Cc: Marco Elver <elver@google.com>,
	Hyeonggon Yoo <42.hyeyoo@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Alexander Potapenko <glider@google.com>,
	Dmitry Vyukov <dvyukov@google.com>,
	"kasan-dev@googlegroups.com" <kasan-dev@googlegroups.com>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Re: [PATCH -next] mm: kence: add __kmem_cache_free to function skip list
Date: Thu, 1 Sep 2022 20:41:51 +0800	[thread overview]
Message-ID: <YxCoj7XKPFU7UOX8@feng-clx> (raw)
In-Reply-To: <111e54ab-67d7-2932-150d-3bfd46827b30@suse.cz>

On Thu, Sep 01, 2022 at 04:47:11PM +0800, Vlastimil Babka wrote:
> On 9/1/22 03:26, Feng Tang wrote:
> > On Thu, Sep 01, 2022 at 12:16:17AM +0800, Vlastimil Babka wrote:
> >> On 8/31/22 16:21, Marco Elver wrote:
> >> > On Wed, 31 Aug 2022 at 16:04, Hyeonggon Yoo <42.hyeyoo@gmail.com> wrote:
> >> > 
> >> >> Maybe you can include those functions too?
> >> >>
> >> >> - __kmem_cache_alloc_node
> >> >> - kmalloc_[node_]trace, kmalloc_large[_node]
> >> > 
> >> > This is only required if they are allocator "root" functions when
> >> > entering allocator code (or may be tail called by a allocator "root"
> >> > function). Because get_stack_skipnr() looks for one of the listed
> >> > function prefixes in the whole stack trace.
> >> > 
> >> > The reason __kmem_cache_free() is now required is because it is tail
> >> > called by kfree() which disappears from the stack trace if the
> >> > compiler does tail-call-optimization.
> >> 
> >> I checked and I have this jmp tail call, yet all test pass here.
> >> But I assume the right commit to amend is
> >> 05a1c2e50809 ("mm/sl[au]b: generalize kmalloc subsystem")
> >> 
> >> Could you Feng maybe verify that that commit is the first that fails the
> >> tests, and parent commit of that is OK? Thanks.
> > 
> > Yes, 05a1c2e50809 is the first commit that I saw the 4 kfence failed
> > kunit cases.
> 
> Thanks, squashed your patch there and pushed new for-next.

Thanks! Just re-pulled slab tree's 'for-next' branch and the error
can't be reproduced with it.

- Feng


  reply	other threads:[~2022-09-01 12:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-31  7:30 [PATCH -next] mm: kence: add __kmem_cache_free to function skip list Feng Tang
2022-08-31  7:35 ` Marco Elver
2022-08-31 11:37   ` Vlastimil Babka
2022-08-31 14:04 ` Hyeonggon Yoo
2022-08-31 14:21   ` Marco Elver
2022-08-31 16:16     ` Vlastimil Babka
2022-09-01  1:26       ` Feng Tang
2022-09-01  8:47         ` Vlastimil Babka
2022-09-01 12:41           ` Feng Tang [this message]
2022-08-31 14:44   ` Feng Tang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YxCoj7XKPFU7UOX8@feng-clx \
    --to=feng.tang@intel.com \
    --cc=42.hyeyoo@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=dvyukov@google.com \
    --cc=elver@google.com \
    --cc=glider@google.com \
    --cc=kasan-dev@googlegroups.com \
    --cc=linux-mm@kvack.org \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.