[Kgdb-bugreport] [PATCH] kgdb: fix potential out-of-bounds access

2015-01-12 Thread Brian Norris
CPU arrays (e.g., kgdb_info[]) are indexed from 0 (inclusive) to NR_CPUS (exclusive). Pointed out by Coverity, CID 1262269 Signed-off-by: Brian Norris Cc: Jason Wessel --- Untested kernel/debug/kdb/kdb_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/debug/kdb

Re: [Kgdb-bugreport] [PATCH] kgdb: fix potential out-of-bounds access

2015-01-12 Thread Brian Norris
On Mon, Jan 12, 2015 at 11:54 AM, Jason Wessel wrote: > This is actually already fixed a different way in the kgdb-next: > > https://git.kernel.org/cgit/linux/kernel/git/jwessel/kgdb.git/commit/?h=kgdb-next&id=c7d9ebf81c456dc185c8eae9e293bfdccf2a65f5 Great. Thanks for the quick response. Brian

Re: [Kgdb-bugreport] [PATCH] kgdb: fix potential out-of-bounds access

2015-01-12 Thread Jason Wessel
On 01/12/2015 01:45 PM, Brian Norris wrote: > CPU arrays (e.g., kgdb_info[]) are indexed from 0 (inclusive) to NR_CPUS > (exclusive). > > Pointed out by Coverity, CID 1262269 > > Signed-off-by: Brian Norris > Cc: Jason Wessel > --- > Untested > > kernel/debug/kdb/kdb_main.c | 2 +- > 1 file chan