From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0D7E62BE043 for ; Tue, 24 Mar 2026 19:15:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774379753; cv=none; b=JGB8rY0UZQUF1rkRIVz1Tl/ec0BF/Z4R4oP4kAdUHoXUA4R6lUbR4JmweRo+R9R3+YIInaVbsTIptp2wvxXNrivUuvS8+I+CUaXFERO2uWTXo0403t8tHG44fmcNCpylZZdUK7BGvTtgY+YnqaafWX29u+Q1U1HUiHZfq6aeLxI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774379753; c=relaxed/simple; bh=U2c+j/AwieekKF6U5/KOKh6qSKMmIXu2zI1mzQaCF5E=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=AvY7vSCft8QCkBPRJEbLaiBSgAicqoPvq3nEVck0RV7mT+mTmCYirAMei93gz1EfQ58NezXea3xm6DoLY+UvGA2wQp6Gsq5k9tEZTfaODq9KFfYmusXU4Y49gkrrbjgmCEL36cCk/8JH5ixzKLGD5meSkmUitmVd+FNd8Khwehg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=uGCJIJph; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="uGCJIJph" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87645C19424; Tue, 24 Mar 2026 19:15:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1774379752; bh=U2c+j/AwieekKF6U5/KOKh6qSKMmIXu2zI1mzQaCF5E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uGCJIJphKl3BuzFTzoZpXiKaDiD6NsiHWWr5wf6L1Ko8//Yw4DRsuJtcBCJ4HmKAO 3uTq3D8Hm6C2hO3AQDd6d5bMu7b3xSl+FJi7IYPO30sFMag5xTT4GiY6NwhOdDaAKY wx+WPJ67ax78FBY+4foXQhHCoKXgDVRQCU8LfIGY= Date: Tue, 24 Mar 2026 12:15:52 -0700 From: Andrew Morton To: "Christian A. Ehrhardt" Cc: linux-kernel@vger.kernel.org, David Howells , Kees Cook , Petr Mladek , David Gow Subject: Re: [PATCH RESEND 3/3] lib: Fix length calculation in extract_kvec_to_sg Message-Id: <20260324121552.c6da9b39ce378d14ac7c2d53@linux-foundation.org> In-Reply-To: <20260323212350.807118-4-lk@c--e.de> References: <20260323212350.807118-1-lk@c--e.de> <20260323212350.807118-4-lk@c--e.de> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 23 Mar 2026 22:23:50 +0100 "Christian A. Ehrhardt" wrote: > When extracting from a kvec to a scatterlist, do not > cross page boundaries. The required length is already > calculated but not used as intended. > > The previous changes to the kunit_iov_iter.c demonstrate > that the patch is necessary. > > Cc: David Howells > Cc: Andrew Morton > Cc: stable@vger.kernel.org # v6.5+ But 018584697533 was first released in 6.10? I'll remove the " v6.5+" - it isn't needed when we have the Fixes: hash. But please do check that 018584697533 was the correct target. > Fixes: 018584697533 ("netfs: Add a function to extract an iterator into a scatterlist")