Commit bf48021
committed
RDMA/irdma: Fix a window for use-after-free
jira VULN-70164
cve CVE-2022-50137
commit-author Mustafa Ismail <mustafa.ismail@intel.com>
commit 8ecef78
During a destroy CQ an interrupt may cause processing of a CQE after CQ
resources are freed by irdma_cq_free_rsrc(). Fix this by moving the call
to irdma_cq_free_rsrc() after the irdma_sc_cleanup_ceqes(), which is
called under the cq_lock.
Fixes: b48c24c ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20220705230815.265-6-shiraz.saleem@intel.com
Signed-off-by: Bartosz Sobczak <bartosz.sobczak@intel.com>
Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
(cherry picked from commit 8ecef78)
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>1 parent 7a26068 commit bf48021
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1765 | 1765 | | |
1766 | 1766 | | |
1767 | 1767 | | |
1768 | | - | |
1769 | 1768 | | |
1770 | 1769 | | |
1771 | 1770 | | |
1772 | 1771 | | |
| 1772 | + | |
1773 | 1773 | | |
1774 | 1774 | | |
1775 | 1775 | | |
| |||
0 commit comments