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 2E4411BC099; Wed, 19 Feb 2025 19:07:21 +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=1739992042; cv=none; b=urBmS57ttfjHRA9ReXTO3yZdBT8T1FtvQ/HDfeF1yasiOrhP1z6+Iik5Zuj+Ll+pVavDsUyQ/4oQGBV2LVKLtbHyymk2h1pFakju7Uji5moQFKQgt10zV0f84MoycEe07VcLO2HfRvBx4CtjJ9ly6wMkSUN2fYAVJ058eBumUFo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739992042; c=relaxed/simple; bh=GVf1K58p1RhYud7IbNgNCwXA7HmK6G8RKuC5tFmbQnQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rAxr5dQZ5i83LLSgESoYHRS4Ezubroc5MH/CcTDJLEgy9Esx1NzHJKPdpfF1AMs8oNgMY0KPhZgSqnDyrz55JZy0NAzWiLtNcpQ5OytGpw2S5hMqZTJ+wEOe+7ViWPCJCU6IeTxJpS3kZkGuBxSFfFUuQ7QWDC/7at1q32UQPo4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7CAF3C4CED1; Wed, 19 Feb 2025 19:07:15 +0000 (UTC) Date: Wed, 19 Feb 2025 19:07:12 +0000 From: Catalin Marinas To: Ryan Roberts Cc: Will Deacon , Huacai Chen , WANG Xuerui , Thomas Bogendoerfer , "James E.J. Bottomley" , Helge Deller , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Naveen N Rao , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Gerald Schaefer , "David S. Miller" , Andreas Larsson , Arnd Bergmann , Muchun Song , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , David Hildenbrand , "Matthew Wilcox (Oracle)" , Mark Rutland , Anshuman Khandual , Dev Jain , Kevin Brodsky , Alexandre Ghiti , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH v2 4/4] mm: Don't skip arch_sync_kernel_mappings() in error paths Message-ID: References: <20250217140419.1702389-1-ryan.roberts@arm.com> <20250217140419.1702389-5-ryan.roberts@arm.com> 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: <20250217140419.1702389-5-ryan.roberts@arm.com> On Mon, Feb 17, 2025 at 02:04:17PM +0000, Ryan Roberts wrote: > Fix callers that previously skipped calling arch_sync_kernel_mappings() > if an error occurred during a pgtable update. The call is still required > to sync any pgtable updates that may have occurred prior to hitting the > error condition. > > These are theoretical bugs discovered during code review. > > Cc: stable@vger.kernel.org > Fixes: 2ba3e6947aed ("mm/vmalloc: track which page-table levels were modified") > Fixes: 0c95cba49255 ("mm: apply_to_pte_range warn and fail if a large pte is encountered") > Reviewed-by: Anshuman Khandual > Signed-off-by: Ryan Roberts Reviewed-by: Catalin Marinas