summaryrefslogtreecommitdiff
path: root/components/rust/examples/application/thread/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2026-11-05 10:47:23 +0800
committerGitHub <[email protected]>2026-11-05 10:47:23 +0800
commitf6857f9fb0f8e1a7e6064ed3078e21587d497ea5 (patch)
treec8306fa60ae103076d15f547f6bc3559f80a1109 /components/rust/examples/application/thread/src
parentd3a368d565d189593234e6c0e8d174cdbf75e7a0 (diff)
[DM/PCI] Validate MSI-X table BIR and offset against BAR (#11986)
* [DM/PCI] Validate MSI-X table BIR and offset against BAR BIR and the table offset in the MSI-X capability are controlled by the device. msix_table_remap() used BIR directly as an index into pdev->resource[] and never checked the table against the BAR size, so a malicious device could make the kernel map and write to an arbitrary physical address during probe. Reject out-of-range BIR values, unassigned or zero-sized BARs, and tables that do not fit completely inside the assigned BAR. Also verify that the requested vector count does not exceed the table size read from the MSI-X control register. Fixes #11985 * [DM/PCI] Fix cppcheck warnings in MSI-X code - Restore the default IRQ only when an MSI descriptor exists, avoiding a potential NULL pointer dereference in rt_pci_msi_shutdown - Initialize the error code in msix_setup_msi_descs so that an empty vector list returns a defined value
Diffstat (limited to 'components/rust/examples/application/thread/src')
0 files changed, 0 insertions, 0 deletions