From: "Patrick Andrieux" <patrick.andrieux@gmail.com>
To: "Ian McDonald" <ian.mcdonald@jandi.co.nz>
Cc: "Chuck Ebbert" <cebbert@redhat.com>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
prasanna@in.ibm.com, ananth@in.ibm.com,
anil.s.keshavamurthy@intel.com,
"David S. Miller" <davem@davemloft.net>,
"DCCP Mailing List" <dccp@vger.kernel.org>,
jbeulich@novell.com
Subject: Re: [BUG] Fwd: segfault : modprobe dccp_probe/tcp_probe
Date: Thu, 7 Jun 2007 11:24:16 +0100 [thread overview]
Message-ID: <fca78b970706070324i23b4f6d7n3da88507e0840400@mail.gmail.com> (raw)
In-Reply-To: <5640c7e00706061612h62074699wdbd2725654a164@mail.gmail.com>
Hi Ian,
Not sure it's still useful after patch provide by Prasanna...
But I tried to turn off CONFIG_DEBUG_RODATA and both `tcp_probe' and
`dccp_probe' can be load properly.
I also ran iperf test (for dccp) and it works.
Patrick.
On 07/06/07, Ian McDonald <ian.mcdonald@jandi.co.nz> wrote:
> On 6/7/07, Chuck Ebbert <cebbert@redhat.com> wrote:
> > On 06/06/2007 04:47 PM, Ian McDonald wrote:
> > > Hi there,
> > >
> > > We've seen a report of a problem with dccp_probe as shown below. The
> > > user has also verified that it occurs in tcp_probe as well. This is on
> > > Dave Miller's tree but that currently tracks Linus' tree quite
> > > closely. I do note that it is around 2.6.22-rc2 timeframe so there is
> > > a possibility fixes may have gone in since.
> > >
> >
> > It faulted when it tried to write the breakpoint instruction into the
> > running kernel's executable code. Apparently the kernel code is now marked
> > read-only?
> >
> >
> Yes it would appear to be the case as user has CONFIG_DEBUG_RODATA
> set. Patrick - can you turn this off and retest? It's under Kernel
> Hacking, Write protect kernel read only data structures.
>
> The list of commits that I see around this are at:
> http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=HEAD&st=commit&s=DEBUG_RODATA
>
> I suspect it's probably one of the latter ones giving the timing.
>
> I guess there are a couple of solutions here - either make kprobes
> conflict with CONFIG_DEBUG_RODATA so you can do one or the other, or
> look into more detail what access kprobes need.
>
> Ian
> --
> Web: http://wand.net.nz/~iam4/
> Blog: http://iansblog.jandi.co.nz
> WAND Network Research Group
>
prev parent reply other threads:[~2007-06-07 10:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 20:47 Ian McDonald
2007-06-06 22:55 ` Chuck Ebbert
2007-06-06 23:12 ` Ian McDonald
2007-06-07 4:22 ` [PATCH] Kprobes i386 fix for mark ro data S. P. Prasanna
2007-06-07 4:24 ` [PATCH] Kprobes x86_64 " S. P. Prasanna
2007-06-10 6:24 ` [PATCH] Kprobes i386 " Ian McDonald
2007-06-11 18:36 ` Patrick Andrieux
2007-06-07 10:24 ` Patrick Andrieux [this message]
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=fca78b970706070324i23b4f6d7n3da88507e0840400@mail.gmail.com \
--to=patrick.andrieux@gmail.com \
--cc=ananth@in.ibm.com \
--cc=anil.s.keshavamurthy@intel.com \
--cc=cebbert@redhat.com \
--cc=davem@davemloft.net \
--cc=dccp@vger.kernel.org \
--cc=ian.mcdonald@jandi.co.nz \
--cc=jbeulich@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=prasanna@in.ibm.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
all inboxes | Powered by JetHome®