diff options
| author | Saravanan Vajravel <[email protected]> | 2023-06-06 10:25:31 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2023-06-11 17:29:34 +0000 |
| commit | 699826f4e30ab76a62c238c86fbef7e826639c8d (patch) | |
| tree | bc8b2104fc237188f59286c7bc4b57bfbedba57a /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
| parent | IB/isert: Fix possible list corruption in CMA handler (diff) | |
| download | kernel-699826f4e30ab76a62c238c86fbef7e826639c8d.tar.gz kernel-699826f4e30ab76a62c238c86fbef7e826639c8d.zip | |
IB/isert: Fix incorrect release of isert connection
The ib_isert module is releasing the isert connection both in
isert_wait_conn() handler as well as isert_free_conn() handler.
In isert_wait_conn() handler, it is expected to wait for iSCSI
session logout operation to complete. It should free the isert
connection only in isert_free_conn() handler.
When a bunch of iSER target is cleared, this issue can lead to
use-after-free memory issue as isert conn is twice released
Fixes: b02efbfc9a05 ("iser-target: Fix implicit termination of connections")
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Saravanan Vajravel <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions
