diff options
| author | Yonatan Nachum <ynachum@amazon.com> | 2026-03-08 16:53:50 +0000 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-03-08 14:46:42 -0400 |
| commit | ef3b06742c8a201d0e83edc9a33a89a4fe3009f8 (patch) | |
| tree | 191f1f510dc19141f27d407bf018c64c225278a0 /include/linux/tc_act/git@git.tavy.me:linux.git | |
| parent | c242e92c9da456d361d1d4482fb6e93ee95bd8cf (diff) | |
RDMA/efa: Fix use of completion ctx after free
On admin queue completion handling, if the admin command completed with
error we print data from the completion context. The issue is that we
already freed the completion context in polling/interrupts handler which
means we print data from context in an unknown state (it might be
already used again).
Change the admin submission flow so alloc/dealloc of the context will be
symmetric and dealloc will be called after any potential use of the
context.
Fixes: 68fb9f3e312a ("RDMA/efa: Remove redundant NULL pointer check of CQE")
Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Link: https://patch.msgid.link/20260308165350.18219-1-ynachum@amazon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
