remarkable-linux/kernel/debug
John Blackwood f7c82d5a3c kdb: A fix for kdb command table expansion
When locally adding in some additional kdb commands, I stumbled
across an issue with the dynamic expansion of the kdb command table.
When the number of kdb commands exceeds the size of the statically
allocated kdb_base_commands[] array, additional space is allocated in
the kdb_register_repeat() routine.

The unused portion of the newly allocated array was not being initialized
to zero properly and this would result in segfaults when help '?' was
executed or when a search for a non-existing command would traverse the
command table beyond the end of valid command entries and then attempt
to use the non-zeroed area as actual command entries.

Signed-off-by: John Blackwood <john.blackwood@ccur.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2013-03-02 08:52:16 -06:00
..
kdb kdb: A fix for kdb command table expansion 2013-03-02 08:52:16 -06:00
debug_core.c KGDB/KDB fixes and cleanups 2012-10-13 11:16:58 +09:00
debug_core.h debug_core: refactor locking for master/slave cpus 2010-10-22 15:34:13 -05:00
gdbstub.c kgdb,debug-core,gdbstub: Hook the reboot notifier for debugger detach 2012-03-22 15:07:15 -05:00
Makefile