kernel_optimize_test/kernel/debug
Dan Carpenter b586627e10 kdb: do a sanity check on the cpu in kdb_per_cpu()
The "whichcpu" comes from argv[3].  The cpu_online() macro looks up the
cpu in a bitmap of online cpus, but if the value is too high then it
could read beyond the end of the bitmap and possibly Oops.

Fixes: 5d5314d679 ("kdb: core for kgdb back end (1 of 2)")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
2019-05-12 09:50:44 +01:00
..
kdb kdb: do a sanity check on the cpu in kdb_per_cpu() 2019-05-12 09:50:44 +01:00
debug_core.c kdb: Don't back trace on a cpu that didn't round up 2018-12-30 08:31:23 +00:00
debug_core.h kgdb: Don't round up a CPU that failed rounding up before 2018-12-30 08:29:13 +00:00
gdbstub.c gdbstub: Replace strcpy() by strscpy() 2019-05-02 13:40:27 +01:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00