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 C84513F0742 for ; Thu, 5 Feb 2026 14:30:36 +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=1770301836; cv=none; b=DD5Ku3tbuAHxmZAr1Y7Ckjm/dQsVlm/BcQwj4HMmx0iPjjIv1JYP9vyHsXqflC70mnPwnro06us6VzvEZV8SQy1U/N3vvqI2sY5AFgaPUApGdZ2TzyVYJUECmOlHvezHyT9JmR3yTr8+p0M36zbx350TRx74QjEoKFU6CrW+l4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770301836; c=relaxed/simple; bh=tXtePRpo/gbpziv+pIQx07LvhhOl1DUhHdZWV0RD0Sc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IPMXpk6eXcNyp/4EWWWiRVpv4PBxk/Td2jwZvJLXMzKwtXhWLfWscxnNmkUyRikBf9gwTY7whR3Splyps5YVAVF399nksz8EdK314mLLQG/Qq1gMMLpPK5AYix2WCczXgqp8xFA43PxnRHJow0QbhzzZrCOFBUrCY8HBtkwckgI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=I1Qg4r3y; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="I1Qg4r3y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3E03C19425; Thu, 5 Feb 2026 14:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770301836; bh=tXtePRpo/gbpziv+pIQx07LvhhOl1DUhHdZWV0RD0Sc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I1Qg4r3y2AUG6lboX4D5lc2kZreI9U9vCQA7yhqWZKop0/GqlIA89LeVgvta2e0XG btnM46Vsh5kdDshwWNPlI7kVxnVy2Vy+y+Try/1heNCcRIZxM5jbJ1/OB/DstYYqCH P5dr/aLW93NOU+93kcdWJMqrSiwT82h4bWDnVEXU= Date: Thu, 5 Feb 2026 15:30:33 +0100 From: Greg KH To: Pimyn Girgis Cc: stable@vger.kernel.org, Alexander Potapenko , Dmitry Vyukov , Marco Elver , Ernesto Martnez Garca , Kees Cook , Andrew Morton Subject: Re: [PATCH 5.15.y v2] mm/kfence: randomize the freelist on initialization Message-ID: <2026020521-nugget-grunt-f9cc@gregkh> References: <2026020339-trickery-vegan-e9c3@gregkh> <20260205095323.3149138-1-pimyn@google.com> <2026020546-nimble-mower-1202@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Feb 05, 2026 at 03:27:13PM +0100, Pimyn Girgis wrote: > > What changed from v1? > > addr calculation in case of an error is handled in the appropriate loop in v2. > This ensures that `i` will have the correct value. In v1, multiple `goto err` > statements risked using an uninitialized or incorrect `i`. > > > Always put that below the --- line, like any > > other kernel patch. > > I'll keep that in mind for future patches :) > Please do so for this one, a v3 perhaps? thanks, greg k-h