1. 14 Dec, 2019 4 commits
  2. 11 Dec, 2019 1 commit
  3. 10 Dec, 2019 1 commit
  4. 09 Dec, 2019 3 commits
  5. 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
  6. 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
  7. 03 Dec, 2019 2 commits
  8. 29 Nov, 2019 3 commits
  9. 28 Nov, 2019 2 commits
  10. 27 Nov, 2019 2 commits
  11. 26 Nov, 2019 4 commits
  12. 25 Nov, 2019 3 commits
  13. 24 Nov, 2019 1 commit
  14. 22 Nov, 2019 12 commits