2005-09-29 00:43:52

by Zhang, Yanmin

[permalink] [raw]
Subject: [PATCH] utilization of kprobe_mutex is incorrect on x86_64

<<kprobe_incorrect_kprobe_mutex_2.6.14-rc2_x86_64.patch>> I found it
when reading the source codes. Basically, the bug could break
kprobe_insn_pages under multi-thread environment. PPC arch also has the
problem.
Here is the patch against x86_64.

Signed-off-by: Zhang Yanmin <[email protected]>



Attachments:
kprobe_incorrect_kprobe_mutex_2.6.14-rc2_x86_64.patch (943.00 B)
kprobe_incorrect_kprobe_mutex_2.6.14-rc2_x86_64.patch

2005-09-29 13:15:32

by Andi Kleen

[permalink] [raw]
Subject: Re: [discuss] [PATCH] utilization of kprobe_mutex is incorrect on x86_64

On Thu, Sep 29, 2005 at 08:43:44AM +0800, Zhang, Yanmin wrote:
> <<kprobe_incorrect_kprobe_mutex_2.6.14-rc2_x86_64.patch>> I found it
> when reading the source codes. Basically, the bug could break
> kprobe_insn_pages under multi-thread environment. PPC arch also has the
> problem.

Can you describe what the problem actually is?

-Andi

> Here is the patch against x86_64.
>
> Signed-off-by: Zhang Yanmin <[email protected]>
>
>