1. 29 5月, 2015 1 次提交
  2. 18 5月, 2015 1 次提交
  3. 18 4月, 2015 1 次提交
    • A
      sound/oss: fix deadlock in sequencer_ioctl(SNDCTL_SEQ_OUTOFBAND) · bc26d4d0
      Alexey Khoroshilov 提交于
      A deadlock can be initiated by userspace via ioctl(SNDCTL_SEQ_OUTOFBAND)
      on /dev/sequencer with TMR_ECHO midi event.
      
      In this case the control flow is:
      sound_ioctl()
      -> case SND_DEV_SEQ:
         case SND_DEV_SEQ2:
           sequencer_ioctl()
           -> case SNDCTL_SEQ_OUTOFBAND:
                spin_lock_irqsave(&lock,flags);
                play_event();
                -> case EV_TIMING:
                     seq_timing_event()
                     -> case TMR_ECHO:
                          seq_copy_to_input()
                          -> spin_lock_irqsave(&lock,flags);
      
      It seems that spin_lock_irqsave() around play_event() is not necessary,
      because the only other call location in seq_startplay() makes the call
      without acquiring spinlock.
      
      So, the patch just removes spinlocks around play_event().
      By the way, it removes unreachable code in seq_timing_event(),
      since (seq_mode == SEQ_2) case is handled in the beginning.
      
      Compile tested only.
      
      Found by Linux Driver Verification project (linuxtesting.org).
      Signed-off-by: NAlexey Khoroshilov <khoroshilov@ispras.ru>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      bc26d4d0
  4. 24 3月, 2015 1 次提交
  5. 26 2月, 2015 4 次提交
  6. 15 1月, 2015 2 次提交
  7. 04 1月, 2015 1 次提交
  8. 23 11月, 2014 1 次提交
  9. 20 10月, 2014 1 次提交
  10. 13 8月, 2014 1 次提交
  11. 06 8月, 2014 4 次提交
  12. 25 6月, 2014 1 次提交
  13. 24 6月, 2014 1 次提交
  14. 30 5月, 2014 1 次提交
  15. 19 5月, 2014 1 次提交
  16. 09 4月, 2014 1 次提交
  17. 05 4月, 2014 1 次提交
  18. 28 2月, 2014 1 次提交
  19. 08 2月, 2014 1 次提交
  20. 14 1月, 2014 5 次提交
  21. 14 10月, 2013 1 次提交
  22. 09 8月, 2013 1 次提交
  23. 15 7月, 2013 2 次提交
  24. 29 5月, 2013 1 次提交
  25. 13 5月, 2013 1 次提交
  26. 03 5月, 2013 1 次提交
  27. 30 4月, 2013 1 次提交
  28. 26 4月, 2013 1 次提交
    • A
      sound: oss/dmabuf: use dma_map_single · 4b417cf0
      Arnd Bergmann 提交于
      The virt_to_bus/bus_to_virt functions have been deprecated
      for as long as I can remember, and they are used in very
      few remaining instances, usually in obscure ISA device
      drivers. The OSS sound drivers are the only ones that are
      still used on the ARM architecture, and only on some of
      the earliest StrongARM machines.
      
      The problem for converting the OSS subsystem to use
      dma_map_single instead is that the caller of virt_to_bus
      does not have a device pointer, since the subsystem has
      never been ported to use the common device infrastructure.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NTakashi Iwai <tiwai@suse.de>
      4b417cf0