From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH v2] snd/hda: fix use-after-free after module unload Date: Mon, 11 Jul 2016 20:10:15 +0200 Message-ID: References: <20160711175106.5349-1-peter@lekensteyn.nl> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 7F633265338 for ; Mon, 11 Jul 2016 20:10:15 +0200 (CEST) In-Reply-To: <20160711175106.5349-1-peter@lekensteyn.nl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Peter Wu Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 11 Jul 2016 19:51:06 +0200, Peter Wu wrote: > > register_vga_switcheroo() sets the PM ops from the hda structure which > is freed later in azx_free. Make sure that these ops are cleared. > > Caught by KASAN, initially noticed due to a general protection fault. > > Fixes: 246efa4a072f ("snd/hda: add runtime suspend/resume on optimus support (v4)") > Signed-off-by: Peter Wu > --- > Maybe Cc stable? Yes, I applied with Cc to stable now. thanks, Takashi