+ x86-do_irq-check-irq-number-fix.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     x86-do_irq-check-irq-number fix

has been added to the -mm tree.  Its filename is

     x86-do_irq-check-irq-number-fix.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: x86-do_irq-check-irq-number fix
From: Chris Wright <chrisw@xxxxxxxxxxxx>

This doesn't get x86_64.

Signed-off-by: Chris Wright <chrisw@xxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 arch/x86_64/kernel/irq.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff -puN arch/x86_64/kernel/irq.c~x86-do_irq-check-irq-number-fix arch/x86_64/kernel/irq.c
--- a/arch/x86_64/kernel/irq.c~x86-do_irq-check-irq-number-fix
+++ a/arch/x86_64/kernel/irq.c
@@ -118,6 +118,12 @@ asmlinkage unsigned int do_IRQ(struct pt
 	/* high bit used in ret_from_ code  */
 	unsigned irq = ~regs->orig_rax;
 
+	if (unlikely(irq >= NR_IRQS)) {
+		printk(KERN_EMERG "%s: cannot handle IRQ %d\n",
+					__FUNCTION__, irq);
+		BUG();
+	}
+
 	exit_idle();
 	irq_enter();
 #ifdef CONFIG_DEBUG_STACKOVERFLOW
_

Patches currently in -mm which might be from chrisw@xxxxxxxxxxxx are

origin.patch
x86-increase-interrupt-vector-range.patch
x86-do_irq-check-irq-number.patch
x86-do_irq-check-irq-number-fix.patch
md-require-cap_sys_admin-for-re-configuring-md-devices-via-sysfs.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux