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 | e22a3627b7151754f07f90ea3d1ab6e85f5d93f4 (patch) | |
| tree | fcc658160a8ce85be23096af722df3a3c2321f14 /scripts/Makefile.thinlto | |
| parent | e08aca85c02ff290f785f07acae758f0daf5f49e (diff) | |
| download | linux-stable-e22a3627b7151754f07f90ea3d1ab6e85f5d93f4.tar.gz linux-stable-e22a3627b7151754f07f90ea3d1ab6e85f5d93f4.zip | |
RDMA/efa: Keep EQ resources alive while IRQ is registered
The completion IRQ handler accesses the EQ state and DMA buffer. Its IRQ was
registered before that state was initialized, while teardown released the
buffer before free_irq() synchronized the handler.
Initialize the EQ without arming it, register the IRQ, and then arm it.
Reverse the resource order during teardown by freeing the IRQ before
destroying the EQ.
Fixes: 2a152512a155 ("RDMA/efa: CQ notifications")
Link: https://patch.msgid.link/20260907-use-after-free-of-admin-queue-struct-v1-2-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
