LKML Archive on
 help / color / Atom feed
From: Masami Hiramatsu <>
To: Steven Rostedt <>
Cc: Arnaldo Carvalho de Melo <>,
	Ingo Molnar <>,,,
	Frederic Weisbecker <>,
	Ingo Molnar <>,
	"Frank Ch. Eigler" <>
Subject: Re: [PATCH 1/4] [BUGFIX] ftrace/kprobes: Fix not to delete probes if in use
Date: Mon, 10 Oct 2011 23:14:59 +0900
Message-ID: <> (raw)
In-Reply-To: <>

(2011/10/08 14:00), Steven Rostedt wrote:
> On Tue, 2011-10-04 at 19:44 +0900, Masami Hiramatsu wrote:
>> Fix kprobe-tracer not to delete a probe if the probe is in use.
>> In that case, delete operation will return -EBUSY.
>> This bug can cause a kernel panic if enabled probes are deleted
>> during perf record.
>> (Add some probes on functions)
>> # perf record -e probe:\* -aR sh
>> sh-4.2# perf probe --del probe:\*
>> sh-4.2# exit
>> (kernel panic)
> Hi Masami,
> I was able to reproduce the panic. I'm currently running patch 1 and 4
> through my standard tests before pushing this out as urgent.
> Does this exist in previous kernels? If so, I'll also add the stable tag
> to it.

I guess so, since the perf's tracepoint handler locks target module
while recording, it is required for perf not to remove undergo events.

> Could you resend the trivial patches when you make your necessary
> corrections. They are not important as these are and I'll add them to a
> separate queue.

Right, that's not a matter. The first patch should be merged soon.

Thank you,

> Thanks!
> -- Steve
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to
> More majordomo info at
> Please read the FAQ at

Software Platform Research Dept. Linux Technology Center
Hitachi, Ltd., Yokohama Research Laboratory

  reply index

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-04 10:44 Masami Hiramatsu
2011-10-04 10:44 ` [PATCH 2/4] [TRIVIAL] ftrace/kprobes: Fix an warning typo Masami Hiramatsu
2011-10-04 15:58   ` Valdis.Kletnieks
2011-10-05  4:08     ` Masami Hiramatsu
2011-10-04 10:44 ` [PATCH 3/4] [TRIVIAL] perftools: Fix a typo of command name as trace-cmd Masami Hiramatsu
2011-10-04 10:45 ` [PATCH 4/4] [BUGFIX] perf probe: Fix to show correct error string Masami Hiramatsu
2011-10-08  5:00 ` [PATCH 1/4] [BUGFIX] ftrace/kprobes: Fix not to delete probes if in use Steven Rostedt
2011-10-10 14:14   ` Masami Hiramatsu [this message]
2011-10-10 19:11     ` Steven Rostedt

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:

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

  git send-email \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

LKML Archive on

Archives are clonable:
	git clone --mirror lkml/git/0.git
	git clone --mirror lkml/git/1.git
	git clone --mirror lkml/git/2.git
	git clone --mirror lkml/git/3.git
	git clone --mirror lkml/git/4.git
	git clone --mirror lkml/git/5.git
	git clone --mirror lkml/git/6.git
	git clone --mirror lkml/git/7.git
	git clone --mirror lkml/git/8.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 lkml lkml/ \
	public-inbox-index lkml

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone