diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2026-09-10 09:35:13 -0400 |
|---|---|---|
| committer | Leon Romanovsky <leonro@nvidia.com> | 2026-09-10 09:35:13 -0400 |
| commit | e08aca85c02ff290f785f07acae758f0daf5f49e (patch) | |
| tree | 5a33aded526a78b54405e26aeea9b52f389b4b36 /scripts/Makefile.thinlto | |
| parent | 33fb59da49c4c3f5c2ec9f9d4447a56857a02c02 (diff) | |
| download | linux-stable-e08aca85c02ff290f785f07acae758f0daf5f49e.tar.gz linux-stable-e08aca85c02ff290f785f07acae758f0daf5f49e.zip | |
RDMA/efa: Keep admin queues alive while IRQ is registered
The management IRQ handler accesses both the admin completion queue and the
async event queue. The driver registered the IRQ before constructing these
queues and destroyed them before freeing the IRQ, so the handler's lifetime
was not contained by the resources it accesses.
Initialize the queues with interrupts masked, request the IRQ, and then
switch to interrupt mode. On removal, reset the device and free the IRQ
before destroying the queues. Also reset the device before destroying the
queues if IRQ registration fails, because the device already has their DMA
addresses.
Fixes: b7f5e880f377 ("RDMA/efa: Add the efa module")
Link: https://patch.msgid.link/20260907-use-after-free-of-admin-queue-struct-v1-1-dd9d9267fbf4@nvidia.com
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
