From: David Mosberger <davidm@napali.hpl.hp.com>
To: Keshavamurthy Anil S <anil.s.keshavamurthy@intel.com>
Cc: davidm@hpl.hp.com, akpm@osdl.org,
Linux Kernel <linux-kernel@vger.kernel.org>,
Linux IA64 <linux-ia64@vger.kernel.org>
Subject: Re: [patch][ia64]Refuse kprobe on ivt code
Date: Fri, 24 Jun 2005 19:10:38 +0000 [thread overview]
Message-ID: <17084.23214.237084.224128@napali.hpl.hp.com> (raw)
In-Reply-To: <20050624114545.A4826@unix-os.sc.intel.com>
>>>>> On Fri, 24 Jun 2005 11:45:46 -0700, Keshavamurthy Anil S <anil.s.keshavamurthy@intel.com> said:
Anil> On Thu, Jun 23, 2005 at 06:38:33PM -0700, David Mosberger wrote:
>> Please do the checking based on the .text.ivt section instead (and add
>> the necessary labels to vmlinux.S and asm-ia64/sections.h).
Anil> Subject: Refuse kprobe insert on IVT code
Anil> Not safe to insert kprobes on IVT code.
Anil> This patch checks to see if the address on which Kprobes is being
Anil> inserted is in ivt code and if it is in ivt code then
Anil> refuse to register kprobe.
Anil> Take 1: This patch is based on review comments from David Mosberger,
Anil> now checking based on .text.ivt
Anil> Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Looks fine, except:
Anil> +/* Returns non-zero if the addr is in the Interrupt Vector Table */
Anil> +static inline int in_ivt_functions(unsigned long addr)
Anil> +{
Anil> + extern char __start_ivt_text[], __end_ivt_text[];
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Anil> + return (addr >= (unsigned long)__start_ivt_text
Anil> + && addr < (unsigned long)__end_ivt_text);
Anil> +}
Surely you meant to use the declaration from sections.h instead?
Thanks,
--david
next prev parent reply other threads:[~2005-06-24 19:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 0:28 [patch][ia64]Refuse kprobe on ivt code Keshavamurthy Anil S
2005-06-24 1:38 ` David Mosberger
2005-06-24 18:45 ` Keshavamurthy Anil S
2005-06-24 19:10 ` David Mosberger [this message]
2005-06-24 19:23 ` [patch][ia64]Refuse kprobe on ivt code- take 2 Keshavamurthy Anil S
2005-06-24 20:37 ` David Mosberger
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=17084.23214.237084.224128@napali.hpl.hp.com \
--to=davidm@napali.hpl.hp.com \
--cc=akpm@osdl.org \
--cc=anil.s.keshavamurthy@intel.com \
--cc=davidm@hpl.hp.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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