Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4001521ybg; Fri, 25 Oct 2019 11:56:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyhx2IOjlm36O4aLxkUW5Ah7EOC1xLahNSdnyj+iDQiEDHgfVoRsjbrqLNXkXZ+uOa/SBr X-Received: by 2002:a05:6402:110c:: with SMTP id u12mr5664981edv.127.1572029783233; Fri, 25 Oct 2019 11:56:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572029783; cv=none; d=google.com; s=arc-20160816; b=PILpF4fHe0O0uJyi5/Y+2pN8E8/LARGyAL4Lr8IUqXy1Nu6KMcp75UJK2HsIWzn+DG 3ebHqfG8G+9u398hfxhCHO+JtMLoGffpSyLJHXHAyYnySOazJubpXRV8zevMJFmRjaPH d/rzrPjOkNan2sci8muq0nHbDvBBntI2l7nPT9DCiHZmK7qmbE4Gz+yo4HcD0fQsirNk /4CV2fG63V8WGk25Ym/43FstIFuZoaLCVVeDUGXugltAnrBmacwNNVIvKfC8MZ7ezXbZ yOfroyLlOVeJSZBl+2hQYpaH8boHayZHRV8k5FKG2oZ5Yf2TJG4dUC67W3B1ldIrc0Mj 8VpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=lGCdcxYn0fhxI/F+Acv75O+uiNWd2Mq3qhp7qlP+npM=; b=ETK2GD6tvrvGV0GI56cP/cbzXTXGNQc8OJXIxaCr7LKgxuiof2ex2FU7uqZ6b1y08L Bs4bFTkuhSdDFTkvlsIhMSn8ZIyoW1dqXY32/ONJpeZZ2lR35zXPiBakweG+UKfcbOEy hIJyPq3XzzTWWl+zXwMUivRqjl2PWO0I6IWR8aBTFqW0J+e/jUeeI+a7YbLvWqzroLE1 53B+xCPVl4VgPmTVvBLWhpp8aItsJ+I8QjtzibT6kWCSs2vYLnfDRGeXTeRLERZ5Frir fV5yWyw6uunWXQFZDggVOUMSJjtuh+xiRlgwi9TFzvwAdcDtNwYFcZaCFw9P8CWo78yB PgUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="C98ZSUR/"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y67si2053943ede.436.2019.10.25.11.56.00; Fri, 25 Oct 2019 11:56:23 -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=pass header.i=@google.com header.s=20161025 header.b="C98ZSUR/"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504220AbfJXTBl (ORCPT + 99 others); Thu, 24 Oct 2019 15:01:41 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40143 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390493AbfJXTBk (ORCPT ); Thu, 24 Oct 2019 15:01:40 -0400 Received: by mail-pl1-f193.google.com with SMTP id d22so12312120pll.7 for ; Thu, 24 Oct 2019 12:01:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=lGCdcxYn0fhxI/F+Acv75O+uiNWd2Mq3qhp7qlP+npM=; b=C98ZSUR/4d7JgbXxedGADnm9ri1iP+4j59mYVyshMzIB+sPNTq05Zx/Wvh2qYBb58q 1F+xh7GoGea48bavabDj0ISu0sjYZC2Ueu8LRYU3BQ0EuXp1Zpj0MTybaPsAxY6GG6NQ Rt+ON+PG2M2hpYS+huhURc4FwH8K5579hZhS1gKlJAhfIRoLZUwoxFDC3QpM+RCWWAUL jrMDguCosKTJyInDGKkATia4svm81xLkg79QnHUUAEyUxHNLoCyEjliw6+QTloDbmEwJ GqyzRY6gUVfwF4Vf9si1UNdIc8179Q+i1bFZwYIFnMJ1d9/h5yG2EToWNYkRZ1KZU0D5 uAFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=lGCdcxYn0fhxI/F+Acv75O+uiNWd2Mq3qhp7qlP+npM=; b=ngOXMkJaXToWVGBgLyr1+6TLlXx4wCXQ10CakTXnnLqSOpYyUTyLUbjJINPdcGGDZV JcFB1yM0FSvzrLdX+NNcZIxDa6dZqOBeboBp9OTnB/cfORONHIcyzFMTJi1n0jjWvMek hAZ2MkYkj2cdLDHsviYCDzTyP1nEIVeJbPp/JVZi+lviA6/faXGT06IhX0UOiKtsFeZi VBaEJ9MdL92u31pZQupbRI4VuPRMWVjZxSu30SockPpnKBFuv2N8KM7KyYgqk8DhkkJW 5qKYG0ZKAc3rmY1yafgNTUoStAzYTzGojEtwBhDAssrOGnRDkx/qfhERbC+7wQKB9UDm eyxw== X-Gm-Message-State: APjAAAWl0NFKvsjMJTSuYMv1tvi1Q/btpg3AFpPGzozn4qmjIA4fWdG5 FJqe12AErn008cRA9T0noLgPXQ== X-Received: by 2002:a17:902:d698:: with SMTP id v24mr17062393ply.340.1571943699729; Thu, 24 Oct 2019 12:01:39 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id j12sm3453005pjz.12.2019.10.24.12.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 12:01:38 -0700 (PDT) Date: Thu, 24 Oct 2019 12:01:38 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko cc: Andrew Morton , Mel Gorman , 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 In-Reply-To: <20191023102737.32274-2-mhocko@kernel.org> Message-ID: References: <20191023095607.GE3016@techsingularity.net> <20191023102737.32274-1-mhocko@kernel.org> <20191023102737.32274-2-mhocko@kernel.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Oct 2019, 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: David Rientjes