From: Peter Zijlstra Subject: Re: OOPS in perf_mmap_close() Date: Wed, 29 May 2013 09:44:33 +0200 Message-ID: <20130529074433.GB12193@twins.programming.kicks-ass.net> References: <20130523044803.GA25399@ZenIV.linux.org.uk> <20130523125218.GB23650@twins.programming.kicks-ass.net> <20130523152611.GE23650@twins.programming.kicks-ass.net> <20130528085548.GA12193@twins.programming.kicks-ass.net> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: trinity-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Vince Weaver Cc: Al Viro , linux-kernel@vger.kernel.org, Paul Mackerras , Ingo Molnar , Arnaldo Carvalho de Melo , trinity@vger.kernel.org On Tue, May 28, 2013 at 02:22:11PM -0400, Vince Weaver wrote: > On Tue, 28 May 2013, Vince Weaver wrote: > > > It looks like this is already in tip, but I can confirm that this > > patch seems to fix things on my machine and holds up against longer > > fuzzing runs. > > OK, I take it back. Even with the new patch applied, my fuzzer can still > make the kernel leak user->locked_vm > > I assume that the locked_vm value should go back to 0 once a process that > has a bunch of mmap'd perf_events opened exits? Yep. > I admit this is sort of an obscure corner case, but it does mean that a > user can leak user->locked_vm to the point that "perf record" no longer > works. Hurm.. I don't suppose you have an easy reproducer handy eh? I'll go stare at it. At least the current state is better than before, but clearly we're not quite there yet.