From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755342AbcARNgq (ORCPT ); Mon, 18 Jan 2016 08:36:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:55866 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755309AbcARNgd (ORCPT ); Mon, 18 Jan 2016 08:36:33 -0500 Date: Mon, 18 Jan 2016 14:36:30 +0100 Message-ID: From: Takashi Iwai To: Dmitry Vyukov Cc: alsa-devel@alsa-project.org, Jie Yang , Mark Brown , Jaroslav Kysela , LKML , Eric Dumazet , Alexander Potapenko , Kostya Serebryany , syzkaller , Sasha Levin Subject: Re: sound: use-after-free in snd_timer_interrupt In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.5 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Jan 2016 14:30:13 +0100, Dmitry Vyukov wrote: > > On Mon, Jan 18, 2016 at 2:06 PM, Takashi Iwai wrote: > >> No, unfortunately the hang still happens with the patch: > > > > Thanks for testing. I think I understood the problem. We faced a > > similar issue and moved hrtimer_cancel() in the past. But this wasn't > > enough, as the start function may be called also in interrupt, too. > > > > How about the one below instead? > > > Yes, this fixes the hang. Thanks! > > Tested-by: Dmitry Vyukov Great, I'll queue the fix. Thanks for patient testing! Takashi