]> err.no Git - linux-2.6/commit
[PATCH] mpparse: prevent table index out-of-bounds
authorRandy Dunlap <rdunlap@xenotime.net>
Tue, 11 Apr 2006 05:53:13 +0000 (22:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:34 +0000 (06:18 -0700)
commitc0ec31ad334fb83e53f2130eacbb44a639f77967
tree449070f25aa346dab179325d4eafc305bb6557b8
parente39632faa0efbddc3aed4f8658f2fa0a8afa2717
[PATCH] mpparse: prevent table index out-of-bounds

John Z. Bohach <jzb@aexorsyst.com> found this bug:

  If the board has more than 32 PCI busses on it, the mptable bus array will
  overwrite its bounds for the PCI busses, and stomp on anything that's after
  it.

Prevent possible table overflow and unknown data corruption.  Code is in an
__init section so it will be discarded after init.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/mpparse.c