Skip to content

ALSA: Hardening for potential Spectre v1

Takashi Iwai alsa-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8ALSA: seq: oss: Fix unbalanced use lock for synth MIDI devicesound/core/seq/oss/seq_oss_synth.c+8 -40 replies
2/8ALSA: seq: oss: Hardening for potential Spectre v1sound/core/seq/oss/seq_oss_event.c sound/core/seq/oss/seq_oss_midi.c sound/core/seq/oss/seq_oss_synth.c +1 more+55 -400 replies
3/8ALSA: control: Hardening for potential Spectre v1include/sound/control.h+5 -20 replies
4/8ALSA: hda: Hardening for potential Spectre v1sound/pci/hda/hda_hwdep.c+11 -10 replies
5/8ALSA: opl3: Hardening for potential Spectre v1sound/drivers/opl3/opl3_synth.c+5 -20 replies
6/8ALSA: asihpi: Hardening for potential Spectre v1sound/pci/asihpi/hpimsginit.c sound/pci/asihpi/hpioctl.c+12 -50 replies
7/8ALSA: hdspm: Hardening for potential Spectre v1sound/pci/rme9652/hdspm.c+14 -100 replies
8/8ALSA: rme9652: Hardening for potential Spectre v1sound/pci/rme9652/rme9652.c+4 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] ALSA: Hardening for potential Spectre v1

Hi,

this is a patchset to cover the potential issues wrt Spectre v1 that were spotted out recently by Smatch:
https://marc.info/?l=linux-kernel&m=152411496503418&w=2

Although all reports for sound/* seem like no serious issues, it's better to cover potential usages than a too late sorry.

The first patch is basically irrelevant for Spectre but a preliminary fix for the following fix. Most of the rest patches are straightforward, but the second one, the fix for OSS emulation, became a fair amount of code refactoring in the end.

An open question is whether we should put Cc-to-stable to these fixes. Maybe yes, although we've never proven that the problem would actually exist, the issue is still "hot", so people may want to see them more-or-less covered...

thanks,

Takashi

===

Takashi Iwai (8):
ALSA: seq: oss: Fix unbalanced use lock for synth MIDI device
ALSA: seq: oss: Hardening for potential Spectre v1
ALSA: control: Hardening for potential Spectre v1
ALSA: hda: Hardening for potential Spectre v1
ALSA: opl3: Hardening for potential Spectre v1
ALSA: asihpi: Hardening for potential Spectre v1
ALSA: hdspm: Hardening for potential Spectre v1
ALSA: rme9652: Hardening for potential Spectre v1

 include/sound/control.h            |  7 +++-
 sound/core/seq/oss/seq_oss_event.c | 15 ++++---
 sound/core/seq/oss/seq_oss_midi.c  |  2 +
 sound/core/seq/oss/seq_oss_synth.c | 85 ++++++++++++++++++++++----------------
 sound/core/seq/oss/seq_oss_synth.h |  3 +-
 sound/drivers/opl3/opl3_synth.c    |  7 +++-
 sound/pci/asihpi/hpimsginit.c      | 13 ++++--
 sound/pci/asihpi/hpioctl.c         |  4 +-
 sound/pci/hda/hda_hwdep.c          | 12 +++++-
 sound/pci/rme9652/hdspm.c          | 24 ++++++-----
 sound/pci/rme9652/rme9652.c        |  6 ++-
 11 files changed, 113 insertions(+), 65 deletions(-)
Signature · 1 line
2.16.3