From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932159AbdCFMrl (ORCPT ); Mon, 6 Mar 2017 07:47:41 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:55675 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932105AbdCFMrZ (ORCPT ); Mon, 6 Mar 2017 07:47:25 -0500 Date: Mon, 6 Mar 2017 13:47:24 +0100 From: Peter Zijlstra To: Dmitry Vyukov Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , LKML , Mathieu Desnoyers , syzkaller Subject: Re: perf: use-after-free in perf_release Message-ID: <20170306124724.GK6500@twins.programming.kicks-ass.net> References: <20170306121314.GB6515@twins.programming.kicks-ass.net> <20170306122327.GJ6500@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 Mon, Mar 06, 2017 at 01:27:41PM +0100, Dmitry Vyukov wrote: > I think you will also need the attached patch. It seems that it was > found due to it. Going to send it out soon. Yuck, that's nasty. Although I don't see an alternative there. You might also want to do the bitops, they suffer the same problem.