From: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@intel.com>
To: <systemtap@sources.redhat.com>
Subject: FW: Kprobes might be stealing int3
Date: Thu, 23 Feb 2006 23:34:00 -0000 [thread overview]
Message-ID: <44BDAFB888F59F408FAE3CC35AB470410313D050@orsmsx409> (raw)
I went little further and found why the application is segmentation
fault'ing.
In the kprobes_handler() code, we are checking
If (*addr != BREAK_INSTRUCTION) and this is where the
app is crashing since we are trying to dereference this address
which is not a linear address.
I would be happy to tryout any fix that any one provides.
Thanks,
Anil
-----Original Message-----
From: Keshavamurthy Anil S [mailto:anil.s.keshavamurthy@intel.com]
Sent: Thursday, February 23, 2006 12:11 PM
To: Systemtap
Cc: Keshavamurthy, Anil S
Subject: Kprobes might be stealing int3
Hi,
I tried running the below program on both
x86_64 and i386 and on both architecture,
if the kernel is compiled with CONFIG_KPROBES,
my below application segmentation faults.
On kernel where CONFIG_KPROBES set to N, the
same test program passes.
Here goes the test program...
-------------------------
#include <stdlib.h>
#include <signal.h>
void my_trap(int sig)
{
printf("Test passed, all OK\n");
exit(0);
}
int main()
{
signal(SIGTRAP, my_trap);
asm volatile (".byte 0xcd,3");
printf("Stolen interrupt, very bad!\n");
}
----------------------------------
reply other threads:[~2006-02-23 23:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=44BDAFB888F59F408FAE3CC35AB470410313D050@orsmsx409 \
--to=anil.s.keshavamurthy@intel.com \
--cc=systemtap@sources.redhat.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).