Received: by 10.213.65.68 with SMTP id h4csp3882298imn; Tue, 10 Apr 2018 06:11:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+B5plXMEIoCqgKcgb3vBYHawyHkAdlIxAJ/Bp7wybMUjbb8dMyzKcfrPjl1b+S0dFWV29x X-Received: by 10.98.93.20 with SMTP id r20mr305337pfb.53.1523365862753; Tue, 10 Apr 2018 06:11:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523365862; cv=none; d=google.com; s=arc-20160816; b=WIoJltlByC0FRD7HpNL8sDVndzw0VrtgMzUEY6OlNTuRAHgBSmDIvuyCJGgALImSDW Hbo0It88aWcwGp6mHBQ/TjgNG4CgFlmHkzIebofNSpZIqHEIMKp3cZ4eFRJcxruLVZkx 28PAcQCfqDnTx+kDx9os7DeP6CRLyl0m6gkcujescmpQ43/I/tZO+m1tHiXd90M6m/GD h4/gOzr7vWGjF1yQsxX6lGbgeIca0Vxs0fBI8FmTgjb0N4cxRao1BIMTm15AxS8WBKBu 51sTYa05uCdJEFJ9xk18ZfUxVlulS3m+bqd1UDKQkU/3iOGDait33O6KQsNYU2boOwEC 1Gcw== 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=dIKbYe+gTrcof2J5fhGCtbWdBzRQPTxr6l1axsHRNJE=; b=d4fFj8RRNJvqqc1XTcbhHc/C87aZHEHFU5fz9dmRda+u+CN690QI+XfKRJ5Y+YhYOE z23FwyVmAdKE9bjlPA2c10k4XVBKce/UhzCdCqoX8Y3mgM6CqnkGuqLPpEFh8oU13SCD fDGqFJ/1nJVFzrQG265nNbLUwoEMietESw6qFPsD2r+IVhVFNo9o75TaVyruAicYu50j xnX0evWjWE22HP4tuISgAz7nM/anFOd+wYLVI2wBWaCSNT3bBCHg461ljZa/BlHtWiTw E013hgyuya7/3xAHLnWSRFyum6Yn9Hg3gUHfNphi2qQ2WxU4LAlrWiDwwae5qlYfH20v nYlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@cmpxchg.org header.s=x header.b=jfwr8kHu; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x24si1557876pfa.98.2018.04.10.06.10.25; Tue, 10 Apr 2018 06:11:02 -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=@cmpxchg.org header.s=x header.b=jfwr8kHu; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753549AbeDJNHW (ORCPT + 99 others); Tue, 10 Apr 2018 09:07:22 -0400 Received: from gum.cmpxchg.org ([85.214.110.215]:50970 "EHLO gum.cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753181AbeDJNHV (ORCPT ); Tue, 10 Apr 2018 09:07:21 -0400 X-Greylist: delayed 492 seconds by postgrey-1.27 at vger.kernel.org; Tue, 10 Apr 2018 09:07:20 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cmpxchg.org ; s=x; 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=dIKbYe+gTrcof2J5fhGCtbWdBzRQPTxr6l1axsHRNJE=; b=jfwr8kHu3WZPOQplUmxs0jOQQn +69ERupZOlcqYHmt3vy4wJGlurc7CfoKFq3w0GjVkhy/Q1EY9l2wcGmeXuFpA+hW4XzQJyygAxOAf 9JMKQqDuRljqAO8uPgWXF2qNBkzy/OTSD208EAHigM/waiQjQTQp7Kr4vaRFZ6WxAoFk=; Date: Tue, 10 Apr 2018 09:08:30 -0400 From: Johannes Weiner To: Matthew Wilcox 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 Subject: Re: [PATCH 2/2] page cache: Mask off unwanted GFP flags Message-ID: <20180410130830.GB7010@cmpxchg.org> References: <20180410125351.15837-1-willy@infradead.org> <20180410125351.15837-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410125351.15837-2-willy@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) 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 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. Could you please mention the nullptr crash here, maybe even in the patch subject? That makes it much easier to find this patch when you run into that bug or when evaluating backport candidates. Other than that, > Fixes: 19f99cee206c ("f2fs: add core inode operations") > Reported-by: Minchan Kim > Signed-off-by: Matthew Wilcox > Cc: stable@vger.kernel.org Acked-by: Johannes Weiner