diff options
| author | Ewan D. Milne <[email protected]> | 2019-01-17 11:14:44 -0500 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-01-22 20:40:59 -0500 |
| commit | 7961cba6f7d8215fa632df3d220e5154bb825249 (patch) | |
| tree | b8228d13b3fdbe6d6ae20cd41cbdd3627be94c61 /scripts/gdb/linux/vmalloc.py | |
| parent | a8cf59a6692c9c55a5a10257de97919fae6edef8 (diff) | |
scsi: lpfc: nvme: avoid hang / use-after-free when destroying localport
We cannot wait on a completion object in the lpfc_nvme_lport structure in
the _destroy_localport() code path because the NVMe/fc transport will free
that structure immediately after the .localport_delete() callback. This
results in a use-after-free, and a hang if slub_debug=FZPU is enabled.
Fix this by putting the completion on the stack.
Signed-off-by: Ewan D. Milne <[email protected]>
Acked-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions