From: Jakub Kicinski Date: Mon, 15 Jun 2026 19:47:20 +0000 (-0700) Subject: Merge branch 'octeontx2-quiesce-stale-mailbox-irq-state-before-request_irq' X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=62821d481975d830ed67f30d0cf2b2036bf3b5ca;p=thirdparty%2Fkernel%2Fstable.git Merge branch 'octeontx2-quiesce-stale-mailbox-irq-state-before-request_irq' Runyu Xiao says: ==================== octeontx2: quiesce stale mailbox IRQ state before request_irq() Both OTX2 mailbox registration paths currently install their IRQ handlers before clearing stale local mailbox interrupt state, even though the code comments already say that the clear is needed first to avoid spurious interrupts. This issue was found by our static analysis tool and manually audited on Linux v6.18.21. Directed QEMU no-device validation further showed that the real PF and VF mailbox handlers are already reachable in that pre-clear window and can touch the same mailbox and workqueue carrier before local quiesce has completed. This series keeps the change minimal: - clear stale mailbox interrupt state before request_irq() - keep interrupt enabling after the handler is installed That closes the early-IRQ window without introducing a new enable-before-handler window. Patch 1 fixes the PF mailbox registration path. Patch 2 fixes the VF mailbox registration path. Build-tested by compiling otx2_pf.o and otx2_vf.o. No OTX2 hardware was available for end-to-end runtime testing. ==================== Link: https://patch.msgid.link/20260611160014.3202224-1-runyu.xiao@seu.edu.cn Signed-off-by: Jakub Kicinski --- 62821d481975d830ed67f30d0cf2b2036bf3b5ca