aboutsummaryrefslogtreecommitdiff
path: root/kernel/debug/kdb/kdb_io.c
diff options
context:
space:
mode:
authorGravatar Dan Carpenter <dan.carpenter@oracle.com> 2019-05-06 15:50:18 +0300
committerGravatar Daniel Thompson <daniel.thompson@linaro.org> 2019-05-12 09:50:44 +0100
commitb586627e10f57ee3aa8f0cfab0d6f7dc4ae63760 (patch)
tree179466e3716826e61ead28ece56e385e4b99b2b7 /kernel/debug/kdb/kdb_io.c
parentkdb: Get rid of broken attempt to print CCVERSION in kdb summary (diff)
downloadlinux-b586627e10f57ee3aa8f0cfab0d6f7dc4ae63760.tar.gz
linux-b586627e10f57ee3aa8f0cfab0d6f7dc4ae63760.tar.bz2
linux-b586627e10f57ee3aa8f0cfab0d6f7dc4ae63760.zip
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: 5d5314d6795f ("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>
Diffstat (limited to 'kernel/debug/kdb/kdb_io.c')
0 files changed, 0 insertions, 0 deletions