Received: by 10.213.65.68 with SMTP id h4csp3847036imn; Tue, 10 Apr 2018 05:42:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sitHi051bL84AhOcnzzhgVND9nDWTmnHD1avlO5r50tZc3I38HpZFu8Bnt3kpOglTaM5u X-Received: by 2002:a17:902:8d82:: with SMTP id v2-v6mr264574plo.101.1523364162675; Tue, 10 Apr 2018 05:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523364162; cv=none; d=google.com; s=arc-20160816; b=hUHQlt4RrkXOezYWtVjrGAaVqdVP0ag+r9o0k8NNG+NN2lW4IykY9qgKmBSLNU1lsO RjVfRy/tElE+yuKfi6A2jSJs9adAgIqU+tAjf28Ks/+1PXfaLWC/RbQHxLEPDHWzfwzt Ku4PSd38Q6rFO4pcwsAV6b0VKihWSsEKZBvHewKYsIrv97Ib2N9OneLUdfo0HkR8LU5B xyy2SD2sXedt7WZw81lwCNyH/XZ0LCUOJtYr1VWTdOUVPEuVd9KAKIRRlpJqFevrmlRH wrAOsO6Y8iR5LVYxThoQjN1/nA81KH4f1W9ROrKc66opooTaOhYTH0OSOvn7lsvNRjdf 65SQ== 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:arc-authentication-results; bh=r6AA4NeeUIHSLNpIX9Z9aFup1r07beZTIp9+ETZ7DAk=; b=BXN/8ZSsYJwiMMz94MOmDCa/1SL0JiVc6ytig9o8SCV1tyqOmmrxsXWqWvegTnrbgu sXSHECaNnhwGLvxgGOsplk4FWM7SEAwNFNXXUidvw3owzuCxsll86Q4XsyeeMy7ixaWV fJ3FRAC9txE+dhRjwma2cFJ6dyzWZj885VVvmYC/mvuRpAmrf5LTIjVxpkMUbX3/ZW/T rMv6+oyd+uHXwpbwnt9sV+NN9tVkpMjceQcDSECHdiLiFWeaRubUR2jQbSBSzNEqUlru Y5dxUCTVf+DPzICREX2tT90BntkjeJL/CWBS7uX6OoTDBMnZ+qafr7qIgXw1GTa99/kc eoRQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d13si2091045pfl.206.2018.04.10.05.42.05; Tue, 10 Apr 2018 05:42:42 -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; 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 S1753254AbeDJMjB (ORCPT + 99 others); Tue, 10 Apr 2018 08:39:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:43544 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbeDJMi7 (ORCPT ); Tue, 10 Apr 2018 08:38:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E1A1BAFC2; Tue, 10 Apr 2018 12:38:57 +0000 (UTC) Date: Tue, 10 Apr 2018 14:38:57 +0200 From: Michal Hocko To: Matthew Wilcox Cc: Minchan Kim , Chao Yu , Jaegeuk Kim , Christopher Lameter , Andrew Morton , linux-mm , LKML , Johannes Weiner , Jan Kara , Chris Fries , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] mm: workingset: fix NULL ptr dereference Message-ID: <20180410123857.GJ21835@dhcp22.suse.cz> References: <20180409112514.GA195937@rodete-laptop-imager.corp.google.com> <7706245c-2661-f28b-f7f9-8f11e1ae932b@huawei.com> <20180409144958.GA211679@rodete-laptop-imager.corp.google.com> <20180409152032.GB11756@bombadil.infradead.org> <20180409230409.GA214542@rodete-desktop-imager.corp.google.com> <20180410011211.GA31282@bombadil.infradead.org> <20180410023339.GB214542@rodete-desktop-imager.corp.google.com> <20180410024152.GC31282@bombadil.infradead.org> <20180410025903.GA38000@rodete-desktop-imager.corp.google.com> <20180410115651.GA22118@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180410115651.GA22118@bombadil.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 10-04-18 04:56:51, Matthew Wilcox wrote: > On Tue, Apr 10, 2018 at 11:59:03AM +0900, Minchan Kim wrote: > > Okay, I hope this version clear current concerns. > > It doesn't. The right place to warn about GFP_ZERO used with a > constructor is _slab_, like the patch I already sent. We have no idea > what other places might have the same bug, and slab is the only place > to catch that. I agree with that. Radix tree shouldn't be really that special. I would rather get rid of the ctor subtle thingy but if we absolutely have to keep it then the GFP_RECLAIM_MASK filtering and a warning in slab for __GFP_ZERO looks like a reasonable step forward. -- Michal Hocko SUSE Labs