Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755487Ab2JCFMr (ORCPT ); Wed, 3 Oct 2012 01:12:47 -0400 Received: from mail-da0-f46.google.com ([209.85.210.46]:54150 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755131Ab2JCFMq (ORCPT ); Wed, 3 Oct 2012 01:12:46 -0400 Date: Tue, 2 Oct 2012 22:12:43 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Kees Cook cc: linux-kernel@vger.kernel.org, Andrew Morton , Minchan Kim , Joe Perches , Kautuk Consul , linux-mm@kvack.org, Brad Spengler Subject: Re: [PATCH] mm: use %pK for /proc/vmallocinfo In-Reply-To: <20121002234934.GA9194@www.outflux.net> Message-ID: References: <20121002234934.GA9194@www.outflux.net> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 598 Lines: 15 On Tue, 2 Oct 2012, Kees Cook wrote: > In the paranoid case of sysctl kernel.kptr_restrict=2, mask the kernel > virtual addresses in /proc/vmallocinfo too. > > Reported-by: Brad Spengler > Signed-off-by: Kees Cook /proc/vmallocinfo is S_IRUSR, not S_IRUGO, so exactly what are you trying to protect? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/