]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: seq: Use bool for snd_seq_queue internal flags
authorTakashi Iwai <tiwai@suse.de>
Sun, 6 Dec 2020 08:34:56 +0000 (09:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Jan 2021 13:48:38 +0000 (14:48 +0100)
commit8d2204a0539192cc75727e8917e1bb6b2a9e40bb
tree6badcbd806474f54d85df14e9ee8f6431de12779
parent4250fe65b2e6c0e4163e74e6f4ec1455f9f5dd08
ALSA: seq: Use bool for snd_seq_queue internal flags

commit 4ebd47037027c4beae99680bff3b20fdee5d7c1e upstream.

The snd_seq_queue struct contains various flags in the bit fields.
Those are categorized to two different use cases, both of which are
protected by different spinlocks.  That implies that there are still
potential risks of the bad operations for bit fields by concurrent
accesses.

For addressing the problem, this patch rearranges those flags to be
a standard bool instead of a bit field.

Reported-by: syzbot+63cbe31877bb80ef58f5@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20201206083456.21110-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/seq/seq_queue.h