1. 13 Dec, 2018 2 commits
    • Gustavo A. R. Silva's avatar
      ALSA: emux: Fix potential Spectre v1 vulnerabilities · 4aea96f4
      Gustavo A. R. Silva authored
      info.mode and info.port are indirectly controlled by user-space,
      hence leading to a potential exploitation of the Spectre variant 1
      vulnerability.
      
      These issues were detected with the help of Smatch:
      
      sound/synth/emux/emux_hwdep.c:72 snd_emux_hwdep_misc_mode() warn: potential spectre issue 'emu->portptrs[i]->ctrls' [w] (local cap)
      sound/synth/emux/emux_hwdep.c:75 snd_emux_hwdep_misc_mode() warn: potential spectre issue 'emu->portptrs' [w] (local cap)
      sound/synth/emux/emux_hwdep.c:75 snd_emux_hwdep_misc_mode() warn: potential spectre issue 'emu->portptrs[info.port]->ctrls' [w] (local cap)
      
      Fix this by sanitizing both info.mode and info.port before using them
      to index emu->portptrs[i]->ctrls, emu->portptrs[info.port]->ctrls and
      emu->portptrs.
      
      Notice that given that speculation windows are large, the policy is
      to kill the speculation on the first load and not worry if it can be
      completed with a dependent load/store [1].
      
      [1] https://marc.info/?l=linux-kernel&m=152449131114778&w=2Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      4aea96f4
    • Takashi Iwai's avatar
      Merge branch 'topic/hda-pm-refactor' into for-next · c7072f5f
      Takashi Iwai authored
      Pull refactoring / fixes of HD-audio PM and display power management
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      c7072f5f
  2. 11 Dec, 2018 15 commits
  3. 10 Dec, 2018 4 commits
  4. 09 Dec, 2018 3 commits
  5. 07 Dec, 2018 5 commits
  6. 06 Dec, 2018 2 commits
  7. 05 Dec, 2018 4 commits
  8. 03 Dec, 2018 4 commits
  9. 29 Nov, 2018 1 commit