All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
To: Srinivasa DS <srinivasa@in.ibm.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, ananth@in.ibm.com,
	Jim Keniston <jkenisto@us.ibm.com>,
	srikar@linux.vnet.ibm.com,
	SystemTAP <systemtap@sources.redhat.com>
Subject: Re: [BUG] Kprobes fails on 2.6.25-rc3-mm1 (x86) systems, if CONFIG_DEBUG_RODATA is set.
Date: Thu, 6 Mar 2008 07:55:51 -0500	[thread overview]
Message-ID: <20080306125551.GA1597@Krystal> (raw)
In-Reply-To: <200803061811.27555.srinivasa@in.ibm.com>

* Srinivasa DS (srinivasa@in.ibm.com) wrote:
> Insertion of kprobe module causes oops on 2.6.25-rc3-mm1 (x86) systems if we 
> enable CONFIG_DEBUG_RODATA.  While registering the probe, memcpy() fails to 
> copy breakpoint instruction to the instruction address and generates the 
> oops.
> 
> BUG: unable to handle kernel paging request at ffffffff8047d1a7
> IP: [<ffffffff8047ff62>] text_poke+0xa/0x10
> PGD 203067 PUD 207063 PMD 7e191163 PTE 47d161
> Oops: 0003 [1] PREEMPT SMP
> ................................................
> 
> This is because, Mathieu's patch (http://lkml.org/lkml/2008/2/2/226) makes 
> entire text segment as READONLY, if we enable CONFIG_DEBUG_RODATA. 
> 
> So reverting this patch or new patch, which considers kprobes while deciding  
> boundary for setting readonly pages might solve the probelm.
> 

Hi,

Are you running under Xen, lguest, kvm.. ?

Mathieu

> Thanks
>  Srinivasa DS
>  LTC-IBM
>  
> 
> 
> 

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68

  reply	other threads:[~2008-03-06 12:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-06 12:41 [BUG] Kprobes fails on 2.6.25-rc3-mm1 (x86) systems, if CONFIG_DEBUG_RODATA is set Srinivasa DS
2008-03-06 12:55 ` Mathieu Desnoyers [this message]
2008-03-06 13:33   ` Srinivasa DS
2008-03-06 13:48     ` [PATCH] x86 - Enhance DEBUG_RODATA support - alternatives Mathieu Desnoyers
2008-03-06 14:01       ` Ingo Molnar
2008-03-06 13:59         ` pageexec
2008-03-06 15:52           ` Ingo Molnar
2008-03-06 16:21           ` Andi Kleen
2008-03-06 17:25           ` Mathieu Desnoyers
2008-03-11 12:17             ` Andi Kleen
2008-03-06 14:18         ` Mathieu Desnoyers

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=20080306125551.GA1597@Krystal \
    --to=mathieu.desnoyers@polymtl.ca \
    --cc=akpm@linux-foundation.org \
    --cc=ananth@in.ibm.com \
    --cc=jkenisto@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=srikar@linux.vnet.ibm.com \
    --cc=srinivasa@in.ibm.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 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.