From nobody Sun Feb 8 17:28:52 2026 Received: from exactco.de (exactco.de [176.9.10.151]) (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 6069C32470F for ; Fri, 14 Nov 2025 14:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=176.9.10.151 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763130642; cv=none; b=Q6IuempjLYAPyQ43VMjLkEyMue8E3gcM1G5B2svyAlZK5pK0kW0R8HZ+Ge+A1OY6VY7IXzhRFDOey4Y2QX4pvkLA+B6t3LY1KyQg0ofgi3JeWMqFT/0cKbLFgvijhsBvfqLBkHwaGjlDpAuDD2tOlNkEgxWojytoDxnY5vRWFTc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763130642; c=relaxed/simple; bh=1NVXHqTnM0cA73JWpa4WtIRs8a0CSAZTBzXvSU337bw=; h=Date:Message-Id:To:Cc:Subject:From:Mime-Version:Content-Type; b=KGXhZGqNkgBQ4VVVh8wGKPkRuxBKN3vh0hyf7JGA6YfONpwQnIKG8ggNfCTKex75uaS/UDHI349dLgXwJ6hwoTyrsN4v4eZDNqE72NGJWw6pHn5O1h2xi7JNKzE6DSk92xbyiZJXm6Q4suOE/0u5LtYcd11B+iZK4UHE5VPJ3t4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=exactco.de; spf=pass smtp.mailfrom=exactco.de; dkim=pass (2048-bit key) header.d=exactco.de header.i=@exactco.de header.b=eaI4WJqm; arc=none smtp.client-ip=176.9.10.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=exactco.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=exactco.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=exactco.de header.i=@exactco.de header.b="eaI4WJqm" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=exactco.de; s=x; h=Content-Transfer-Encoding:Content-Type:Mime-Version:From:Subject:Cc:To :Message-Id:Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=2oT+McdnyLMZ4+qbfugpXDqqRgwEmz4QgY+xjYCsFOA=; b=e aI4WJqmeSnIIwZZVYmRHs3sww35/8P7juqVZoBUIaY9ZV6cjtAtN4vrvfr+AtZStBBhMWO+h/bBBD RSPQJhR31wnkiCrHrne+bDCE/iqc4iR2xjn+GHDSDxjD+PfQrKQM21PMTInrzM7CkuHcVfob+sTSb Epi6v5vYdV7q+4yAh9i0Niq/eDop4yYiJ2BcCs/iHRgprz8R7kB2wcPPmaoBQ9jC3AndjShBPVI9U Lhj0lGn7VS/pznaOgFzBNLZ83XEfao9abJRjVOXWF0xDkb9F6fdNKP6oUCdpNg42VnJmInV821+MS NE6xKNUlsIgkeY1uWhhNy9XFpQeOZJv9A==; Date: Fri, 14 Nov 2025 15:30:33 +0100 (CET) Message-Id: <20251114.153033.430439310885688884.rene@exactco.de> To: Christoph Hellwig Cc: Jens Axboe , Martin K. Petersen , Geoff Levand , linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [RESEND PATCH] Fix ps3disk: use memcpy_{from,to}_bvec index From: Rene Rebe X-Mailer: Mew version 6.10 on Emacs 30.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: Text/Plain; charset="utf-8" With 6e0a48552b8c (ps3disk: use memcpy_{from,to}_bvec) converting ps3disk to new bvec helpers, incrementing the offset was accidently lost, corrupting consecutive buffers. Restore index for non-corrupted data transfers. Fixes: 6e0a48552b8c (ps3disk: use memcpy_{from,to}_bvec) Signed-off-by: Ren=C3=A9 Rebe Reviewed-by: Christoph Hellwig --- a/drivers/block/ps3disk.c 2023-08-07 17:40:55.200957746 +0200 +++ b/drivers/block/ps3disk.c 2023-08-07 17:46:39.702964129 +0200 @@ -85,10 +93,14 @@ struct bio_vec bvec; =20 rq_for_each_segment(bvec, req, iter) { + dev_dbg(&dev->sbd.core, "%s:%u: %u sectors from %llu\n", + __func__, __LINE__, bio_sectors(iter.bio), + iter.bio->bi_iter.bi_sector); if (gather) memcpy_from_bvec(dev->bounce_buf + offset, &bvec); else memcpy_to_bvec(&bvec, dev->bounce_buf + offset); + offset +=3D bvec.bv_len; } } =20 --=20 Ren=C3=A9 Rebe, ExactCODE GmbH, Lietzenburger Str. 42, DE-10789 Berlin https://exactcode.com | https://t2linux.com | https://rene.rebe.de