linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Zhu Yanjun <zyjzyj2000@gmail.com>
To: Marco Elver <elver@google.com>
Cc: yanjun.zhu@linux.dev, ryabinin.a.a@gmail.com,
	akpm@linux-foundation.org,  kasan-dev@googlegroups.com,
	linux-mm@kvack.org
Subject: Re: [PATCH 1/1] mm/kasan: avoid export __kasan_kmalloc
Date: Thu, 30 Sep 2021 14:29:58 +0800	[thread overview]
Message-ID: <CAD=hENez39qiGGi0bHvvxiby1wSWtoOqCme9vQCa9inF1907XA@mail.gmail.com> (raw)
In-Reply-To: <YVVXC450yCxgI3T3@elver.google.com>

On Thu, Sep 30, 2021 at 2:20 PM Marco Elver <elver@google.com> wrote:
>
> On Thu, Sep 30, 2021 at 03:50AM +0000, yanjun.zhu@linux.dev wrote:
>
> > >> -EXPORT_SYMBOL(__kasan_kmalloc);
> > >>
> > >> Sorry, but this will break all users of kmalloc() with KASAN on if
> > >> !TRACING:
> > >
> > > *module users.
> > >
> > > An allmodconfig but with CONFIG_TRACING=n will probably show you the problem.
> >
> > Follow your advice, I changed CONFIG_TRACING=n in .config. Then I run "make -jxx modules".
> > But CONFIG_TRACING is changed to y.
> > So what you mentioned does not appear.
>
> CONFIG_TRACING is not user selectable but auto-selected, just have to
> disable all those that select it. See .config, which breaks.

 Symbol: TRACING [=y]
  x Type  : bool
  x Defined at kernel/trace/Kconfig:114
  x Selects: RING_BUFFER [=y] && STACKTRACE [=y] && TRACEPOINTS [=y]
&& NOP_TRACER [=y] && BINARY_PRINTF [=y] && EVENT_TRACING [=y] &&
TRACE_CLOCK [=y]   x
  x Selected by [y]:
  x   - PREEMPTIRQ_TRACEPOINTS [=y] && (TRACE_PREEMPT_TOGGLE [=n] ||
TRACE_IRQFLAGS [=y])
  x   - GENERIC_TRACER [=y]
  x   - KPROBE_EVENTS [=y] && FTRACE [=y] && KPROBES [=y] &&
HAVE_REGS_AND_STACK_ACCESS_API [=y]
  x   - UPROBE_EVENTS [=y] && FTRACE [=y] && ARCH_SUPPORTS_UPROBES
[=y] && MMU [=y] && PERF_EVENTS [=y]
  x   - SYNTH_EVENTS [=y] && FTRACE [=y]
  x   - HIST_TRIGGERS [=y] && FTRACE [=y] &&
ARCH_HAVE_NMI_SAFE_CMPXCHG [=y]
  x Selected by [n]:
  x   - DRM_I915_TRACE_GEM [=n] && HAS_IOMEM [=y] && DRM_I915 [=m] &&
EXPERT [=y] && DRM_I915_DEBUG_GEM [=n]
  x   - DRM_I915_TRACE_GTT [=n] && HAS_IOMEM [=y] && DRM_I915 [=m] &&
EXPERT [=y] && DRM_I915_DEBUG_GEM [=n]
  x   - ENABLE_DEFAULT_TRACERS [=n] && FTRACE [=y] && !GENERIC_TRACER [=y]

From .config, I got the above. It seems that CONFIG_TRACING is
selected by a lot of things.

Is there any method to set CONFIG_TRACING=n?

Zhu Yanjun


  reply	other threads:[~2021-09-30  6:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210929234929.857611-1-yanjun.zhu@linux.dev>
2021-09-29 12:42 ` Marco Elver
2021-09-29 12:45   ` Marco Elver
2021-09-30  3:50   ` yanjun.zhu
2021-09-30  6:19     ` Marco Elver
2021-09-30  6:29       ` Zhu Yanjun [this message]
2021-09-30 11:13       ` Zhu Yanjun

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='CAD=hENez39qiGGi0bHvvxiby1wSWtoOqCme9vQCa9inF1907XA@mail.gmail.com' \
    --to=zyjzyj2000@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=elver@google.com \
    --cc=kasan-dev@googlegroups.com \
    --cc=linux-mm@kvack.org \
    --cc=ryabinin.a.a@gmail.com \
    --cc=yanjun.zhu@linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox