From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756056AbbLQO0X (ORCPT ); Thu, 17 Dec 2015 09:26:23 -0500 Received: from casper.infradead.org ([85.118.1.10]:37972 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755225AbbLQO0W (ORCPT ); Thu, 17 Dec 2015 09:26:22 -0500 Date: Thu, 17 Dec 2015 15:26:17 +0100 From: Peter Zijlstra To: Dmitry Vyukov Cc: Ingo Molnar , Arnaldo Carvalho de Melo , LKML , syzkaller , Kostya Serebryany , Alexander Potapenko , Eric Dumazet , Sasha Levin Subject: Re: use-after-free in __perf_install_in_context Message-ID: <20151217142617.GC6344@twins.programming.kicks-ass.net> References: <20151207153630.GB6356@twins.programming.kicks-ass.net> <20151208164412.GD6357@twins.programming.kicks-ass.net> <20151210195740.GG6357@twins.programming.kicks-ass.net> <20151217140615.GN6373@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Dec 17, 2015 at 03:08:49PM +0100, Dmitry Vyukov wrote: > On Thu, Dec 17, 2015 at 3:06 PM, Peter Zijlstra wrote: > > On Thu, Dec 10, 2015 at 08:57:40PM +0100, Peter Zijlstra wrote: > >> I'm not sure I can explain your problem with this, but I figure its > >> worth a try. > > > > Did it make a difference? > > > > Also, does the syzkaller thing do cpu-hotplug during its runs? > > See my email on Dec 15. I have 4 emails from you on that day (and one private), they pertain to getting stuck in perf_{install,remove}_from_context(). None of those emails seem to contain an answer to either of the two above questions. CACT4Y+Za4L4q6FZLXjyGbnSYRwa7RJZYcG_s562q+CrNy9C75w@mail.gmail.com CACT4Y+YUkYgCuQFW6eBTtdfRqdF7EEtrB3VaYJk+LUXE_-iGRQ@mail.gmail.com CACT4Y+bvHWuyDZjoFhLAOiK1rfNQcfuSJCY0oS5xA=u8j04bXQ@mail.gmail.com CACT4Y+an67KnTsVVzYVvrYKW9yg7PbDuC8WyB38PiWRoSt0UCQ@mail.gmail.com and in private: CACT4Y+Zb1vU192JbCnyS9qY3cpsvfAUJdpBVUsmosueCtQjSXQ@mail.gmail.com Did I miss an email? This is the thread about the difficult to deterministically reproduce use-after-free. > I have CONFIG_HOTPLUG enabled, but I don't do actual hotplug (well, > actually I don't know how to do hotplug, but I still think I am not > doing it). You can do hotplug like: echo 0 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu1/online so if syzkaller doesn't know about that, and I suppose you not knowing this means syzkaller doesn't either, this isn't happening. Thanks, that disqualifies a bunch of code.