Skip to contentSkip to conversation

IRQ fix

GIT PULL Merged Ingo Molnar 2 participants 2 messages Sep 12, 2019 IRQ

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest irq-urgent-for-linus git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus

# HEAD: eddf3e9c7c7e4d0707c68d1bb22cc6ec8aef7d4a genirq: Prevent NULL pointer dereference in resend_irqs()

Fix a race in the IRQ resend mechanism, which can result in a NULL dereference crash.

Thanks,

Ingo

------------------>
Yunfeng Ye (1):
genirq: Prevent NULL pointer dereference in resend_irqs()

 kernel/irq/resend.c | 2 ++
 1 file changed, 2 insertions(+)
kernel/irq/resend.c +2 -0
index 95414ad3506a..98c04ca5fa43 100644
@@ -36,6 +36,8 @@ static void resend_irqs(unsigned long arg)
 		irq = find_first_bit(irqs_resend, nr_irqs);
 		clear_bit(irq, irqs_resend);
 		desc = irq_to_desc(irq);
+		if (!desc)
+			continue;
 		local_irq_disable();
 		desc->handle_irq(desc);
 		local_irq_enable();
merge bot Merged
#1 lore raw
The pull request you sent on Thu, 12 Sep 2019 10:35:03 +0200:

The pull request you sent on Thu, 12 Sep 2019 10:35:03 +0200:

Quoted 1 line

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/95779fe8506d4f750f1e66e958b6b3c405182d7a

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/prtracker