Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D1C02989AC; Tue, 24 Jun 2025 12:52:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750769564; cv=none; b=R0vQOQ767cs9dWK+YtSyk3FukBciejXKHSK8Ebqb1vG/SAqqfpoBeG9cdvdWrVQ20Qu/L/QNLyN5hkaZf9oe7m0hfnYnjOVqaY8Z87C1W5FPOiPdH0SmKYlIQr/Qn2I8J9vAe0xYsfjtpfmL+w8CnBYlF0ujGABVHUo5Stxr3ps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750769564; c=relaxed/simple; bh=FbA/TYMucNCBfZZNrCca42Q4/4ZhWu7F6LfzMnQUCmQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JWbqXX5+QBFaoFG4z0DFVC/6PT+o31rx/xLSfERwVmVakFvMdzGRgaC2wLWtsESIVtej31IvS0GLoJbiAjTs/4uHheZJToWEhYHCJ+M+kkhsQL4BZVoGHNIQMJ+3hNO5/D5UlPoj/HWeYSJtLvP1pctpcCplVdNgm5P5jCZQR1M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=iLxvAMwZ; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="iLxvAMwZ" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=SgSnp6jT3yDmnCE63WVs5cKLX8hIMpg3ImbKMxGBDuc=; b=iLxvAMwZbPH7UUQxoS234Ajpr6 B3WUcczFPHG6XRZRmPJAPO5+Yao/aSRmlhKXjsvQFDQJXpWrXYaEGVyqVb7VF1LQ2vgt648QJG+cq Uf1j55Wt3VInL8pkbynWGb5I2E5rx1/tiGFR19h0+fwdIzRu5SkkAGeY8jeQLixdNvHzLLfb6tb9h aU+9rKm1lrjpmoyuksiRJTNYhZbNWB/ljaaBIDEBxB5Dcb58wksz1POeKsy2sCxpuiEZrX3zAS8BJ slT5Ju2CYlSNuRIqVLj3Pn0ZQoqI3PEplWS13Xj0OyGJ827eyHHYUQJXjZifV+iwx625TABmBjCBQ kGIdvQeA==; Received: from 2a02-8389-2341-5b80-d601-7564-c2e0-491c.cable.dynamic.v6.surfer.at ([2a02:8389:2341:5b80:d601:7564:c2e0:491c] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1uU38f-00000005dtd-0YOU; Tue, 24 Jun 2025 12:52:37 +0000 From: Christoph Hellwig To: "Martin K. Petersen" Cc: Bart Van Assche , Ming Lei , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , "Ewan D. Milne" , Laurence Oberman , linux-rdma@vger.kernel.org, linux-scsi@vger.kernel.org, linux-block@vger.kernel.org Subject: fix virt_boundary_mask handling in SCSI v2 Date: Tue, 24 Jun 2025 14:52:26 +0200 Message-ID: <20250624125233.219635-1-hch@lst.de> X-Mailer: git-send-email 2.47.2 Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html 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(-)