[PATCH] x86: Fix potential overflow in perfctr reservation
authorAndi Kleen <ak@suse.de>
Mon, 16 Apr 2007 08:30:27 +0000 (10:30 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Mon, 16 Apr 2007 08:30:27 +0000 (10:30 +0200)
commit1714f9bfc92d6ee67e84127332a1fae27772acfe
treea89256be07359cbb0586a52c00ae985e1de12561
parent08269c6d38e003adb12f55c6d795daa89bdc1bae
[PATCH] x86: Fix potential overflow in perfctr reservation

While reviewing this code again I found a potential overflow of the bitmap.
The p4 oprofile can theoretically set bits beyond the reservation bitmap for
specific configurations. Avoid that by sizing the bitmaps properly.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/nmi.c
arch/x86_64/kernel/nmi.c