From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755247AbdCGLqz (ORCPT ); Tue, 7 Mar 2017 06:46:55 -0500 Received: from merlin.infradead.org ([205.233.59.134]:53116 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754639AbdCGLpZ (ORCPT ); Tue, 7 Mar 2017 06:45:25 -0500 Date: Tue, 7 Mar 2017 11:00:26 +0100 From: Peter Zijlstra To: Dmitry Vyukov Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , LKML , Mathieu Desnoyers , syzkaller , Oleg Nesterov Subject: Re: perf: use-after-free in perf_release Message-ID: <20170307100026.GD6515@twins.programming.kicks-ass.net> References: <20170306131459.GC6515@twins.programming.kicks-ass.net> <20170307090822.GT6500@twins.programming.kicks-ass.net> <20170307093759.GU6500@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.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 07, 2017 at 10:43:32AM +0100, Dmitry Vyukov wrote: > An old syzkaller may not understand part of syscalls in the program > and silently drop them, you need a new one. That's yucky semantics, better to at least warn on that occasion. > Here is a straightforward conversion of the syzkaller program to C > (with/without namespace sandbox): > > https://gist.githubusercontent.com/dvyukov/b6540bed50b7da1dff3d7373ba570c77/raw/fd5f2f3aaa52b70b2bb9f114cf8a3226d8a30960/gistfile1.txt > https://gist.githubusercontent.com/dvyukov/dbd8ec38bcb50df4bdc95210d4247b09/raw/f9cbb5e17cd4ff4a7a7881c97dea7d6cd6dd8bf1/gistfile1.txt Thanks! > That's also with -procs=10, you can change number of procs in main funciton. > > But I wasn't able to reproduce the crash using these programs (neither > the syzkaller program), that's why I did not provide it all initially. Right, I'll run them while at the same time trying to see what it is they're doing to find clues.