[PATCH] kgdb: disable do_fork and sys_open tests on boot when DEBUG_RODATA is enabled

2016-01-27 Thread Yang Shi
kgdbts do_fork and sys_open tests are scheduled before mark_rodata_ro gets called when kgdbts is run on boot. But, the breakpoint is removed by a kernel thread which may be scheduled after mark_rodata_ro is called. So, this will cause the below kernel panic: KGDB: BP remove failed:

[PATCH] kgdb: disable do_fork and sys_open tests on boot when DEBUG_RODATA is enabled

2016-01-27 Thread Yang Shi
kgdbts do_fork and sys_open tests are scheduled before mark_rodata_ro gets called when kgdbts is run on boot. But, the breakpoint is removed by a kernel thread which may be scheduled after mark_rodata_ro is called. So, this will cause the below kernel panic: KGDB: BP remove failed: