Reply-To: kernel-hardening@lists.openwall.com Sender: Vasiliy Kulikov Date: Mon, 12 Dec 2011 15:31:56 +0400 From: Vasiliy Kulikov Message-ID: <20111212113156.GA12141@albatros> References: <20111211182821.GA2853@albatros> <20111211205939.GH2203@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111211205939.GH2203@ZenIV.linux.org.uk> Subject: [kernel-hardening] Re: [PATCH -next] proc: fix task_struct infoleak To: Al Viro Cc: Andrew Morton , Alexey Dobriyan , kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, Hugh Dickins List-ID: On Sun, Dec 11, 2011 at 20:59 +0000, Al Viro wrote: > On Sun, Dec 11, 2011 at 10:28:21PM +0400, Vasiliy Kulikov wrote: > > proc_pid_permission() doesn't put task_struct on every /proc/$pid/ > > access. A demo from Hugh Dickins: > > > > while :; do ps; grep KernelStack /proc/meminfo; sleep 1; done > > > > Reported-by: Hugh Dickins > > Signed-off-by: Vasiliy Kulikov > > --- > > This is a patch against a hidepid patchset from -mm. > > Choose saner commit summary, please. It's not information leak, for pity sake > - it's a plain and simple memory leak... Oops! s/infoleak/memleak/ surely, bad habit... Thank you, I'll resend the patch. -- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments