diff options
| author | Karan Tilak Kumar <[email protected]> | 2025-06-18 00:34:28 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-06-20 03:06:27 +0000 |
| commit | a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2 (patch) | |
| tree | a4c832c7b508e51e26e0e967022e7dc6223fff08 /lib/memory-notifier-error-inject.c | |
| parent | scsi: ufs: core: Fix clk scaling to be conditional in reset and restore (diff) | |
| download | kernel-a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2.tar.gz kernel-a35b29bdedb4d2ae3160d4d6684a6f1ecd9ca7c2.zip | |
scsi: fnic: Fix crash in fnic_wq_cmpl_handler when FDMI times out
When both the RHBA and RPA FDMI requests time out, fnic reuses a frame to
send ABTS for each of them. On send completion, this causes an attempt to
free the same frame twice that leads to a crash.
Fix crash by allocating separate frames for RHBA and RPA, and modify ABTS
logic accordingly.
Tested by checking MDS for FDMI information.
Tested by using instrumented driver to:
- Drop PLOGI response
- Drop RHBA response
- Drop RPA response
- Drop RHBA and RPA response
- Drop PLOGI response + ABTS response
- Drop RHBA response + ABTS response
- Drop RPA response + ABTS response
- Drop RHBA and RPA response + ABTS response for both of them
Fixes: 09c1e6ab4ab2 ("scsi: fnic: Add and integrate support for FDMI")
Reviewed-by: Sesidhar Baddela <[email protected]>
Reviewed-by: Arulprabhu Ponnusamy <[email protected]>
Reviewed-by: Gian Carlo Boffa <[email protected]>
Tested-by: Arun Easi <[email protected]>
Co-developed-by: Arun Easi <[email protected]>
Signed-off-by: Arun Easi <[email protected]>
Tested-by: Karan Tilak Kumar <[email protected]>
Cc: [email protected]
Signed-off-by: Karan Tilak Kumar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: John Meneghini <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
