[alsa-devel] [PATCH v3 0/2] ALSA: fireworks/firewire-tascam: accessing to user space outside spinlock

Takashi Sakamoto o-takashi at sakamocchi.jp
Wed Aug 31 13:15:31 CEST 2016


Hi,

This patchset updates my previous one:
[alsa-devel] [PATCH v2 0/2] ALSA: fireworks/firewire-tascam: accessing to user space outside spinlock
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-August/112236.html

In ALSA fireworks driver and firewire-tascam driver, current implementation
for hwdep interface have issues for page fault handling. For example,
when using single core processor, after executing lock_page() in page fault
handler and call task scheduler, then the context never regain CPU again,
because any interrupts are disabled by these drivers and the context can't
catch waiting event. This patchset fixes the issues.

The issues were reported by Vaishali Thakkar, with a help of coccinelle.
Thanks a lot for her care to these minor drivers.
http://mailman.alsa-project.org/pipermail/alsa-devel/2016-August/111887.html

Changes in v3:
 * Add a workaround against a case that several tasks are going to read from
   one response buffer.

Changes in v2:
 * improve designated initialization for automatic variable of union type

Takashi Sakamoto (2):
  ALSA: firewire-tascam: accessing to user space outside spinlock
  ALSA: fireworks: accessing to user space outside spinlock

 sound/firewire/fireworks/fireworks_hwdep.c       | 52 ++++++++++++++++++------
 sound/firewire/fireworks/fireworks_transaction.c |  4 +-
 sound/firewire/tascam/tascam-hwdep.c             | 33 +++++----------
 3 files changed, 53 insertions(+), 36 deletions(-)

-- 
2.7.4



More information about the Alsa-devel mailing list