summaryrefslogtreecommitdiff
path: root/lib/chacha20.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-19 18:49:48 +0300
committerTakashi Iwai <tiwai@suse.de>2017-06-20 08:53:57 +0300
commiteb8d0eaaf84b0398533a7c091a0b65663f2fd7ea (patch)
treedfb85ea2e1ee4ff8134aef89b7ba933d9f2920d6 /lib/chacha20.c
parenta4b4793f640b72af3e2bb2a1ad79725c103d5e40 (diff)
downloadlinux-eb8d0eaaf84b0398533a7c091a0b65663f2fd7ea.tar.xz
ALSA: hda: Fix potential race at unregistration and unsol events
When the codec device is unregistered / freed, it may release the resource while being used in an unsolicited event like the jack detection work. This leads to use-after-free. The fix here is to unregister the device at first, i.e. removing the codec from the list, then flushing the pending works to assure that all unsol events are gone. After this point, we're free from accessing the codec via unsol events, thus can release the resources gracefully. The issue was spotted originally by Intel CI, but it couldn't be reproduced reliably by its nature. So let's hope this fix really addresses the whole issues. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196045 Reported-by: Martin Peres <martin.peres@free.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/chacha20.c')
0 files changed, 0 insertions, 0 deletions