diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-12-11 16:57:42 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-14 18:53:31 +0100 |
commit | add9d56d7b3781532208afbff5509d7382fb6efe (patch) | |
tree | 4281e5d7a7befcc7c1fe4638c806ebc852073a29 /sound/pci/hda/patch_ca0132.c | |
parent | 5815bdfd7f54739be9abed1301d55f5e74d7ad1f (diff) | |
download | linux-stable-add9d56d7b3781532208afbff5509d7382fb6efe.tar.gz linux-stable-add9d56d7b3781532208afbff5509d7382fb6efe.tar.bz2 linux-stable-add9d56d7b3781532208afbff5509d7382fb6efe.zip |
ALSA: pcm: Avoid possible info leaks from PCM stream buffers
The current PCM code doesn't initialize explicitly the buffers
allocated for PCM streams, hence it might leak some uninitialized
kernel data or previous stream contents by mmapping or reading the
buffer before actually starting the stream.
Since this is a common problem, this patch simply adds the clearance
of the buffer data at hw_params callback. Although this does only
zero-clear no matter which format is used, which doesn't mean the
silence for some formats, but it should be OK because the intention is
just to clear the previous data on the buffer.
Reported-by: Lionel Koenig <lionel.koenig@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20191211155742.3213-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_ca0132.c')
0 files changed, 0 insertions, 0 deletions