<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux.git/sound, branch v4.9</title>
<subtitle>Linux kernel source tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/'/>
<entry>
<title>dbri: move dereference after check for NULL</title>
<updated>2016-12-06T17:18:22+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>dan.carpenter@oracle.com</email>
</author>
<published>2016-12-01T05:48:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=163117e8d4fd7a235ec48479e31bbda0c74eff56'/>
<id>163117e8d4fd7a235ec48479e31bbda0c74eff56</id>
<content type='text'>
We accidentally introduced a dereference before the NULL check in
xmit_descs() as part of silencing a GCC warning.

Fixes: 16f46050e709 ("dbri: Fix compiler warning")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We accidentally introduced a dereference before the NULL check in
xmit_descs() as part of silencing a GCC warning.

Fixes: 16f46050e709 ("dbri: Fix compiler warning")
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc</title>
<updated>2016-11-28T21:53:19+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2016-11-28T21:53:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=96e52d3ac88780d60ca74bb96301369b7e0c5867'/>
<id>96e52d3ac88780d60ca74bb96301369b7e0c5867</id>
<content type='text'>
Pull sparc fixes from David Miller:
 "Two ugly build warning fixes"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
  dbri: Fix compiler warning
  qlogicpti: Fix compiler warnings
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull sparc fixes from David Miller:
 "Two ugly build warning fixes"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
  dbri: Fix compiler warning
  qlogicpti: Fix compiler warnings
</pre>
</div>
</content>
</entry>
<entry>
<title>dbri: Fix compiler warning</title>
<updated>2016-11-28T20:51:31+00:00</updated>
<author>
<name>Tushar Dave</name>
<email>tushar.n.dave@oracle.com</email>
</author>
<published>2016-11-24T20:35:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=16f46050e7094a95554555a505a984535d253cf6'/>
<id>16f46050e7094a95554555a505a984535d253cf6</id>
<content type='text'>
dbri uses 'u32' for dma handle while invoking kernel DMA APIs,
instead of using dma_addr_t. This hasn't caused any 'incompatible
pointer type' warning on SPARC because until now dma_addr_t is of
type u32. However, recent changes in SPARC ATU (iommu) enabled 64bit
DMA and therefore dma_addr_t became of type u64. This makes
'incompatible pointer type' warnings inevitable.

e.g.
sound/sparc/dbri.c: In function ‘snd_dbri_create’:
sound/sparc/dbri.c:2538: warning: passing argument 3 of ‘dma_zalloc_coherent’ from incompatible pointer type
./include/linux/dma-mapping.h:608: note: expected ‘dma_addr_t *’ but argument is of type ‘u32 *’

For the record, dbri(sbus) driver never executes on sun4v. Therefore
even though 64bit DMA is enabled on SPARC, dbri continues to use
legacy iommu that guarantees DMA address is always in 32bit range.

This patch resolves above compiler warning.

Signed-off-by: Tushar Dave &lt;tushar.n.dave@oracle.com&gt;
Reviewed-by: thomas tai &lt;thomas.tai@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dbri uses 'u32' for dma handle while invoking kernel DMA APIs,
instead of using dma_addr_t. This hasn't caused any 'incompatible
pointer type' warning on SPARC because until now dma_addr_t is of
type u32. However, recent changes in SPARC ATU (iommu) enabled 64bit
DMA and therefore dma_addr_t became of type u64. This makes
'incompatible pointer type' warnings inevitable.

e.g.
sound/sparc/dbri.c: In function ‘snd_dbri_create’:
sound/sparc/dbri.c:2538: warning: passing argument 3 of ‘dma_zalloc_coherent’ from incompatible pointer type
./include/linux/dma-mapping.h:608: note: expected ‘dma_addr_t *’ but argument is of type ‘u32 *’

For the record, dbri(sbus) driver never executes on sun4v. Therefore
even though 64bit DMA is enabled on SPARC, dbri continues to use
legacy iommu that guarantees DMA address is always in 32bit range.

This patch resolves above compiler warning.

Signed-off-by: Tushar Dave &lt;tushar.n.dave@oracle.com&gt;
Reviewed-by: thomas tai &lt;thomas.tai@oracle.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge tag 'sound-4.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound</title>
<updated>2016-11-18T16:56:47+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2016-11-18T16:56:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=c1717701be2f0639e5f817385a524131dbd3ff38'/>
<id>c1717701be2f0639e5f817385a524131dbd3ff38</id>
<content type='text'>
Pull sound fixes from Takashi Iwai:
 "Three trivial fixes:

  A regression fix for ASRock mobo, a use-after-free fix at hot-unplug
  of USB-audio, and a quirk for new Thinkpad models"

* tag 'sound-4.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
  ALSA: usb-audio: Fix use-after-free of usb_device at disconnect
  ALSA: hda - Fix mic regression by ASRock mobo fixup
  ALSA: hda - add a new condition to check if it is thinkpad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pull sound fixes from Takashi Iwai:
 "Three trivial fixes:

  A regression fix for ASRock mobo, a use-after-free fix at hot-unplug
  of USB-audio, and a quirk for new Thinkpad models"

* tag 'sound-4.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
  ALSA: usb-audio: Fix use-after-free of usb_device at disconnect
  ALSA: hda - Fix mic regression by ASRock mobo fixup
  ALSA: hda - add a new condition to check if it is thinkpad
</pre>
</div>
</content>
</entry>
<entry>
<title>ALSA: usb-audio: Fix use-after-free of usb_device at disconnect</title>
<updated>2016-11-14T21:05:04+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2016-11-14T20:46:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6ff1a25318ebf688ef9593fe09cd449f6fb4ad31'/>
<id>6ff1a25318ebf688ef9593fe09cd449f6fb4ad31</id>
<content type='text'>
The usb-audio driver implements the deferred device disconnection for
the device in use.  In this mode, the disconnection callback returns
immediately while the actual ALSA card object removal happens later
when all files get closed.  As Shuah reported, this code flow,
however, leads to a use-after-free, detected by KASAN:

 BUG: KASAN: use-after-free in snd_usb_audio_free+0x134/0x160 [snd_usb_audio] at addr ffff8801c863ce10
 Write of size 8 by task pulseaudio/2244
 Call Trace:
  [&lt;ffffffff81b31473&gt;] dump_stack+0x67/0x94
  [&lt;ffffffff81564ef1&gt;] kasan_object_err+0x21/0x70
  [&lt;ffffffff8156518a&gt;] kasan_report_error+0x1fa/0x4e0
  [&lt;ffffffff81564ad7&gt;] ? kasan_slab_free+0x87/0xb0
  [&lt;ffffffff81565733&gt;] __asan_report_store8_noabort+0x43/0x50
  [&lt;ffffffffa0fc0f54&gt;] ? snd_usb_audio_free+0x134/0x160 [snd_usb_audio]
  [&lt;ffffffffa0fc0f54&gt;] snd_usb_audio_free+0x134/0x160 [snd_usb_audio]
  [&lt;ffffffffa0fc0fb1&gt;] snd_usb_audio_dev_free+0x31/0x40 [snd_usb_audio]
  [&lt;ffffffff8243c78a&gt;] __snd_device_free+0x12a/0x210
  [&lt;ffffffff8243d1f5&gt;] snd_device_free_all+0x85/0xd0
  [&lt;ffffffff8242cae4&gt;] release_card_device+0x34/0x130
  [&lt;ffffffff81ef1846&gt;] device_release+0x76/0x1e0
  [&lt;ffffffff81b37ad7&gt;] kobject_release+0x107/0x370
  .....
 Object at ffff8801c863cc80, in cache kmalloc-2048 size: 2048
 Allocated:
  [&lt;ffffffff810804eb&gt;] save_stack_trace+0x2b/0x50
  [&lt;ffffffff81564296&gt;] save_stack+0x46/0xd0
  [&lt;ffffffff8156450d&gt;] kasan_kmalloc+0xad/0xe0
  [&lt;ffffffff81560d1a&gt;] kmem_cache_alloc_trace+0xfa/0x240
  [&lt;ffffffff8214ea47&gt;] usb_alloc_dev+0x57/0xc90
  [&lt;ffffffff8216349d&gt;] hub_event+0xf1d/0x35f0
  ....
 Freed:
  [&lt;ffffffff810804eb&gt;] save_stack_trace+0x2b/0x50
  [&lt;ffffffff81564296&gt;] save_stack+0x46/0xd0
  [&lt;ffffffff81564ac1&gt;] kasan_slab_free+0x71/0xb0
  [&lt;ffffffff81560929&gt;] kfree+0xd9/0x280
  [&lt;ffffffff8214de6e&gt;] usb_release_dev+0xde/0x110
  [&lt;ffffffff81ef1846&gt;] device_release+0x76/0x1e0
  ....

It's the code trying to clear drvdata of the assigned usb_device where
the usb_device itself was already released in usb_release_dev() after
the disconnect callback.

This patch fixes it by checking whether the code path is via the
disconnect callback, i.e. chip-&gt;shutdown flag is set.

Fixes: 79289e24194a ('ALSA: usb-audio: Refer to chip-&gt;usb_id for quirks...')
Reported-and-tested-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
Cc: &lt;stable@vger.kernel.org&gt; # v4.6+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The usb-audio driver implements the deferred device disconnection for
the device in use.  In this mode, the disconnection callback returns
immediately while the actual ALSA card object removal happens later
when all files get closed.  As Shuah reported, this code flow,
however, leads to a use-after-free, detected by KASAN:

 BUG: KASAN: use-after-free in snd_usb_audio_free+0x134/0x160 [snd_usb_audio] at addr ffff8801c863ce10
 Write of size 8 by task pulseaudio/2244
 Call Trace:
  [&lt;ffffffff81b31473&gt;] dump_stack+0x67/0x94
  [&lt;ffffffff81564ef1&gt;] kasan_object_err+0x21/0x70
  [&lt;ffffffff8156518a&gt;] kasan_report_error+0x1fa/0x4e0
  [&lt;ffffffff81564ad7&gt;] ? kasan_slab_free+0x87/0xb0
  [&lt;ffffffff81565733&gt;] __asan_report_store8_noabort+0x43/0x50
  [&lt;ffffffffa0fc0f54&gt;] ? snd_usb_audio_free+0x134/0x160 [snd_usb_audio]
  [&lt;ffffffffa0fc0f54&gt;] snd_usb_audio_free+0x134/0x160 [snd_usb_audio]
  [&lt;ffffffffa0fc0fb1&gt;] snd_usb_audio_dev_free+0x31/0x40 [snd_usb_audio]
  [&lt;ffffffff8243c78a&gt;] __snd_device_free+0x12a/0x210
  [&lt;ffffffff8243d1f5&gt;] snd_device_free_all+0x85/0xd0
  [&lt;ffffffff8242cae4&gt;] release_card_device+0x34/0x130
  [&lt;ffffffff81ef1846&gt;] device_release+0x76/0x1e0
  [&lt;ffffffff81b37ad7&gt;] kobject_release+0x107/0x370
  .....
 Object at ffff8801c863cc80, in cache kmalloc-2048 size: 2048
 Allocated:
  [&lt;ffffffff810804eb&gt;] save_stack_trace+0x2b/0x50
  [&lt;ffffffff81564296&gt;] save_stack+0x46/0xd0
  [&lt;ffffffff8156450d&gt;] kasan_kmalloc+0xad/0xe0
  [&lt;ffffffff81560d1a&gt;] kmem_cache_alloc_trace+0xfa/0x240
  [&lt;ffffffff8214ea47&gt;] usb_alloc_dev+0x57/0xc90
  [&lt;ffffffff8216349d&gt;] hub_event+0xf1d/0x35f0
  ....
 Freed:
  [&lt;ffffffff810804eb&gt;] save_stack_trace+0x2b/0x50
  [&lt;ffffffff81564296&gt;] save_stack+0x46/0xd0
  [&lt;ffffffff81564ac1&gt;] kasan_slab_free+0x71/0xb0
  [&lt;ffffffff81560929&gt;] kfree+0xd9/0x280
  [&lt;ffffffff8214de6e&gt;] usb_release_dev+0xde/0x110
  [&lt;ffffffff81ef1846&gt;] device_release+0x76/0x1e0
  ....

It's the code trying to clear drvdata of the assigned usb_device where
the usb_device itself was already released in usb_release_dev() after
the disconnect callback.

This patch fixes it by checking whether the code path is via the
disconnect callback, i.e. chip-&gt;shutdown flag is set.

Fixes: 79289e24194a ('ALSA: usb-audio: Refer to chip-&gt;usb_id for quirks...')
Reported-and-tested-by: Shuah Khan &lt;shuahkh@osg.samsung.com&gt;
Cc: &lt;stable@vger.kernel.org&gt; # v4.6+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ASoC: lpass-platform: fix uninitialized variable</title>
<updated>2016-11-14T17:46:08+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2016-11-14T17:46:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=ee2bd216e1fa9fa980e6ac702e5973d157c40c48'/>
<id>ee2bd216e1fa9fa980e6ac702e5973d157c40c48</id>
<content type='text'>
In commit 022d00ee0b55 ("ASoC: lpass-platform: Fix broken pcm data
usage") the stream specific information initialization was broken, with
the dma channel information not being initialized if there was no
alloc_dma_channel() helper function.

Before that, the DMA channel number was implicitly initialized to zero
because the backing store was allocated with devm_kzalloc().  When the
init code was rewritten, that implicit initialization was lost, and gcc
rightfully complains about an uninitialized variable being used.

Cc: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;
Cc: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In commit 022d00ee0b55 ("ASoC: lpass-platform: Fix broken pcm data
usage") the stream specific information initialization was broken, with
the dma channel information not being initialized if there was no
alloc_dma_channel() helper function.

Before that, the DMA channel number was implicitly initialized to zero
because the backing store was allocated with devm_kzalloc().  When the
init code was rewritten, that implicit initialization was lost, and gcc
rightfully complains about an uninitialized variable being used.

Cc: Srinivas Kandagatla &lt;srinivas.kandagatla@linaro.org&gt;
Cc: Mark Brown &lt;broonie@kernel.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ALSA: hda - Fix mic regression by ASRock mobo fixup</title>
<updated>2016-11-11T11:33:20+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2016-11-11T11:33:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=9a2541910dc7eaaa6859eea8a0ffda673059a623'/>
<id>9a2541910dc7eaaa6859eea8a0ffda673059a623</id>
<content type='text'>
The commit [1a3f099101b8: ALSA: hda - Fix surround output pins for
ASRock B150M mobo] introduced a fixup of pin configs for ASRock
mobos to fix the surround outputs.  However, this overrides the pin
configs of the mic pins as if they are outputs-only, effectively
disabling the mic inputs.  Of course, it's a regression wrt mic
functionality.

Actually the pins 0x18 and 0x1a don't need to be changed; we just need
to disable the bogus pins 0x14 and 0x15.  Then the auto-parser will
pick up mic pins as switchable and assign the surround outputs there.

This patch removes the incorrect pin overrides of NID 0x18 and 0x1a
from the ASRock fixup.

Fixes: 1a3f099101b8 ('ALSA: hda - Fix surround output pins for ASRock...')
Reported-and-tested-by: Vitor Antunes &lt;vitor.hda@gmail.com&gt;
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=187431
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The commit [1a3f099101b8: ALSA: hda - Fix surround output pins for
ASRock B150M mobo] introduced a fixup of pin configs for ASRock
mobos to fix the surround outputs.  However, this overrides the pin
configs of the mic pins as if they are outputs-only, effectively
disabling the mic inputs.  Of course, it's a regression wrt mic
functionality.

Actually the pins 0x18 and 0x1a don't need to be changed; we just need
to disable the bogus pins 0x14 and 0x15.  Then the auto-parser will
pick up mic pins as switchable and assign the surround outputs there.

This patch removes the incorrect pin overrides of NID 0x18 and 0x1a
from the ASRock fixup.

Fixes: 1a3f099101b8 ('ALSA: hda - Fix surround output pins for ASRock...')
Reported-and-tested-by: Vitor Antunes &lt;vitor.hda@gmail.com&gt;
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=187431
Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ALSA: hda - add a new condition to check if it is thinkpad</title>
<updated>2016-11-10T08:32:55+00:00</updated>
<author>
<name>Hui Wang</name>
<email>hui.wang@canonical.com</email>
</author>
<published>2016-11-10T05:20:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=2ecb704a1290edb5e3d53a75529192e7ed2a1a28'/>
<id>2ecb704a1290edb5e3d53a75529192e7ed2a1a28</id>
<content type='text'>
Latest Thinkpad laptops use the HKEY_HID LEN0268 instead of the
LEN0068, as a result neither audio mute led nor mic mute led can work
any more.

After adding the new HKEY_HID into the is_thinkpad(), both of them
works well as before.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Hui Wang &lt;hui.wang@canonical.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Latest Thinkpad laptops use the HKEY_HID LEN0268 instead of the
LEN0068, as a result neither audio mute led nor mic mute led can work
any more.

After adding the new HKEY_HID into the is_thinkpad(), both of them
works well as before.

Cc: &lt;stable@vger.kernel.org&gt;
Signed-off-by: Hui Wang &lt;hui.wang@canonical.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ALSA: info: Return error for invalid read/write</title>
<updated>2016-11-08T13:37:26+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2016-10-30T21:13:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=6809cd682b82dfff47943850d1a8c714f971b5ca'/>
<id>6809cd682b82dfff47943850d1a8c714f971b5ca</id>
<content type='text'>
Currently the ALSA proc handler allows read or write even if the proc
file were write-only or read-only.  It's mostly harmless, does thing
but allocating memory and ignores the input/output.  But it doesn't
tell user about the invalid use, and it's confusing and inconsistent
in comparison with other proc files.

This patch adds some sanity checks and let the proc handler returning
an -EIO error when the invalid read/write is performed.

Cc: &lt;stable@vger.kernel.org&gt; # v4.2+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the ALSA proc handler allows read or write even if the proc
file were write-only or read-only.  It's mostly harmless, does thing
but allocating memory and ignores the input/output.  But it doesn't
tell user about the invalid use, and it's confusing and inconsistent
in comparison with other proc files.

This patch adds some sanity checks and let the proc handler returning
an -EIO error when the invalid read/write is performed.

Cc: &lt;stable@vger.kernel.org&gt; # v4.2+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ALSA: info: Limit the proc text input size</title>
<updated>2016-11-08T12:16:40+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2016-10-30T21:18:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux.git/commit/?id=027a9fe6835620422b6713892175716f3613dd9d'/>
<id>027a9fe6835620422b6713892175716f3613dd9d</id>
<content type='text'>
The ALSA proc handler allows currently the write in the unlimited size
until kmalloc() fails.  But basically the write is supposed to be only
for small inputs, mostly for one line inputs, and we don't have to
handle too large sizes at all.  Since the kmalloc error results in the
kernel warning, it's better to limit the size beforehand.

This patch adds the limit of 16kB, which must be large enough for the
currently existing code.

Cc: stable@vger.kernel.org # v4.2+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ALSA proc handler allows currently the write in the unlimited size
until kmalloc() fails.  But basically the write is supposed to be only
for small inputs, mostly for one line inputs, and we don't have to
handle too large sizes at all.  Since the kmalloc error results in the
kernel warning, it's better to limit the size beforehand.

This patch adds the limit of 16kB, which must be large enough for the
currently existing code.

Cc: stable@vger.kernel.org # v4.2+
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</pre>
</div>
</content>
</entry>
</feed>
