aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/kgdb.c
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2009-12-11 08:43:18 -0600
committerJason Wessel <jason.wessel@windriver.com>2009-12-11 08:43:18 -0600
commit8097551d9ab9b9e3630694ad1bc6e12c597c515e (patch)
tree6d1f172a792f0acb0b3313e743f2b8bad791b270 /kernel/kgdb.c
parent028e7b175970be8fca58bfd7d61cc375babe40b7 (diff)
downloadkernel_goldelico_gta04-8097551d9ab9b9e3630694ad1bc6e12c597c515e.zip
kernel_goldelico_gta04-8097551d9ab9b9e3630694ad1bc6e12c597c515e.tar.gz
kernel_goldelico_gta04-8097551d9ab9b9e3630694ad1bc6e12c597c515e.tar.bz2
kgdb,x86: do not set kgdb_single_step on x86
On an SMP system the kgdb_single_step flag has the possibility to indefinitely hang the system in the case. Consider the case where, CPU 1 has the schedule lock and CPU 0 is set to single step, there is no way for CPU 0 to run another task. The easy way to observe the problem is to make 2 cpus busy, and run the kgdb test suite. You will see that it hangs the system very quickly. while [ 1 ] ; do find /proc > /dev/null 2>&1 ; done & while [ 1 ] ; do find /proc > /dev/null 2>&1 ; done & echo V1 > /sys/module/kgdbts/parameters/kgdbts The side effect of this patch is that there is the possibility to miss a breakpoint in the case that a single step operation was executed to step over a breakpoint in common code. The trade off of the missed breakpoint is preferred to hanging the kernel. This can be fixed in the future by using kprobes or another strategy to step over planted breakpoints with out of line execution. CC: Ingo Molnar <mingo@elte.hu> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel/kgdb.c')
0 files changed, 0 insertions, 0 deletions