1. 09 Dec, 2019 2 commits
  2. 08 Dec, 2019 1 commit
    • Olof Johansson's avatar
      ALSA: echoaudio: simplify get_audio_levels · c08f0a92
      Olof Johansson authored
      The loop optimizer seems to go astray here, and produces some warnings
      that don't seem valid.
      
      Still, the code can be simplified -- just clear the whole array at the
      beginning, and fill in whatever values are valid on the platform.
      
      Warnings before this change (GCC 8.2.0 ARM allmodconfig):
      
      In file included from ../sound/pci/echoaudio/gina24.c:115:
      ../sound/pci/echoaudio/echoaudio.c: In function 'snd_echo_vumeters_get':
      ../sound/pci/echoaudio/echoaudio_dsp.c:647:9: warning: iteration 1073741824 invokes undefined behavior [-Waggressive-loop-optimizations]
      In file included from ../sound/pci/echoaudio/layla24.c:112:
      ../sound/pci/echoaudio/echoaudio.c: In function 'snd_echo_vumeters_get':
      ../sound/pci/echoaudio/echoaudio_dsp.c:658:9: warning: iteration 1073741824 invokes undefined behavior [-Waggressive-loop-optimizations]
      ../sound/pci/echoaudio/echoaudio_dsp.c:647:9: warning: iteration 1073741824 invokes undefined behavior [-Waggressive-loop-optimizations]
      Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
      Link: https://lore.kernel.org/r/20191207224953.25944-1-olof@lixom.netSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      c08f0a92
  3. 04 Dec, 2019 1 commit
    • Takashi Iwai's avatar
      ALSA: pcm: oss: Avoid potential buffer overflows · 4cc8d650
      Takashi Iwai authored
      syzkaller reported an invalid access in PCM OSS read, and this seems
      to be an overflow of the internal buffer allocated for a plugin.
      Since the rate plugin adjusts its transfer size dynamically, the
      calculation for the chained plugin might be bigger than the given
      buffer size in some extreme cases, which lead to such an buffer
      overflow as caught by KASAN.
      
      Fix it by limiting the max transfer size properly by checking against
      the destination size in each plugin transfer callback.
      
      Reported-by: syzbot+f153bde47a62e0b05f83@syzkaller.appspotmail.com
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20191204144824.17801-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      4cc8d650
  4. 03 Dec, 2019 2 commits
  5. 29 Nov, 2019 3 commits
  6. 28 Nov, 2019 2 commits
  7. 27 Nov, 2019 2 commits
  8. 26 Nov, 2019 4 commits
  9. 25 Nov, 2019 3 commits
  10. 24 Nov, 2019 1 commit
  11. 22 Nov, 2019 14 commits
  12. 21 Nov, 2019 3 commits
  13. 20 Nov, 2019 2 commits