]> git.baikalelectronics.ru Git - kernel.git/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)
commit6c6552d2aab339d9f6da8b9ff6d42a8985060f54
tree449070f25aa346dab179325d4eafc305bb6557b8
parent895b80e24a79dca51d0fe5d0484e7849927ccbb0
[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