On Tue, Jul 10, 2012 at 10:58:35AM +0800, wfg@linux.intel.com wrote: > Hi Jason, > > This HEAD commit in kgdb-next makes kgdb boot time tests freeze. > The kernel is tested inside kvm with the attached config. > > 3751d3e85cf693e10e2c47c03c8caa65e171099b is the first bad commit > commit 3751d3e85cf693e10e2c47c03c8caa65e171099b > Author: Jason Wessel > Date: Fri Mar 23 09:35:05 2012 -0500 > > x86,kgdb: Fix DEBUG_RODATA limitation using text_poke() Jason, now that commit is merged into Linus' tree and showing up in various other development trees that base on v3.6-rc1. kernel boots reliably freeze on: [ 4.527958] Write protecting the kernel read-only data: 10240k [ 4.529326] debug: unmapping init memory ffff880001522000..ffff880001600000 [ 4.530566] debug: unmapping init memory ffff880001829000..ffff880001a00000 [ 4.549375] KGDB: BP remove failed: ffffffff81035be9 The freeze will disappear if removing CONFIG_KGDB*. It will change into this oops if reverting the commit (either doing it on v3.6-rc1, or by checking out 3751d3e85c~1): [ 3.027423] kgdbts: ERROR PUT: end of test buffer on 'do_fork_test' line 2 expected T0* got $W01#b8 [ 3.029281] ------------[ cut here ]------------ [ 3.030154] WARNING: at /c/wfg/linux/drivers/misc/kgdbts.c:813 run_simple_test+0x24f/0x277() [ 3.031624] Pid: 117, comm: reboot Not tainted 3.6.0-rc1-bisect-00198-gb1b7253 #47 [ 3.033271] Call Trace: [ 3.033694] [] ? run_simple_test+0x24f/0x277 [ 3.034881] [] warn_slowpath_common+0x5d/0x74 [ 3.036026] [] warn_slowpath_null+0x15/0x1a [ 3.037285] [] run_simple_test+0x24f/0x277 [ 3.038436] [] kgdbts_put_char+0x18/0x1a [ 3.039463] [] gdbstub_exit+0xc6/0xe2 [ 3.040568] [] dbg_notify_reboot+0x2a/0x2e [ 3.041632] [] notifier_call_chain+0x32/0x5c [ 3.042760] [] __blocking_notifier_call_chain+0x47/0x60 [ 3.044054] [] blocking_notifier_call_chain+0xf/0x11 [ 3.045390] [] kernel_restart_prepare+0x18/0x38 [ 3.046511] [] kernel_restart+0xf/0x4b [ 3.047540] [] sys_reboot+0x129/0x15e [ 3.048732] [] ? trace_hardirqs_off+0xd/0xf [ 3.049784] [] ? local_clock+0x65/0x8b [ 3.050786] [] ? lock_release_holdtime+0x9e/0xa3 [ 3.051964] [] ? do_raw_spin_unlock+0xa7/0xb0 [ 3.053177] [] ? sysret_check+0x22/0x5d [ 3.054124] [] ? trace_hardirqs_on_caller+0x125/0x181 [ 3.055388] [] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 3.056667] [] system_call_fastpath+0x16/0x1b Attached is the full dmesg for the above oops and config. Thanks, Fengguang