diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-16 16:15:59 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-02-16 16:37:19 +0300 |
commit | 13d5e5d4725c64ec06040d636832e78453f477b7 (patch) | |
tree | 60f260262d588d1d4ba08b1b2907fbde23dca5a7 /arch/arm/mach-mmp/devices.h | |
parent | 0b8c82190c12e530eb6003720dac103bf63e146e (diff) | |
download | linux-13d5e5d4725c64ec06040d636832e78453f477b7.tar.xz |
ALSA: seq: Fix double port list deletion
The commit [7f0973e973cd: ALSA: seq: Fix lockdep warnings due to
double mutex locks] split the management of two linked lists (source
and destination) into two individual calls for avoiding the AB/BA
deadlock. However, this may leave the possible double deletion of one
of two lists when the counterpart is being deleted concurrently.
It ends up with a list corruption, as revealed by syzkaller fuzzer.
This patch fixes it by checking the list emptiness and skipping the
deletion and the following process.
BugLink: http://lkml.kernel.org/r/CACT4Y+bay9qsrz6dQu31EcGaH9XwfW7o3oBzSQUG9fMszoh=Sg@mail.gmail.com
Fixes: 7f0973e973cd ('ALSA: seq: Fix lockdep warnings due to 'double mutex locks)
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'arch/arm/mach-mmp/devices.h')
0 files changed, 0 insertions, 0 deletions