Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935245AbeAITxb (ORCPT + 1 other); Tue, 9 Jan 2018 14:53:31 -0500 Received: from merlin.infradead.org ([205.233.59.134]:44030 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754748AbeAITx1 (ORCPT ); Tue, 9 Jan 2018 14:53:27 -0500 Date: Tue, 9 Jan 2018 20:53:19 +0100 From: Peter Zijlstra To: Steven Rostedt Cc: Vince Weaver , Ingo Molnar , linux-kernel@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Thomas Gleixner Subject: Re: perf: perf_fuzzer quickly locks up on 4.15-rc7 Message-ID: <20180109195319.GN6176@hirez.programming.kicks-ass.net> References: <20180108173005.lkglqrixb2ota6g2@gmail.com> <20180109102507.GG6176@hirez.programming.kicks-ass.net> <20180109132602.GA2369@hirez.programming.kicks-ass.net> <20180109151253.GK6176@hirez.programming.kicks-ass.net> <20180109161400.GC2369@hirez.programming.kicks-ass.net> <20180109125346.17cad4a5@vmware.local.home> <20180109180207.GM6176@hirez.programming.kicks-ass.net> <20180109130957.52b8d9ce@vmware.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180109130957.52b8d9ce@vmware.local.home> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, Jan 09, 2018 at 01:09:57PM -0500, Steven Rostedt wrote: > On Tue, 9 Jan 2018 19:02:07 +0100 > Peter Zijlstra wrote: > > > This would globally serialize all perf_ioctl()'s, also that event_mutex > > is for trace_events and really does not belong in perf. > > > > So no, I really rather would not do this. > > > > The alternative I was thinking of was lifting the cpuhp lock out from > > under event_mutex, that would also break the chain, but would probably > > be lots of work for trace bits. > > I think we tried that once, and it became an never ending whack a mole > process. I prefer not to do that either. Figures.. > How bad is your work around patch that you posted? Not too bad, just tricky..