All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [BUG] Kprobes fails on 2.6.25-rc3-mm1 (x86) systems, if CONFIG_DEBUG_RODATA is set.
@ 2008-03-06 12:41 Srinivasa DS
  2008-03-06 12:55 ` Mathieu Desnoyers
  0 siblings, 1 reply; 11+ messages in thread
From: Srinivasa DS @ 2008-03-06 12:41 UTC (permalink / raw
  To: Andrew Morton, linux-kernel, Mathieu Desnoyers
  Cc: ananth, Jim Keniston, srikar, SystemTAP

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.

Thanks
 Srinivasa DS
 LTC-IBM
 




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-03-11 12:15 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.