[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <863e9df20706260054p664635beme3081da113844c2@mail.gmail.com>
Date: Tue, 26 Jun 2007 13:24:36 +0530
From: "Abhishek Sagar" <sagar.abhishek@...il.com>
To: michael@...erman.id.au
Cc: linux-kernel@...r.kernel.org, linuxppc-dev@...abs.org,
linux-ia64@...r.kernel.org, linux-arch@...r.kernel.org,
"Andrew Morton" <akpm@...l.org>, "Christoph Hellwig" <hch@....de>,
anil.s.keshavamurthy@...el.com, ananth@...ibm.com
Subject: Re: [PATCH 3/3] Make jprobes a little safer for users
On 6/26/07, Michael Ellerman <michael@...erman.id.au> wrote:
> It did occur to me that someone might be doing something crazy like
> branching to code that's not in the kernel/module text - but I was
> hoping that wouldn't be the case. I'm not sure what ITCM is?
The reference to tightly coupled memory (ITCM) was just to have you
consider the possibility of the jprobe handler being outside kernel
text region. Totally paranoid really.
> > > int __kprobes register_jprobe(struct jprobe *jp)
> > > {
> > > + unsigned long addr = arch_deref_entry_point(jp->entry);
> > > +
> > > + if (!kernel_text_address(addr))
> > > + return -EINVAL;
> >
> > 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.
>
> There's jprobe code in net/ipv4/tcp_probe.c and net/dccp/probe.c that
> can be builtin or modular, so I think kernel_text_address() is right.
Ok..thanks for that clarification.
--
Abhishek Sagar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists