From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: henning.richter@domain.hid
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] gatekeeper/0
Date: Tue, 12 May 2009 13:58:21 +0200 [thread overview]
Message-ID: <4A09645D.4090003@domain.hid> (raw)
In-Reply-To: <OF251AD21B.277C167E-ONC12575B4.003ABC22-C12575B4.003B2CCA@datacon.at>
henning.richter@domain.hid wrote:
>> And then tries to access the same room on the stack believing that the
>> frame pointer or pc is stored there. Game over.
>>
>> Modify profile_pc function declaration to add the "notrace" qualifier.
>>
>> This bug is a red herring, this is a simple effect of enabling the
> tracing.
>
> --
> Gilles.
>
> Can you give me a hint how to do that or is there sth. to read about?
>
> Henning
Try:
diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
index 6d34d95..abfd422 100644
--- a/arch/x86/include/asm/ptrace.h
+++ b/arch/x86/include/asm/ptrace.h
@@ -134,7 +134,7 @@ struct pt_regs {
struct cpuinfo_x86;
struct task_struct;
-extern unsigned long profile_pc(struct pt_regs *regs);
+extern unsigned long notrace profile_pc(struct pt_regs *regs);
extern unsigned long
convert_ip_to_linear(struct task_struct *child, struct pt_regs *regs);
If that is not enough, add notrace where profile_pc is implemented too.
--
Gilles.
next parent reply other threads:[~2009-05-12 11:58 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OF251AD21B.277C167E-ONC12575B4.003ABC22-C12575B4.003B2CCA@datacon.at>
2009-05-12 11:58 ` Gilles Chanteperdrix [this message]
2009-05-12 11:59 ` [Xenomai-help] gatekeeper/0 Gilles Chanteperdrix
2011-01-18 20:23 Waldemar Valdas Bancewicz
2011-01-19 11:31 ` Philippe Gerum
[not found] <OF8AF478EE.52F5DF3F-ONC12575B5.004203DE-C12575B5.0042CC16@domain.hid>
2009-05-14 13:22 ` Gilles Chanteperdrix
-- strict thread matches above, loose matches on Subject: below --
2009-05-13 12:21 Gilles Chanteperdrix
[not found] <OF4972A89C.E992E0BC-ONC12575B4.002430E6-C12575B4.0029BFB6@domain.hid>
2009-05-12 10:05 ` Gilles Chanteperdrix
2009-05-12 12:14 ` Gilles Chanteperdrix
[not found] <OFCB7F621A.65B14ECB-ONC12575B3.0039F826-C12575B3.0039F8AC@datacon.at>
2009-05-11 12:20 ` Gilles Chanteperdrix
[not found] <OFBB398D5A.1ED06DE3-ONC12575B0.00262F81-C12575B0.0026A81A@datacon.at>
2009-05-08 15:01 ` Gilles Chanteperdrix
[not found] <OF2606C557.B1D5A7EE-ONC12575AF.00492678-C12575AF.0049CCCC@datacon.at>
2009-05-07 13:29 ` Gilles Chanteperdrix
[not found] <OFEAD5CF08.F6D90D65-ONC12575AF.0040F159-C12575AF.00433C0E@datacon.at>
2009-05-07 12:26 ` Gilles Chanteperdrix
[not found] <OF4D358DA8.8C7A5638-ONC12575AF.00332A73-C12575AF.003367B6@domain.hid>
2009-05-07 9:49 ` Gilles Chanteperdrix
[not found] <OF95BAAB6A.7BC234E8-ONC12575AF.003214DD-C12575AF.00321D02@domain.hid>
2009-05-07 9:08 ` Gilles Chanteperdrix
[not found] <OFAD630900.6B7052D5-ONC12575AF.003134DD-C12575AF.003171E4@domain.hid>
2009-05-07 9:02 ` Gilles Chanteperdrix
[not found] <OF4028FAA7.2097674F-ONC12575AF.002D7049-C12575AF.002D8EA7@domain.hid>
2009-05-07 8:44 ` Gilles Chanteperdrix
2009-05-07 8:54 ` henning.richter
2009-05-07 8:56 ` Gilles Chanteperdrix
[not found] <OF649EE419.F6596615-ONC12575AF.001F4A33-C12575AF.00268522@domain.hid>
2009-05-07 7:28 ` Gilles Chanteperdrix
2009-05-07 7:57 ` henning.richter
2009-05-07 8:07 ` Gilles Chanteperdrix
2009-05-05 13:12 henning.richter
2009-05-05 13:36 ` Gilles Chanteperdrix
2009-05-05 13:44 ` henning.richter
2009-05-05 13:47 ` Gilles Chanteperdrix
2009-05-06 7:21 ` henning.richter
2009-05-06 7:26 ` Gilles Chanteperdrix
2009-05-06 9:48 ` Gilles Chanteperdrix
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=4A09645D.4090003@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=henning.richter@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.