Skip to contentSkip to conversation

nvme-pci patch backport to 5.15/5.10 stable

DISCUSSION [email protected] 1 participant 2 messages Oct 13, 2022 1 message not in the archive Stable branch

lore
Share & tools
lore

[email protected]

author maintainer
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · Rishabh

Hi

The following patch is needed in 5.10 and 5.15 stable trees.

Commit: 61ce339f19fabbc3e51237148a7ef6f2270e44fa
Subject: nvme-pci: set min_align_mask before calculating max_hw_sectors

This patch fixes the swiotlb usecase for nvme driver where if dma_min_align is not considered the requested buffer size overflows the swiotlb buffer.
Patch applies cleanly for 5.15/5.10 stable trees.

What about 5.19 and 6.0? You don't want someone upgrading to a newer kernel and having a regression, right?

thanks,

greg k-h

author maintainer
#2 lore raw
In reply to a message not in the archive
Quoted 11 lines · Rishabh

Hi

The following patch is needed in 5.10 and 5.15 stable trees.

Commit: 61ce339f19fabbc3e51237148a7ef6f2270e44fa
Subject: nvme-pci: set min_align_mask before calculating max_hw_sectors

This patch fixes the swiotlb usecase for nvme driver where if dma_min_align is not considered the requested buffer size overflows the swiotlb buffer.
Patch applies cleanly for 5.15/5.10 stable trees.

The patch does not apply cleanly at all, how did you test this? Please provide a working backport for those trees if you wish to have it applied there.

thanks,

greg k-h