lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <49CDAAD5.9010202@kernel.org>
Date:	Fri, 27 Mar 2009 21:43:01 -0700
From:	Yinghai Lu <yinghai@...nel.org>
To:	Chris Leech <christopher.leech@...el.com>,
	Ingo Molnar <mingo@...e.hu>
CC:	Thomas Gleixner <tglx@...utronix.de>,
	"H. Peter Anvin" <hpa@...or.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] irq: mask irq before move it


Imapct: fix panic

try to mask the irq, before move the irq desc

Signed-off-by: Yinghai Lu <yinghai@...nel.org>

---
 kernel/irq/numa_migrate.c |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Index: linux-2.6/kernel/irq/numa_migrate.c
===================================================================
--- linux-2.6.orig/kernel/irq/numa_migrate.c
+++ linux-2.6/kernel/irq/numa_migrate.c
@@ -112,17 +112,21 @@ struct irq_desc *move_irq_desc(struct ir
 {
 	int old_cpu;
 	int node, old_node;
+	unsigned int irq = desc->irq;
 
 	/* those all static, do move them */
-	if (desc->irq < NR_IRQS_LEGACY)
+	if (irq < NR_IRQS_LEGACY)
 		return desc;
 
 	old_cpu = desc->cpu;
 	if (old_cpu != cpu) {
 		node = cpu_to_node(cpu);
 		old_node = cpu_to_node(old_cpu);
-		if (old_node != node)
+		if (old_node != node) {
+			desc->chip->mask(irq);
 			desc = __real_move_irq_desc(desc, cpu);
+			desc->chip->unmask(irq);
+		}
 		else
 			desc->cpu = cpu;
 	}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ