1. 06 Aug, 2019 5 commits
  2. 05 Aug, 2019 19 commits
  3. 02 Aug, 2019 4 commits
  4. 31 Jul, 2019 9 commits
  5. 30 Jul, 2019 3 commits
    • Hillf Danton's avatar
      ALSA: usb-audio: Fix gpf in snd_usb_pipe_sanity_check · 5d78e1c2
      Hillf Danton authored
      syzbot found the following crash on:
      
        general protection fault: 0000 [#1] SMP KASAN
        RIP: 0010:snd_usb_pipe_sanity_check+0x80/0x130 sound/usb/helper.c:75
        Call Trace:
          snd_usb_motu_microbookii_communicate.constprop.0+0xa0/0x2fb  sound/usb/quirks.c:1007
          snd_usb_motu_microbookii_boot_quirk sound/usb/quirks.c:1051 [inline]
          snd_usb_apply_boot_quirk.cold+0x163/0x370 sound/usb/quirks.c:1280
          usb_audio_probe+0x2ec/0x2010 sound/usb/card.c:576
          usb_probe_interface+0x305/0x7a0 drivers/usb/core/driver.c:361
          really_probe+0x281/0x650 drivers/base/dd.c:548
          ....
      
      It was introduced in commit 801ebf10 for checking pipe and endpoint
      types. It is fixed by adding a check of the ep pointer in question.
      
      BugLink: https://syzkaller.appspot.com/bug?extid=d59c4387bfb6eced94e2Reported-by: default avatarsyzbot <syzbot+d59c4387bfb6eced94e2@syzkaller.appspotmail.com>
      Fixes: 801ebf10 ("ALSA: usb-audio: Sanity checks for each pipe and EP types")
      Cc: Andrey Konovalov <andreyknvl@google.com>
      Signed-off-by: default avatarHillf Danton <hdanton@sina.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      5d78e1c2
    • Gustavo A. R. Silva's avatar
      ALSA: sparc: Mark expected switch fall-throughs · 83554cb9
      Gustavo A. R. Silva authored
      Mark switch cases where we are expecting to fall through.
      
      This patch fixes the following warnings (Building: sparc64):
      
      sound/sparc/dbri.c: In function ‘reverse_bytes’:
      sound/sparc/dbri.c:582:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xffff0000) >> 16) | ((b & 0x0000ffff) << 16);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:583:2: note: here
        case 16:
        ^~~~
      sound/sparc/dbri.c:584:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xff00ff00) >> 8) | ((b & 0x00ff00ff) << 8);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:585:2: note: here
        case 8:
        ^~~~
      sound/sparc/dbri.c:586:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xf0f0f0f0) >> 4) | ((b & 0x0f0f0f0f) << 4);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:587:2: note: here
        case 4:
        ^~~~
      sound/sparc/dbri.c:588:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xcccccccc) >> 2) | ((b & 0x33333333) << 2);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:589:2: note: here
        case 2:
        ^~~~
      Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      83554cb9
    • Gustavo A. R. Silva's avatar
      sound: dmasound_atari: Mark expected switch fall-through · 8e774e02
      Gustavo A. R. Silva authored
      Mark switch cases where we are expecting to fall through.
      
      This patch fixes the following warning (Building: m68k):
      
      sound/oss/dmasound/dmasound_atari.c: warning: this statement may fall
      through [-Wimplicit-fallthrough=]:  => 1449:24
      
      Notice that, in this particular case, the code comment is
      modified in accordance with what GCC is expecting to find.
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Tested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Reviewed-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      8e774e02