Received: by 10.213.65.68 with SMTP id h4csp3950812imn; Tue, 10 Apr 2018 07:05:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4//Phy+Hh9OEtYwMSwIBtHGQLdnx+YmDrRgv+Maz3Vww9zxRB8h5Fieqrp06dyYsHKbI5R2 X-Received: by 2002:a17:902:141:: with SMTP id 59-v6mr602646plb.219.1523369153394; Tue, 10 Apr 2018 07:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523369153; cv=none; d=google.com; s=arc-20160816; b=w5FUBPwPXS5Um21hhOlXLMRAMDm1iqcQjGq18unBrsyaIRWMFA79ZJk3HjRvfk4CGg Yy/taOc+sSZNt2qB6ji6BQ57eKqgmC2kGRQgMbqAxf3a6jWeMwpJqIB0xvx4i5CUqELw 7YK+keJkXGjt9Z4R6HWyPXF7WB6I/E2BLsu1xBvrRBgTpxHYnQCdZSCS25CkraUcPPhQ I1AsNiCk1NMQOLgV6Kf0s31xwDYwlrBDKZ+NrleMiHoKuAALLMa1mi4/GFzsobEQ8hiK GRe/Kmhr22wcvya1Sbfs5Dc4eQj35IWMoTJm9BUIsMgtA6IrEf2cHt5yO+ZK7tQcht7/ PDVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=CbBgsf5jPJcjKbwp58UWYbss/bsKFBxXj6W22XKb6pc=; b=jTHnREetczZWI7tyiNN8E68AcklkjN992/unzg4kWVW4sIRwW+vFZQcLiuupQJywZp Qu9n+Fo+r7FD7VZ3fa5dYksOjsVkC6oBCqtXGx72V/Q+Z0lF7k/dvIBl9vdMrmnA8Nui gfZORaFZbS1BlC2rUzx81mzhCCp7gmCoaykz99WSGDR/3q4Q3EpAnpQMQaqefBAOQ0VZ kXSsRO+KHoEBe7lnV6VRpfqQMnSyk7WcivkCZAC22hc92IFYJvU/OsFenxb9XiqjeP0Z yjyYaj0+TdT6D6y05enXGvqmgSHc8rTMpNQ3edPzWwrblwZ26i/MvrWVwdNwYNkrTg92 oFEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FhfWuNW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si1846151pgd.737.2018.04.10.07.05.10; Tue, 10 Apr 2018 07:05:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=FhfWuNW1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753276AbeDJOCa (ORCPT + 99 others); Tue, 10 Apr 2018 10:02:30 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40032 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752802AbeDJOC2 (ORCPT ); Tue, 10 Apr 2018 10:02:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CbBgsf5jPJcjKbwp58UWYbss/bsKFBxXj6W22XKb6pc=; b=FhfWuNW1dtylf+GDd8w4mXq5E FliZQfMX5eSWoFqeAVfwG+hRJ9vQijhnBNAQDz+H4TJLsCmcwFZUgmQqCc24XI+L40o0rISwIGf8F YTNX2Pu56NPsyvkub46xklOilfMdNdbcPzL48jpK/w880wR0wqA2KqW21k6YWHsu656fYBHnTm94p 2a6V3PWmaWQq3Kx6FvQpRh4CdL5eiPdfpLOtGjqU9PVlUqIeIE8hsCNLMX1Pl4XExxbWgMOQfNeaW U/AYU0qgy8vKLGZlxUKK22p92HH22f4GRJQOUQJdImWuf64uvEhXCCSl9CyHNuAVmEoaDqm0jh0xv CnIjRmRvg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5tqq-0000Kq-3t; Tue, 10 Apr 2018 14:02:24 +0000 Date: Tue, 10 Apr 2018 07:02:23 -0700 From: Matthew Wilcox To: Minchan Kim Cc: linux-mm@kvack.org, Matthew Wilcox , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-kernel@vger.kernel.org, Jan Kara , Jeff Layton , Mel Gorman , stable@vger.kernel.org, jaegeuk@kernel.org Subject: Re: [PATCH 2/2] page cache: Mask off unwanted GFP flags Message-ID: <20180410140223.GE22118@bombadil.infradead.org> References: <20180410125351.15837-1-willy@infradead.org> <20180410125351.15837-2-willy@infradead.org> <20180410134545.GA35354@rodete-laptop-imager.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410134545.GA35354@rodete-laptop-imager.corp.google.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 10:45:45PM +0900, Minchan Kim wrote: > On Tue, Apr 10, 2018 at 05:53:51AM -0700, Matthew Wilcox wrote: > > From: Matthew Wilcox > > > > The page cache has used the mapping's GFP flags for allocating > > radix tree nodes for a long time. It took care to always mask off the > > __GFP_HIGHMEM flag, and masked off other flags in other paths, but the > > __GFP_ZERO flag was still able to sneak through. The __GFP_DMA and > > __GFP_DMA32 flags would also have been able to sneak through if they > > were ever used. Fix them all by using GFP_RECLAIM_MASK at the innermost > > location, and remove it from earlier in the callchain. > > > > Fixes: 19f99cee206c ("f2fs: add core inode operations") > > Why this patch fix 19f99cee206c instead of 449dd6984d0e? > F2FS doesn't have any problem before introducing 449dd6984d0e? Well, there's the problem. This bug is the combination of three different things: 1. The working set code relying on list_empty. 2. The page cache not filtering out the bad flags. 3. F2FS specifying a flag nobody had ever specified before. So what single patch does this patch fix? I don't think it really matters.