alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [alsa-devel] [PATCH 0/3] ALSA: KCSAN fixes
@ 2020-02-14 11:13 Takashi Iwai
  2020-02-14 11:13 ` [alsa-devel] [PATCH 1/3] ALSA: seq: Avoid concurrent access to queue flags Takashi Iwai
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Takashi Iwai @ 2020-02-14 11:13 UTC (permalink / raw)
  To: alsa-devel

Hi,

recently syzbot reports repeatedly about the concurrent accesses with
KCSAN.  Those should be mostly harmless but still safer to be papered
over, so here are fixes.

There are two fixes for ALSA sequencer core, one about applying the
spinlock for the queue bitmap flag accesses, and another about the
current time retrievals.  The last patch is about rawmidi and changes
simply bit fields to bools.

I didn't mark them Cc-to-stable because there are no reproducer and
the patterns are basically safe -- although it's fine to backport
these patches to stable branches.


Takashi

===

Takashi Iwai (3):
  ALSA: seq: Avoid concurrent access to queue flags
  ALSA: seq: Fix concurrent access to queue current tick/time
  ALSA: rawmidi: Avoid bit fields for state flags

 include/sound/rawmidi.h        |  6 +++---
 sound/core/seq/seq_clientmgr.c |  4 ++--
 sound/core/seq/seq_queue.c     | 29 ++++++++++++++++++++++-------
 sound/core/seq/seq_timer.c     | 13 ++++++++++---
 sound/core/seq/seq_timer.h     |  3 ++-
 5 files changed, 39 insertions(+), 16 deletions(-)

-- 
2.16.4

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-14 11:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-14 11:13 [alsa-devel] [PATCH 0/3] ALSA: KCSAN fixes Takashi Iwai
2020-02-14 11:13 ` [alsa-devel] [PATCH 1/3] ALSA: seq: Avoid concurrent access to queue flags Takashi Iwai
2020-02-14 11:13 ` [alsa-devel] [PATCH 2/3] ALSA: seq: Fix concurrent access to queue current tick/time Takashi Iwai
2020-02-14 11:13 ` [alsa-devel] [PATCH 3/3] ALSA: rawmidi: Avoid bit fields for state flags Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).