Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp78534pxv; Tue, 13 Jul 2021 22:29:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9bUXHRUwmjIbJhaNesANKrAurE+SGf43rbpeqscAT51Xk58Ia68a6j+63Oirb9gMVd7Xc X-Received: by 2002:a05:6602:2cc8:: with SMTP id j8mr5617727iow.141.1626240562644; Tue, 13 Jul 2021 22:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626240562; cv=none; d=google.com; s=arc-20160816; b=Lr0J6WnaoBNs26B1OyFJ/iDcN4yJc7l8nMD4DD3ECwWjM5YbRDimR71Fg7L+P776I9 CLJBnNrohcLGuhHQdCAFvd7mS3+MqO/UI1ZN/YMHw5B1BDFV57s0i9VM/lFkmP0iaPtu YtQ3bJvdMoHprov7TE3AL4jKPPguPKddUlrD3QK96oLkxCfrfq3Lbq5jwohpkBjqrk94 qMTV2h29WxmjTUOGE7KnMMeDsVexf1g//mbwHVa8nRzuO+KdYDK/ZrIhzVC7LIPRMrQC 35jmiLNGvfHuWCQA2pHRez4iCIXKsu3oU1hIPFM3yCKw3r7E6miwgrtHVAmC80sR6zH/ GBdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YvuykZ64LYnh+nK7j4J8frPNu1Bnu6PpelQVJ03MgT8=; b=NCcY60ezeDXgpKi19kGl27Dos23K4fq/rvxYdOz4L1XApI5MCybkF/LkOhr6yYuaO6 Z9+7pqdEcX1g5YbIkQfx14nqRyIJNCTjZFUomnGprNtxdK+yeKzq5F2UgSmfPNCi7W95 xkhy0zAGCXT3IMTtpNd53RzFP+ljW6x/ZElnxZ6c12JV15fjQ6FZf/JarKnHybXgSrg9 a4bNiUYvfO1l67ctYXaAe8FHq7a2A0kuid4C0F0IMvZsuBeXV3CcC3GHJnusTdN7IjO9 96sqjuN4bups2XSExNf5Dw+mGmHQohqH9ymPcGTS6HUlffCkS0GNBjk5QRJnl3oi2VVV ywrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si1479117jat.56.2021.07.13.22.29.10; Tue, 13 Jul 2021 22:29:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237892AbhGNFbf (ORCPT + 99 others); Wed, 14 Jul 2021 01:31:35 -0400 Received: from verein.lst.de ([213.95.11.211]:60959 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237802AbhGNFbe (ORCPT ); Wed, 14 Jul 2021 01:31:34 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A429C67373; Wed, 14 Jul 2021 07:28:41 +0200 (CEST) Date: Wed, 14 Jul 2021 07:28:41 +0200 From: Christoph Hellwig To: Andrew Morton Cc: Christoph Hellwig , Ira Weiny , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 1/2] mm: call flush_dcache_page in memcpy_to_page and memzero_page Message-ID: <20210714052841.GA6380@lst.de> References: <20210713055231.137602-1-hch@lst.de> <20210713055231.137602-2-hch@lst.de> <20210713183123.699769a1b0ee95d69606c35d@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210713183123.699769a1b0ee95d69606c35d@linux-foundation.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 13, 2021 at 06:31:23PM -0700, Andrew Morton wrote: > On Tue, 13 Jul 2021 07:52:30 +0200 Christoph Hellwig wrote: > > > memcpy_to_page and memzero_page can write to arbitrary pages, which could > > be in the page cache or in high memory, so call flush_kernel_dcache_pages > > to flush the dcache. > > I assume this presently is not known to cause any problems, but that > some problems might be discovered in the future? In which case, > should we cc:stable? This is a problem when using these helpers on dcache challeneged architectures. Right now there are just a few users, chances are no one used the PC floppy drŅ–ver, the aha1542 driver for an ISA SCSI HBA, and a few advanced and optional btrfs and ext4 features on those platforms yet since the conversion. So yes, stable would be good.