RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
| No fix yet |
| Linux Linux |
| No fix yet |
In the Linux kernel, the following vulnerability has been resolved:
RDMA/erdma: Use IRQ-safe XArray helpers for QP and CQ tables
Locked QP and CQ lookups from EQ interrupts can deadlock with create-path XArray updates. If an interrupt arrives while the create path holds the plain xa_lock, the lookup spins forever trying to acquire the same lock.
Use IRQ-safe XArray helpers for all QP and CQ create-path updates, including the GSI QP store and error paths. Initialize both arrays with XA_FLAGS_LOCK_IRQ so sleeping allocations preserve interrupt state.
From the CVE record · Linux
The Linux kernel's RDMA/erdma QP and CQ tables can deadlock when an EQ interrupt arrives while a create-path update holds the XArray lock. The interrupt lookup can then spin indefinitely; the input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with RDMA/erdma should check their kernel; affected versions were not provided.