Skip to content

{bp-19324} drivers: pci: Fix EPC MSI IRQ map validation#19341

Merged
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-19324
Jul 6, 2026
Merged

{bp-19324} drivers: pci: Fix EPC MSI IRQ map validation#19341
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-19324

Conversation

@jerpelea

@jerpelea jerpelea commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

pci_epc_map_msi_irq() used && when checking the EPC pointer and map_msi_irq callback. If epc is NULL, the right-hand side dereferences it; if the callback is NULL on a valid EPC, the guard does not reject it before the call.

Match the surrounding EPC wrappers by rejecting a NULL EPC, an out-of-range function number, or a missing map_msi_irq callback before taking the lock and invoking the operation.

Generated-by: OpenAI Codex

Impact

RELEASE

Testing

CI

pci_epc_map_msi_irq() used && when checking the EPC pointer and map_msi_irq callback. If epc is NULL, the right-hand side dereferences it; if the callback is NULL on a valid EPC, the guard does not reject it before the call.

Match the surrounding EPC wrappers by rejecting a NULL EPC, an out-of-range function number, or a missing map_msi_irq callback before taking the lock and invoking the operation.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
@jerpelea jerpelea requested a review from raiden00pl as a code owner July 6, 2026 05:39
@github-actions github-actions Bot added Size: XS The size of the change in this PR is very small Area: PCI labels Jul 6, 2026
@jerpelea

jerpelea commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@cederom ping

@xiaoxiang781216 xiaoxiang781216 merged commit 1d7d5d3 into apache:releases/13.0 Jul 6, 2026
41 checks passed
@jerpelea jerpelea deleted the bp-19324 branch July 6, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: PCI Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants