Skip to content

ALSA: KCSAN fixes

Takashi Iwai alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ALSA: seq: Avoid concurrent access to queue flagssound/core/seq/seq_queue.c+16 -40 replies
2/3ALSA: seq: Fix concurrent access to queue current tick/timesound/core/seq/seq_clientmgr.c sound/core/seq/seq_queue.c sound/core/seq/seq_timer.c +1 more+20 -90 replies
3/3ALSA: rawmidi: Avoid bit fields for state flagsinclude/sound/rawmidi.h+3 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [alsa-devel] [PATCH 0/3] ALSA: KCSAN fixes

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(-)
Signature · 6 lines
2.16.4

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel