From: Michael Kelley Date: Thu, 2 Apr 2026 20:23:59 +0000 (-0700) Subject: genirq/chip: Invoke add_interrupt_randomness() in handle_percpu_devid_irq() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd7400cfcbaaa1f3d1b904711d9daf029e996364;p=thirdparty%2Flinux.git genirq/chip: Invoke add_interrupt_randomness() in handle_percpu_devid_irq() handle_percpu_devid_irq() is a version of handle_percpu_irq() but with the addition of a pointer to a per-CPU devid. However, handle_percpu_irq() invokes add_interrupt_randomness(), while handle_percpu_devid_irq() currently does not. Add the missing add_interrupt_randomness(), as it is needed when per-CPU interrupts with devid's are used in VMs for interrupts from the hypervisor. Signed-off-by: Michael Kelley Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260402202400.1707-2-mhklkml@zohomail.com --- diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 6147a07d0127a..6c9b1dc4e7d46 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -14,6 +14,7 @@ #include #include #include +#include #include @@ -929,6 +930,8 @@ void handle_percpu_devid_irq(struct irq_desc *desc) enabled ? " and unmasked" : "", irq, cpu); } + add_interrupt_randomness(irq); + if (chip->irq_eoi) chip->irq_eoi(&desc->irq_data); }