Jason Wessel 3751d3e85c x86,kgdb: Fix DEBUG_RODATA limitation using text_poke()
There has long been a limitation using software breakpoints with a
kernel compiled with CONFIG_DEBUG_RODATA going back to 2.6.26. For
this particular patch, it will apply cleanly and has been tested all
the way back to 2.6.36.

The kprobes code uses the text_poke() function which accommodates
writing a breakpoint into a read-only page.  The x86 kgdb code can
solve the problem similarly by overriding the default breakpoint
set/remove routines and using text_poke() directly.

The x86 kgdb code will first attempt to use the traditional
probe_kernel_write(), and next try using a the text_poke() function.
The break point install method is tracked such that the correct break
point removal routine will get called later on.

Cc: x86@kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: stable@vger.kernel.org # >= 2.6.36
Inspried-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2012-03-29 17:41:25 -05:00
..
2011-09-27 18:08:04 +02:00
2011-12-12 14:26:10 -08:00
2011-12-08 10:22:07 -08:00
2011-12-08 10:22:07 -08:00
2011-07-01 10:37:14 +02:00
2011-07-26 16:49:47 -07:00
2011-02-17 14:59:22 +01:00
2011-12-21 16:26:03 -08:00
2011-03-18 10:39:30 +01:00
2011-12-06 10:02:38 +01:00
2012-01-07 12:19:37 +01:00
2011-08-04 16:13:49 -07:00
2011-03-18 10:39:30 +01:00
2011-12-05 12:17:29 +01:00