aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJason Wessel <[email protected]>2012-03-23 09:35:05 -0500
committerJason Wessel <[email protected]>2012-03-29 17:41:25 -0500
commit3751d3e85cf693e10e2c47c03c8caa65e171099b (patch)
tree65d123dac17103f6862831bcb4271b263805fd9f /net/lapb/lapb_subr.c
parent98b54aa1a2241b59372468bd1e9c2d207bdba54b (diff)
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: [email protected] Cc: Thomas Gleixner <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: [email protected] # >= 2.6.36 Inspried-by: Masami Hiramatsu <[email protected]> Signed-off-by: Jason Wessel <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions