Message ID | 20191106051640.jFTxrBEBb%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=NTHJ=Y6=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC77815AB for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 6 Nov 2019 05:16:44 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A491C217F4 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 6 Nov 2019 05:16:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="VwhSV0Cx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A491C217F4 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 AE6896B026F; Wed, 6 Nov 2019 00:16:43 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A984C6B0270; Wed, 6 Nov 2019 00:16:43 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9D2C26B0271; Wed, 6 Nov 2019 00:16:43 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0095.hostedemail.com [216.40.44.95]) by kanga.kvack.org (Postfix) with ESMTP id 89CE26B026F for <linux-mm@kvack.org>; Wed, 6 Nov 2019 00:16:43 -0500 (EST) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 3D300180AD817 for <linux-mm@kvack.org>; Wed, 6 Nov 2019 05:16:43 +0000 (UTC) X-FDA: 76124692686.24.ring96_3aa0475720143 X-Spam-Summary: 2,0,0,3376c3e4121b80cd,d41d8cd98f00b204,akpm@linux-foundation.org,:akpm@linux-foundation.org:aquini@redhat.com:david@redhat.com:gregkh@linuxfoundation.org:guro@fb.com:hannes@cmpxchg.org:jannh@google.com:khlebnikov@yandex-team.ru::longman@redhat.com:mgorman@suse.de:mhocko@suse.com:mm-commits@vger.kernel.org:rientjes@google.com:songliubraving@fb.com:stable@vger.kernel.org:torvalds@linux-foundation.org:vbabka@suse.cz,RULES_HIT:41:355:379:800:960:966:967:973:988:989:1260:1263:1345:1381:1431:1437:1534:1542:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2525:2559:2563:2682:2685:2859:2902:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3865:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4385:5007:6119:6261:6653:6737:7576:7903:8599:9025:9207:9545:10004:10913:11026:11473:11658:11914:12043:12048:12296:12297:12517:12519:12555:12679:12783:12986:13221:13229:13846:14181:14721:14849:14915:21067:21080:21451:2 1627:219 X-HE-Tag: ring96_3aa0475720143 X-Filterd-Recvd-Size: 3669 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf03.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Wed, 6 Nov 2019 05:16:42 +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 1FA53206A3; Wed, 6 Nov 2019 05:16:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573017401; bh=r9BtuMYb3R9mJMA1w1aspU7g26I4zEz2UWfRcEJG6mY=; h=Date:From:To:Subject:From; b=VwhSV0CxiUhHaSpdK7Qk8pCd6Z1gq3yq1G1Mm4S/QdlCaVQkdvSmwQq/22gmatkVW nhujA01w/hJNQrL+7N7IUrZIaULDAbNvrEy124HHYIm/oDng7NNbrUALcipFbbW5lN OcqCJao2bBpWQ5HGw454xVSH1drx2NBE64qknV1s= Date: Tue, 05 Nov 2019 21:16:40 -0800 From: akpm@linux-foundation.org To: akpm@linux-foundation.org, aquini@redhat.com, david@redhat.com, gregkh@linuxfoundation.org, guro@fb.com, hannes@cmpxchg.org, jannh@google.com, khlebnikov@yandex-team.ru, linux-mm@kvack.org, longman@redhat.com, mgorman@suse.de, mhocko@suse.com, mm-commits@vger.kernel.org, rientjes@google.com, songliubraving@fb.com, stable@vger.kernel.org, torvalds@linux-foundation.org, vbabka@suse.cz Subject: [patch 07/17] mm, vmstat: hide /proc/pagetypeinfo from normal users Message-ID: <20191106051640.jFTxrBEBb%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 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: <linux-mm.kvack.org> |
Series |
[01/17] mm: memcontrol: fix NULL-ptr deref in percpu stats flush
|
expand
|
--- a/mm/vmstat.c~mm-vmstat-hide-proc-pagetypeinfo-from-normal-users +++ a/mm/vmstat.c @@ -1972,7 +1972,7 @@ void __init init_mm_internals(void) #endif #ifdef CONFIG_PROC_FS proc_create_seq("buddyinfo", 0444, NULL, &fragmentation_op); - proc_create_seq("pagetypeinfo", 0444, NULL, &pagetypeinfo_op); + proc_create_seq("pagetypeinfo", 0400, NULL, &pagetypeinfo_op); proc_create_seq("vmstat", 0444, NULL, &vmstat_op); proc_create_seq("zoneinfo", 0444, NULL, &zoneinfo_op); #endif