lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5h1tmyiof7.wl-tiwai@suse.de>
Date:	Tue, 13 Jan 2015 18:24:44 +0100
From:	Takashi Iwai <tiwai@...e.de>
To:	"Wang, Jiada (ESD)" <Jiada_Wang@...tor.com>
Cc:	"lgirdwood@...il.com" <lgirdwood@...il.com>,
	"broonie@...nel.org" <broonie@...nel.org>,
	"perex@...ex.cz" <perex@...ex.cz>,
	"alsa-devel@...a-project.org" <alsa-devel@...a-project.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Frkuska, Joshua" <Joshua_Frkuska@...tor.com>
Subject: Re: [alsa-devel] unload Audio drivers while playback stream is active case kernel crash

At Fri, 9 Jan 2015 11:39:32 +0000,
Wang, Jiada (ESD) wrote:
> 
> Hi Community
> 
> I am using i.MX6Q sabreSD board, which have imx_wm892 machine driver, wm8962 codec and SSI CPU DAI,
> 
> I got Kernel crash when unloading audio drivers (playback stream is active)
> modprobe -r snd_soc_imx_wm8962
> modprobe -r snd_soc_fsl_ssi
> modprobe -r snd_soc_wm8962
[snip]

The root problem is that you can unload the module while playing.
The corresponding module refcounts should have been increased during
used.

Do we miss [try_]module_get() somewhere in ASoC?


Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ