From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762014Ab3JPU4L (ORCPT ); Wed, 16 Oct 2013 16:56:11 -0400 Received: from merlin.infradead.org ([205.233.59.134]:37298 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761392Ab3JPU4J (ORCPT ); Wed, 16 Oct 2013 16:56:09 -0400 Date: Wed, 16 Oct 2013 22:55:59 +0200 From: Peter Zijlstra To: Oleg Nesterov Cc: Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] (Was: perf_event_mmap(vma) && !vma->vm_mm) Message-ID: <20131016205559.GF10651@twins.programming.kicks-ass.net> References: <20131012192203.GA21738@redhat.com> <20131014102426.GX3081@twins.programming.kicks-ass.net> <20131016200924.GA23214@redhat.com> <20131016202822.GI2675@laptop.programming.kicks-ass.net> <20131016204348.GA25121@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131016204348.GA25121@redhat.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2013 at 10:43:48PM +0200, Oleg Nesterov wrote: > Yes, we can copy the garbage to the userspace. So what? This should not > matter at all. Exactly because userspace should never used the data after > the end of string, no? Security people tell me to _never_ leak anything. I'm not near creative enough to exploit such a thing; but I am amazed at the techniques I do read about at times. So its really a better safe than sorry thing.