Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1271442ybg; Wed, 23 Oct 2019 13:05:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAUkmRptyets1Wzej++18yICP5Sds+RPO1HT4b4YyyIyHaK/hqjX40+7DGczbOcLCc1s47 X-Received: by 2002:a50:fe0f:: with SMTP id f15mr38513971edt.89.1571861142815; Wed, 23 Oct 2019 13:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861142; cv=none; d=google.com; s=arc-20160816; b=ldSPWqKbeEFDzUm6gXeHV+hdUFHUl8X9gvgP/1IgXz2blBf4zgy4vHbqUVNhdXQB1I oz6otNSF5qbK3LR8bHbtEUI1MLor4saHvJAk+tF2C0lrM86uNZdtPfSfhyXxW835hs7N 2Ko18q3Fjt+TQcoeffmF7qQce/14ktqs9ZjoTSsFWjbd3w8En34xhqIk6u8BMmTqxu9W mCvjq88gk3Jmh2Nm/ZHLTfltFqDeZs0i4mh6739lOZn/IyOQ+pGsakDFD/sw+EotsIi9 4OMBAIe/zJHhgXmADK7CWozGm2P6lsQQ1BIb8nvdWmbmNealcOxpBYBrRAgrNAeQdKP8 Qmrw== 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; bh=vpoYZ6LTDGe61gDBcs7jwZAGHZZn/C5rdm6eckOc+3E=; b=C/tzsshNuAePtrCLvqWV70oz1WwRYOwd9nubyM0Wd6IdEVvFSb7EoI+j/46pUTA5oS 4jPjNJjT0eESjFfQK7h91PIBcA1ylmrXCLqlaLysFGzOg9X+YeESKcsJSlgz53a5TPF5 /EQSfkNelcauXQ7yqlnK/E9sLaDpNUXtxWxQsdiqNtPqhuE9bYv/Qb20ogmk7f5MUb9J 14sOhdgn99NIFl5FwolJLAg5W3hYlaGad/Srjp0PrWCiwkeHbLZ7vjlNm1qHfmcMh0P6 a/e+nvJNlKeok8NHepGxeZLMToLpndJFuz8OeDs8iJug7/gPCHij9JGxVBQ9kpiUTpOH s5Zg== 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 z3si13492734ejb.42.2019.10.23.13.05.17; Wed, 23 Oct 2019 13:05: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 S2405159AbfJWNNF (ORCPT + 99 others); Wed, 23 Oct 2019 09:13:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:34248 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732284AbfJWNNF (ORCPT ); Wed, 23 Oct 2019 09:13:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E0658B1BD; Wed, 23 Oct 2019 13:13:03 +0000 (UTC) Date: Wed, 23 Oct 2019 14:13:01 +0100 From: Mel Gorman To: Michal Hocko Cc: Andrew Morton , Waiman Long , Johannes Weiner , Roman Gushchin , Vlastimil Babka , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini , linux-mm@kvack.org, LKML , Michal Hocko Subject: Re: [RFC PATCH 1/2] mm, vmstat: hide /proc/pagetypeinfo from normal users Message-ID: <20191023131301.GB28938@suse.de> References: <20191023095607.GE3016@techsingularity.net> <20191023102737.32274-1-mhocko@kernel.org> <20191023102737.32274-2-mhocko@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20191023102737.32274-2-mhocko@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 23, 2019 at 12:27:36PM +0200, Michal Hocko wrote: > From: Michal Hocko > > /proc/pagetypeinfo is a debugging tool to examine internal page > allocator state wrt to fragmentation. It is not very useful for > any other use so normal users really do not need to read this file. > > Waiman Long has noticed that reading this file can have negative side > effects because zone->lock is necessary for gathering data and that > a) interferes with the page allocator and its users and b) can lead to > hard lockups on large machines which have very long free_list. > > Reduce both issues by simply not exporting the file to regular users. > > Reported-by: Waiman Long > Cc: stable > Signed-off-by: Michal Hocko Acked-by: Mel Gorman -- Mel Gorman SUSE Labs