1. 06 9月, 2019 1 次提交
  2. 08 3月, 2018 1 次提交
    • T
      ALSA: seq: More protection for concurrent write and ioctl races · 7bd80091
      Takashi Iwai 提交于
      This patch is an attempt for further hardening against races between
      the concurrent write and ioctls.  The previous fix d15d662e
      ("ALSA: seq: Fix racy pool initializations") covered the race of the
      pool initialization at writer and the pool resize ioctl by the
      client->ioctl_mutex (CVE-2018-1000004).  However, basically this mutex
      should be applied more widely to the whole write operation for
      avoiding the unexpected pool operations by another thread.
      
      The only change outside snd_seq_write() is the additional mutex
      argument to helper functions, so that we can unlock / relock the given
      mutex temporarily during schedule() call for blocking write.
      
      Fixes: d15d662e ("ALSA: seq: Fix racy pool initializations")
      Reported-by: N范龙飞 <long7573@126.com>
      Reported-by: NNicolai Stange <nstange@suse.de>
      Reviewed-and-tested-by: NNicolai Stange <nstange@suse.de>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      7bd80091
  3. 20 6月, 2017 1 次提交
    • I
      sched/wait: Rename wait_queue_t => wait_queue_entry_t · ac6424b9
      Ingo Molnar 提交于
      Rename:
      
      	wait_queue_t		=>	wait_queue_entry_t
      
      'wait_queue_t' was always a slight misnomer: its name implies that it's a "queue",
      but in reality it's a queue *entry*. The 'real' queue is the wait queue head,
      which had to carry the name.
      
      Start sorting this out by renaming it to 'wait_queue_entry_t'.
      
      This also allows the real structure name 'struct __wait_queue' to
      lose its double underscore and become 'struct wait_queue_entry',
      which is the more canonical nomenclature for such data types.
      
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      ac6424b9
  4. 25 3月, 2017 1 次提交
    • T
      ALSA: seq: Fix race during FIFO resize · 2d7d5400
      Takashi Iwai 提交于
      When a new event is queued while processing to resize the FIFO in
      snd_seq_fifo_clear(), it may lead to a use-after-free, as the old pool
      that is being queued gets removed.  For avoiding this race, we need to
      close the pool to be deleted and sync its usage before actually
      deleting it.
      
      The issue was spotted by syzkaller.
      Reported-by: NDmitry Vyukov <dvyukov@google.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      2d7d5400
  5. 21 3月, 2017 1 次提交
  6. 02 3月, 2017 1 次提交
  7. 01 3月, 2017 1 次提交
    • T
      ALSA: seq: Fix link corruption by event error handling · f3ac9f73
      Takashi Iwai 提交于
      The sequencer FIFO management has a bug that may lead to a corruption
      (shortage) of the cell linked list.  When a sequencer client faces an
      error at the event delivery, it tries to put back the dequeued cell.
      When the first queue was put back, this forgot the tail pointer
      tracking, and the link will be screwed up.
      
      Although there is no memory corruption, the sequencer client may stall
      forever at exit while flushing the pending FIFO cells in
      snd_seq_pool_done(), as spotted by syzkaller.
      
      This patch addresses the missing tail pointer tracking at
      snd_seq_fifo_cell_putback().  Also the patch makes sure to clear the
      cell->enxt pointer at snd_seq_fifo_event_in() for avoiding a similar
      mess-up of the FIFO linked list.
      Reported-by: NDmitry Vyukov <dvyukov@google.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      f3ac9f73
  8. 10 3月, 2015 1 次提交
  9. 04 6月, 2014 1 次提交
  10. 14 2月, 2014 1 次提交
  11. 13 8月, 2008 1 次提交
  12. 01 2月, 2008 1 次提交
    • T
      [ALSA] Remove sound/driver.h · 9004acc7
      Takashi Iwai 提交于
      This header file exists only for some hacks to adapt alsa-driver
      tree.  It's useless for building in the kernel.  Let's move a few
      lines in it to sound/core.h and remove it.
      With this patch, sound/driver.h isn't removed but has just a single
      compile warning to include it.  This should be really killed in
      future.
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      Signed-off-by: NJaroslav Kysela <perex@perex.cz>
      9004acc7
  13. 03 1月, 2006 1 次提交
  14. 12 9月, 2005 1 次提交
  15. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4