Skip to content

scsi: lpfc: Backport SFP mailbox timeout handling

Artem Dinaburg linux-scsi lkml stable 1 version Applied

Status from this message: Queued the series for 6.6, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyApplied

Changes in v2 from the cover letter

- replace the unsafe ctx_buf restoration with the ext_buf prerequisite;
- send the prerequisite and CVE fix as a two-patch series;
- keep the generic upstream ownership race out of this backport; and
- rebase and rebuild after the current 6.6 stable queue.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2scsi: lpfc: Define lpfc_dmabuf type for ctx_buf ptrdrivers/scsi/lpfc/lpfc_bsg.c drivers/scsi/lpfc/lpfc_els.c drivers/scsi/lpfc/lpfc_sli.c +1 more+14 -130 replies
2/2scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_infodrivers/scsi/lpfc/lpfc_els.c+11 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 6.6.y v2 0/2] scsi: lpfc: Backport SFP mailbox timeout handling

Hi Sasha and lpfc maintainers,

Thanks for catching the SLI3 overflow in v1.

This v2 takes the ext_buf portion of upstream commit 115d137aa918 first. That leaves the SLI3 response in the existing 1,024-byte DMA buffer while ctx_buf continues to point to the descriptor used by cleanup. Patch 2 then backports the original CVE-2024-46842 fix from ede596b1434b.

Could you please queue these two patches for 6.6.y?

Changes in v2:
- replace the unsafe ctx_buf restoration with the ext_buf prerequisite;
- send the prerequisite and CVE fix as a two-patch series;
- keep the generic upstream ownership race out of this backport; and
- rebase and rebuild after the current 6.6 stable queue.

v1: https://lore.kernel.org/r/[email protected]
Review: https://lore.kernel.org/r/2026-09-30-1-daily-reply-0014-lpfc-sfp-info-mbox-timeout-6-6@kernel.org

Thanks,
Artem Dinaburg

Justin Tee (2):
scsi: lpfc: Define lpfc_dmabuf type for ctx_buf ptr
scsi: lpfc: Handle mailbox timeouts in lpfc_get_sfp_info

 drivers/scsi/lpfc/lpfc_bsg.c |  2 +-
 drivers/scsi/lpfc/lpfc_els.c | 21 +++++++++++++--------
 drivers/scsi/lpfc/lpfc_sli.c | 20 ++++++++++----------
 drivers/scsi/lpfc/lpfc_sli.h |  1 +
 4 files changed, 25 insertions(+), 19 deletions(-)

base-commit: 79643295eba17affbd16ca97f3ef04c90266b28c

Signature · 1 line
2.39.5