From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7EF2BCA9EBE for ; Fri, 25 Oct 2019 21:58:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 24CAA21D81 for ; Fri, 25 Oct 2019 21:58:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="V7hXa31U" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 24CAA21D81 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 83B276B0003; Fri, 25 Oct 2019 17:58:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 7C4A26B0006; Fri, 25 Oct 2019 17:58:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 68B886B0007; Fri, 25 Oct 2019 17:58:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0141.hostedemail.com [216.40.44.141]) by kanga.kvack.org (Postfix) with ESMTP id 4263A6B0003 for ; Fri, 25 Oct 2019 17:58:29 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with SMTP id E7FC6181AEF15 for ; Fri, 25 Oct 2019 21:58:28 +0000 (UTC) X-FDA: 76083671496.17.smash86_671ba0aa0cf4c X-HE-Tag: smash86_671ba0aa0cf4c X-Filterd-Recvd-Size: 3324 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Fri, 25 Oct 2019 21:58:28 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CD05B21D7F; Fri, 25 Oct 2019 21:58:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572040707; bh=5idHqzI+WDLhPVhG4vI2ZMChGI3hQGDJ+ZfGRxe0PSk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V7hXa31Uos3d+7DomJcDHCsK1tAEa/hKrzpZ6JVU5sh0ejVGcV6AYpTNCCfKj0yGH 9L8NB8JihQZ5Uyo2PehT1vpnOs5+87csqN2nTpkxTNJhNy3nwJy0cf1Q8phBhOyjl5 UIJUHjZz7Qk49FHME8WpQam7ERAEwn2uFD/6TQvE= Date: Fri, 25 Oct 2019 14:58:26 -0700 From: Andrew Morton To: Vlastimil Babka Cc: Michal Hocko , Mel Gorman , Waiman Long , Johannes Weiner , Roman Gushchin , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini , linux-mm@kvack.org, LKML , Michal Hocko , David Rientjes , stable Subject: Re: [PATCH 1/2] mm, vmstat: hide /proc/pagetypeinfo from normal users Message-Id: <20191025145826.acfd34f4eaec65f0525ac40b@linux-foundation.org> In-Reply-To: References: <20191025072610.18526-1-mhocko@kernel.org> <20191025072610.18526-2-mhocko@kernel.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, 25 Oct 2019 09:33:26 +0200 Vlastimil Babka wrote: > On 10/25/19 9:26 AM, 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 > > Cc: As we don't really know how much damage this will cause, it would be nice to let it bake in mainline for a month or three before committing it to the -stable trees. But we don't have a process for that, apart from remembering to poke Greg at a suitable date. Oh well. I guess that if someone is truly harmed by this change, they can just chmod /proc/pagetypeinfo back to 0444.