diff options
author | Justin Tee <[email protected]> | 2022-11-15 17:19:19 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-11-17 18:18:42 +0000 |
commit | 97f256913c5d8a633efe4f11d4ed2d6a3ea42635 (patch) | |
tree | 42d344549ad76450a020f05717bce028242986f2 /scripts/gdb/linux/proc.py | |
parent | d99af587d59ca39747b4328dad0b193655835c90 (diff) |
scsi: lpfc: Fix crash involving race between FLOGI timeout and devloss handler
When a FLOGI completes with a sequence timeout error, a freed kref ptr
dereference crash can occur due to a timing race involving ndlp referencing
in lpfc_dev_loss_tmo_callbk.
Fix by ensuring the driver accounts for an outstanding FLOGI when dev_loss
is active. Also, don't remove the HBA_FLOGI_OUTSTANDING flag when the
FLOGI is retried to allow the driver to handle the reference counts
correctly in lpfc_dev_loss_tmo_handler.
Reported-by: Dietmar Hahn <[email protected]>
Tested-by: Dietmar Hahn <[email protected]>
Signed-off-by: Justin Tee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions