* [PATCH] Overflow check for i386 assign_irq_vector, 2.6.0-test5
@ 2003-09-12 4:07 James Cleverdon
0 siblings, 0 replies; only message in thread
From: James Cleverdon @ 2003-09-12 4:07 UTC (permalink / raw)
To: linux-kernel, Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
Some very large systems overflow the array and corrupt memory. A BUG_ON will
at least flag the problem until dynamic irq_vector allocation is added.
--
James Cleverdon
IBM xSeries Linux Solutions
{jamesclv(Unix, preferred), cleverdj(Notes)} at us dot ibm dot comm
[-- Attachment #2: x445_assign_irq_vector_bug_on_2003-09-11_2.6.0-test5 --]
[-- Type: text/x-diff, Size: 498 bytes --]
diff -pru 2.6.0-test5/arch/i386/kernel/io_apic.c t5/arch/i386/kernel/io_apic.c
--- 2.6.0-test5/arch/i386/kernel/io_apic.c 2003-09-08 12:50:01.000000000 -0700
+++ t5/arch/i386/kernel/io_apic.c 2003-09-11 12:08:14.000000000 -0700
@@ -1143,6 +1143,7 @@ int irq_vector[NR_IRQS] = { FIRST_DEVICE
static int __init assign_irq_vector(int irq)
{
static int current_vector = FIRST_DEVICE_VECTOR, offset = 0;
+ BUG_ON(irq >= NR_IRQS);
if (IO_APIC_VECTOR(irq) > 0)
return IO_APIC_VECTOR(irq);
next:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-09-12 4:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-12 4:07 [PATCH] Overflow check for i386 assign_irq_vector, 2.6.0-test5 James Cleverdon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome