linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fix virt_boundary_mask handling in SCSI
@ 2025-06-23  8:02 Christoph Hellwig
  2025-06-23  8:02 ` [PATCH 1/2] RDMA/srp: don't set a max_segment_size when virt_boundary_mask is set Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Christoph Hellwig @ 2025-06-23  8:02 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Bart Van Assche, Ming Lei, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Ewan D. Milne, Laurence Oberman, linux-rdma, linux-scsi,
	linux-block

Hi all,

this series fixes a corruption when drivers using virt_boundary_mask set
a limited max_segment_size by accident, which Red Hat reported as causing
data corruption with storvsc.  I did audit the tree and also found that
this can affect SRP and iSER as well.

Note that I've dropped the Tested-by from Laurence because the patch
changed very slightly from the last version.

Diffstat:
 infiniband/ulp/srp/ib_srp.c |    5 +++--
 scsi/hosts.c                |   20 +++++++++++++-------
 2 files changed, 16 insertions(+), 9 deletions(-)

^ permalink raw reply	[flat|nested] 16+ messages in thread
* fix virt_boundary_mask handling in SCSI v2
@ 2025-06-24 12:52 Christoph Hellwig
  2025-06-24 12:52 ` [PATCH 2/2] scsi: enforce unlimited max_segment_size when virt_boundary_mask is set Christoph Hellwig
  0 siblings, 1 reply; 16+ messages in thread
From: Christoph Hellwig @ 2025-06-24 12:52 UTC (permalink / raw)
  To: Martin K. Petersen
  Cc: Bart Van Assche, Ming Lei, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Ewan D. Milne, Laurence Oberman, linux-rdma, linux-scsi,
	linux-block

Hi all,

this series fixes a corruption when drivers using virt_boundary_mask set
a limited max_segment_size by accident, which Red Hat reported as causing
data corruption with storvsc.  I did audit the tree and also found that
this can affect SRP and iSER as well.

Changes since v1:
 - improve the srp commit log
 - slightly simplify the limits assignment in hosts.c

Diffstat:
 infiniband/ulp/srp/ib_srp.c |    5 +++--
 scsi/hosts.c                |   18 +++++++++++-------
 2 files changed, 14 insertions(+), 9 deletions(-)

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-06-24 16:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-23  8:02 fix virt_boundary_mask handling in SCSI Christoph Hellwig
2025-06-23  8:02 ` [PATCH 1/2] RDMA/srp: don't set a max_segment_size when virt_boundary_mask is set Christoph Hellwig
2025-06-23 15:31   ` Bart Van Assche
2025-06-24  5:57   ` Hannes Reinecke
2025-06-23  8:02 ` [PATCH 2/2] scsi: enforce unlimited " Christoph Hellwig
2025-06-23  8:37   ` John Garry
2025-06-23 13:35     ` Christoph Hellwig
2025-06-23 14:03       ` John Garry
2025-06-23 14:05         ` Christoph Hellwig
2025-06-23  9:50   ` Ming Lei
2025-06-24  5:57   ` Hannes Reinecke
2025-06-24 14:21 ` fix virt_boundary_mask handling in SCSI Laurence Oberman
2025-06-24 16:11   ` Laurence Oberman
2025-06-24 16:13     ` Laurence Oberman
  -- strict thread matches above, loose matches on Subject: below --
2025-06-24 12:52 fix virt_boundary_mask handling in SCSI v2 Christoph Hellwig
2025-06-24 12:52 ` [PATCH 2/2] scsi: enforce unlimited max_segment_size when virt_boundary_mask is set Christoph Hellwig
2025-06-24 15:56   ` Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).