Re: [PATCH 3/3] Make jprobes a little safer for users

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Abhishek Sagar
Date: Monday, June 25, 2007 - 11:19 pm

On 6/26/07, Michael Ellerman <michael@ellerman.id.au> wrote:


A similar cleanup is possible even for return probes then. I wonder if
there are any kprobe related scenarios where the executable code may
be located outside the core kernel text region (e.g, ITCM?). In that
case would it also be wrong to assume that the jprobe handler may be
situated outside the kernel core text / module  region? Would it then
make sense to move this check from register_jprobe() to the arch
dependent code?


Seems like you're checking for the jprobe handler to be within
kernel/module range. Why not narrow this down to just module range
(!module_text_address(addr), say)? Core kernel functions would not be
ending with a 'jprobe_return()' anyway.

--
Abhishek Sagar

-
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/3] Make struct jprobe.entry a void *, Michael Ellerman, (Mon Jun 25, 6:48 pm)
[PATCH 2/3] Remove JPROBE_ENTRY(), Michael Ellerman, (Mon Jun 25, 6:48 pm)
[PATCH 3/3] Make jprobes a little safer for users, Michael Ellerman, (Mon Jun 25, 6:48 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Andrew Morton, (Mon Jun 25, 7:00 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Michael Ellerman, (Mon Jun 25, 7:06 pm)
[PATCH 1/1] Add a prototype for arch_deref_entry_point(), Michael Ellerman, (Mon Jun 25, 7:24 pm)
Re: [PATCH 1/3] Make struct jprobe.entry a void *, Ananth N Mavinakayan ..., (Mon Jun 25, 8:51 pm)
Re: [PATCH 1/3] Make struct jprobe.entry a void *, Ananth N Mavinakayan ..., (Mon Jun 25, 8:59 pm)
Re: [PATCH 1/3] Make struct jprobe.entry a void *, Michael Ellerman, (Mon Jun 25, 9:35 pm)
Re: [PATCH 2/3] Remove JPROBE_ENTRY(), Christoph Hellwig, (Mon Jun 25, 10:52 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Christoph Hellwig, (Mon Jun 25, 10:53 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Michael Ellerman, (Mon Jun 25, 11:03 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Abhishek Sagar, (Mon Jun 25, 11:19 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Michael Ellerman, (Mon Jun 25, 11:34 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Andrew Morton, (Mon Jun 25, 11:51 pm)
Re: [PATCH 3/3] Make jprobes a little safer for users, Abhishek Sagar, (Tue Jun 26, 12:54 am)