lkml.org 
[lkml]   [2013]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kdb: kgdb: CONFIG_DEBUG_RODATA setting?
On 04/09/2013 08:06 AM, Sedat Dilek wrote:

> config DEBUG_RODATA
> bool "Write protect kernel read-only data structures"
> - default y
> depends on DEBUG_KERNEL
> + default n if KGDB
> + default y
> ---help---
> Mark the kernel read-only data as write-protected in the pagetables,
> in order to catch accidental (and incorrect) writes to such const


This is wrong and should not be merged.

A) You should not change these defaults in this manner

B) You have pointed out that the documentation is currently
incorrect. The CONFIG_DEBUG_RODATA constraints were removed some time
ago, per commit 3751d3e85cf693e10e2c47c03c8caa65e171099b (x86,kgdb:
Fix DEBUG_RODATA limitation using text_poke())

Jason.



\
 
 \ /
  Last update: 2013-04-09 16:21    [W:1.144 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site