1. 07 Apr, 2018 3 commits
  2. 03 Apr, 2018 1 commit
    • Takashi Iwai's avatar
      ALSA: pcm: Fix UAF at PCM release via PCM timer access · a820ccbe
      Takashi Iwai authored
      The PCM runtime object is created and freed dynamically at PCM stream
      open / close time.  This is tracked via substream->runtime, and it's
      cleared at snd_pcm_detach_substream().
      
      The runtime object assignment is protected by PCM open_mutex, so for
      all PCM operations, it's safely handled.  However, each PCM substream
      provides also an ALSA timer interface, and user-space can access to
      this while closing a PCM substream.  This may eventually lead to a
      UAF, as snd_pcm_timer_resolution() tries to access the runtime while
      clearing it in other side.
      
      Fortunately, it's the only concurrent access from the PCM timer, and
      it merely reads runtime->timer_resolution field.  So, we can avoid the
      race by reordering kfree() and wrapping the substream->runtime
      clearance with the corresponding timer lock.
      
      Reported-by: syzbot+8e62ff4e07aa2ce87826@syzkaller.appspotmail.com
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      a820ccbe
  3. 02 Apr, 2018 2 commits
    • Takashi Iwai's avatar
      Merge tag 'asoc-v4.17' of... · 903d271a
      Takashi Iwai authored
      Merge tag 'asoc-v4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus
      
      ASoC: Updates for v4.17
      
      This is a *very* big release for ASoC.  Not much change in the core but
      there s the transition of all the individual drivers over to components
      which is intended to support further core work.  The goal is to make it
      easier to do further core work by removing the need to special case all
      the different driver classes in the core, many of the devices end up
      being used in multiple roles in modern systems.
      
      We also have quite a lot of new drivers added this month of all kinds,
      quite a few for simple devices but also some more advanced ones with
      more substantial code.
      
       - The biggest thing is the huge series from Morimoto-san which
         converted everything over to components.  This is a huge change by
         code volume but was fairly mechanical
       - Many fixes for some of the Realtek based Baytrail systems covering
         both the CODECs and the CPUs, contributed by Hans de Goode.
       - Lots of cleanups for Samsung based Odroid systems from Sylwester
         Nawrocki.
       - The Freescale SSI driver also got a lot of cleanups from Nicolin
         Chen.
       - The Blackfin drivers have been removed as part of the removal of the
         architecture.
       - New drivers for AKM AK4458 and AK5558, several AMD based machines,
         several Intel based machines, Maxim MAX9759, Motorola CPCAP,
         Socionext Uniphier SoCs, and TI PCM1789 and TDA7419
      903d271a
    • Takashi Iwai's avatar
      Merge branch 'for-next' into for-linus · bc334cb6
      Takashi Iwai authored
      Preparation for 4.17 merge.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      bc334cb6
  4. 29 Mar, 2018 1 commit
  5. 28 Mar, 2018 33 commits