Hi, On Mon, May 6, 2019 at 5:50 AM Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > > 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@xxxxxxxxxx> > --- > kernel/debug/kdb/kdb_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Douglas Anderson <dianders@xxxxxxxxxxxx>