linux-yocto/kernel/debug/kdb
Dan Carpenter 67b69c426a kdb: do a sanity check on the cpu in kdb_per_cpu()
[ Upstream commit b586627e10 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:46:34 +01:00
..
.gitignore
kdb_bp.c
kdb_bt.c kdb: Don't back trace on a cpu that didn't round up 2019-02-12 19:46:09 +01:00
kdb_cmds
kdb_debugger.c kdb: Don't back trace on a cpu that didn't round up 2019-02-12 19:46:09 +01:00
kdb_io.c
kdb_keyboard.c
kdb_main.c kdb: do a sanity check on the cpu in kdb_per_cpu() 2020-01-27 14:46:34 +01:00
kdb_private.h
kdb_support.c
Makefile